map.cpp: In function ‘int dfs(int, int)’:
map.cpp:13:3: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
map.cpp:15:18: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
else if(col[x]) return;
^
map.cpp:17:17: error: ‘n’ was not declared in this scope
for(int i=0; i<n; i++){
^
map.cpp:19:9: error: too few arguments to function ‘int dfs(int, int)’
dfs(i);
^
map.cpp:10:5: note: declared here
int dfs(int x, int p){
^
map.cpp: In function ‘long long int NumberOfMaps(int, int, int*, int*)’:
map.cpp:35:9: error: too few arguments to function ‘int dfs(int, int)’
dfs(i);
^
map.cpp:10:5: note: declared here
int dfs(int x, int p){
^