제출 #986464

#제출 시각아이디문제언어결과실행 시간메모리
986464MuntherCarrot게임 (IOI14_game)C++14
컴파일 에러
0 ms0 KiB
d[3e3];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}

컴파일 시 표준 에러 (stderr) 메시지

game.cpp:1:1: error: 'd' does not name a type
    1 | d[3e3];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
      | ^
game.cpp:1:18: error: expected constructor, destructor, or type conversion before '(' token
    1 | d[3e3];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
      |                  ^
game.cpp:1:30: error: expected constructor, destructor, or type conversion before '(' token
    1 | d[3e3];initialize(n){}hasEdge(u,v){return++d[u=u>v?u:v]==u;}
      |                              ^