Problem | oranges2 |
---|---|
User | boaznumberd5555 |
Submission Time | 2024-12-18 17:02:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
oranges2.cpp: In function ‘void dfs(int, int)’:
oranges2.cpp:36:21: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in initialization
36 | for(int i: adj[x]){
| ^
oranges2.cpp: At global scope:
oranges2.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^
oranges2.cpp: In function ‘int lca(int, int)’:
oranges2.cpp:56:46: error: invalid types ‘int[int]’ for array subscript
56 | if(par[a][k] != par[b][k]) a = p[a][k], b = p[b][k];
| ^
oranges2.cpp:56:59: error: invalid types ‘int[int]’ for array subscript
56 | if(par[a][k] != par[b][k]) a = p[a][k], b = p[b][k];
| ^
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:78:29: error: ‘c’ was not declared in this scope
78 | adj[u].push_back({v,c});
|