Submission #715079

#TimeUsernameProblemLanguageResultExecution timeMemory
715079The_Cat_PersonLogičari (COCI21_logicari)C++14
0 / 110
1 ms212 KiB
#include <iostream> using namespace std; int n; int main() { if (n%2==1) { cout<<"-1"<<endl; } else if (n/2%2==1) { cout<<'-1'<<endl; } else { cout<<n/2<<endl; } return 0; }

Compilation message (stderr)

Main.cpp:15:13: warning: multi-character character constant [-Wmultichar]
   15 |       cout<<'-1'<<endl;
      |             ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...