Submission #855028

#TimeUsernameProblemLanguageResultExecution timeMemory
855028thisistotallymyusernameGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> void initialize(int n) { return; } int c[1500]; int hasEdge(int u, int v) { return ++c[max(u, v)] == (u > v ? u : v); }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:9:16: error: 'max' was not declared in this scope; did you mean 'std::max'?
    9 |     return ++c[max(u, v)] == (u > v ? u : v);
      |                ^~~
      |                std::max
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from game.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
 3486 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~