Submission #495431

#TimeUsernameProblemLanguageResultExecution timeMemory
495431blueCats or Dogs (JOI18_catdog)C++17
Compilation error
0 ms0 KiB
#include <iostream> using namespace std; int main() { int a = 5; cout << sizeof(a) << '\n'; int* b = &a; cout << sizeof(b) << '\n'; if(a != b) while(1); }

Compilation message (stderr)

catdog.cpp: In function 'int main()':
catdog.cpp:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(a != b) while(1);
      |        ~~^~~~