Submission #495431

# Submission time Handle Problem Language Result Execution time Memory
495431 2021-12-18T15:49:42 Z blue Cats or Dogs (JOI18_catdog) C++17
Compilation error
0 ms 0 KB
#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

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);
      |        ~~^~~~