game.cpp: In function 'void initialize(int)':
game.cpp:6:30: error: 'deg' was not declared in this scope
6 | for(int i = 0;i < n; i++) deg[i] = n - (i + 1);
| ^~~
game.cpp: At global scope:
game.cpp:9:6: error: ambiguating new declaration of 'void hasEdge(int, int)'
9 | void hasEdge(int u,int v){
| ^~~~~~~
In file included from game.cpp:1:
game.h:5:5: note: old declaration 'int hasEdge(int, int)'
5 | int hasEdge(int u, int v);
| ^~~~~~~
game.cpp: In function 'void hasEdge(int, int)':
game.cpp:11:7: error: 'deg' was not declared in this scope
11 | if(deg[u] > 0) deg[u]--;
| ^~~
game.cpp:12:7: error: 'deg' was not declared in this scope
12 | if(deg[u] == 0) return 0;
| ^~~
game.cpp:12:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
12 | if(deg[u] == 0) return 0;
| ^
game.cpp:13:11: error: return-statement with a value, in function returning 'void' [-fpermissive]
13 | return 1;
| ^