Problem worldmap
User popperoni
Submission Time 2026-05-27 18:09:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

worldmap.cpp:50:10: error: ‘N’ was not declared in this scope
50 | bool mat[N+1][N+1];
| ^
worldmap.cpp:50:15: error: ‘N’ was not declared in this scope
50 | bool mat[N+1][N+1];
| ^
worldmap.cpp: In function ‘void dfs(int, int)’:
worldmap.cpp:57:3: error: ‘mat’ was not declared in this scope
57 | mat[u][i]=0;
| ^~~
worldmap.cpp: In function ‘std::vector<std::vector<int> > create_map(int, int, std::vector<int>, std::vector<int>)’:
worldmap.cpp:69:9: error: ‘mat’ was not declared in this scope
69 | memset(mat,0,sizeof(mat));
| ^~~