Submission #586459

#TimeUsernameProblemLanguageResultExecution timeMemory
586459TimDeeGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
    int cnt[5555];
     
    void initialize(int n) {
      
    }
     
    int hasEdge(int u, int v) {
      return ++cnt[std::max(u, v)] == std::max(u, v);
    }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:25: error: 'max' is not a member of 'std'
    8 |       return ++cnt[std::max(u, v)] == std::max(u, v);
      |                         ^~~
game.cpp:8:44: error: 'max' is not a member of 'std'
    8 |       return ++cnt[std::max(u, v)] == std::max(u, v);
      |                                            ^~~