Submission #1279609

#TimeUsernameProblemLanguageResultExecution timeMemory
1279609ducksaysquackGame (IOI14_game)C++20
Compilation error
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);}

Compilation message (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);}
      |                                     ^