Submission #558316

#TimeUsernameProblemLanguageResultExecution timeMemory
558316OlympiaGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include "game.h"
int c[1501];
void initialize(int N){
  
}
int hasEdge(int u, int v){
  return ++c[max(u,v)]==max(u, v);
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:7:14: error: 'max' was not declared in this scope
    7 |   return ++c[max(u,v)]==max(u, v);
      |              ^~~