제출 #1279609

#제출 시각아이디문제언어결과실행 시간메모리
1279609ducksaysquack게임 (IOI14_game)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "game.h" void initialize(int N) {} vector<int> v(1505); int hasEdge(int x, int y) {return ++v[std::max(x,y)] == std::max(x,y);}

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

game.cpp:4:1: error: 'vector' does not name a type
    4 | vector<int> v(1505);
      | ^~~~~~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:5:37: error: 'v' was not declared in this scope
    5 | int hasEdge(int x, int y) {return ++v[std::max(x,y)] == std::max(x,y);}
      |                                     ^