game.c:5:1: error: unknown type name 'using'
5 | using namespace std;
| ^~~~~
game.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
5 | using namespace std;
| ^~~
game.c:16:1: error: unknown type name 'bool'
16 | bool pred[N][N], block[N][N];
| ^~~~
game.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
1 | #include "game.h"
+++ |+#include <stdbool.h>
2 | //#include <bits/stdc++.h>
game.c:16:6: error: variably modified 'pred' at file scope
16 | bool pred[N][N], block[N][N];
| ^~~~
game.c:16:6: error: variably modified 'pred' at file scope
game.c:16:18: error: variably modified 'block' at file scope
16 | bool pred[N][N], block[N][N];
| ^~~~~
game.c:16:18: error: variably modified 'block' at file scope
game.c:17:5: error: variably modified 'cnt' at file scope
17 | int cnt[N];
| ^~~
game.c: In function 'dfs':
game.c:27:34: error: 'true' undeclared (first use in this function)
27 | if(pred[i][v] == true || i == v) continue;
| ^~~~
game.c:27:34: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
game.c:27:34: note: each undeclared identifier is reported only once for each function it appears in
game.c:28:17: error: 'has' undeclared (first use in this function)
28 | has[i][v] = has[v][i] = true;
| ^~~
game.c: In function 'hasEdge':
game.c:33:27: error: 'has' undeclared (first use in this function)
33 | if(pred[u][v]) return has[u][v];
| ^~~
game.c:35:18: error: 'true' undeclared (first use in this function)
35 | pred[u][v] = true;
| ^~~~
game.c:35:18: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?