Problem | shops |
---|---|
User | Rolo |
Submission Time | 2025-03-27 02:18:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shops.cpp: In function ‘void dfs(int)’:
shops.cpp:15:17: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in initialization
15 | for(int u : g[i])
| ^
shops.cpp: At global scope:
shops.cpp:24:1: error: expected declaration before ‘}’ token
24 | }
| ^
shops.cpp: In function ‘int main()’:
shops.cpp:37:14: error: ‘ALL’ was not declared in this scope; did you mean ‘P_ALL’?
37 | sort(ALL(v[i]));
| ^~~
| P_ALL
shops.cpp:41:26: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(int&)’
41 | g[i].pb(v[i][0].s);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,