When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

ziadayman1's blog

By ziadayman1, history, 13 months ago, In English

always get that just anyone tells me why and how can I solve that problem and I am a new one here! that is my code :

include

using namespace std;

int main() { unsigned int x,y;

cin>>x;

y=x; cin>>x;y*=x; cin>>x;y*=x; cin>>x;y*=x; cout<<y%100; return 0; } the link of the problem

  • Vote: I like it
  • -20
  • Vote: I do not like it

| Write comment?
»
13 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Judging from your only one public submission, which is for legendary watermelon problem, you're using clang diagnostics which is used for debug purposes only and can cause slow perfomance and additional memory usages (yet I still don't understand what causes MLE on 2nd test and not the 1st). Anyway use any other compiler which is not labeled as "diagnostics", i.e. 192085523, 192085530