bosses.cpp: In function 'int root(int)':
bosses.cpp:59:28: error: a function-definition is not allowed here before '{' token
59 | void solve (int x, int pr) {
| ^
bosses.cpp:69:17: error: a function-definition is not allowed here before '{' token
69 | int root(int x) {
| ^
bosses.cpp:100:13: error: a function-definition is not allowed here before '{' token
100 | int main () {
| ^
bosses.cpp:46:6: warning: unused variable 'ret' [-Wunused-variable]
46 | int ret = 0;
| ^~~
bosses.cpp:56:5: warning: unused variable 'n' [-Wunused-variable]
56 | int n, val[N][N], sub[N], vis[N];
| ^
bosses.cpp:56:8: warning: unused variable 'val' [-Wunused-variable]
56 | int n, val[N][N], sub[N], vis[N];
| ^~~
bosses.cpp:56:19: warning: unused variable 'sub' [-Wunused-variable]
56 | int n, val[N][N], sub[N], vis[N];
| ^~~
bosses.cpp:56:27: warning: unused variable 'vis' [-Wunused-variable]
56 | int n, val[N][N], sub[N], vis[N];
| ^~~
bosses.cpp:119:1: error: expected '}' at end of input
119 | }
| ^
bosses.cpp:23:17: note: to match this '{'
23 | int root(int x) {
| ^
bosses.cpp:24:14: warning: control reaches end of non-void function [-Wreturn-type]
24 | queue <int> q;
| ^