Submission #884303

#TimeUsernameProblemLanguageResultExecution timeMemory
884303StefanL2005Game (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; int n; vector<int> Nr; void initialize(int k) { n = k; Nr = vector<int> (n, 0); } int hasEdge(int u, v) { if (Nr[u]++ == || Nr[v]++ = n - 1) return 1; return 0; }

Compilation message (stderr)

game.cpp:14:20: error: 'v' has not been declared
   14 | int hasEdge(int u, v)
      |                    ^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:16:21: error: expected primary-expression before '||' token
   16 |     if (Nr[u]++ ==  || Nr[v]++ = n - 1)
      |                     ^~
game.cpp:16:27: error: 'v' was not declared in this scope
   16 |     if (Nr[u]++ ==  || Nr[v]++ = n - 1)
      |                           ^