Problem | sealevel |
---|---|
User | CKCodeBreaker55 |
Submission Time | 2025-03-12 14:42:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sealevel.cpp: In function ‘int main()’:
sealevel.cpp:22:3: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
22 | dfs(x, y, 0);
| ^~~
| ffs
sealevel.cpp: In function ‘void dfs(long long int, long long int, long long int)’:
sealevel.cpp:32:37: error: ‘adjlist’ was not declared in this scope
32 | relativeheight -= relativeheight - adjlist[x].second;
| ^~~~~~~
sealevel.cpp:33:6: error: ‘vis’ was not declared in this scope
33 | if (vis[x]) return;
| ^~~
sealevel.cpp:34:2: error: ‘vis’ was not declared in this scope
34 | vis[x] = true;
| ^~~
sealevel.cpp:35:13: error: ‘adjList’ was not declared in this scope
35 | for (int i:adjList[x])
| ^~~~~~~
sealevel.cpp:37:30: error: expected ‘)’ before ‘;’ token
37 | dfs(i, goal, relativeheight;
| ~ ^
|