Problem exoticplants
User sharelletqx
Submission Time 2026-08-01 10:20:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exoticplants.cpp: In function ‘int main()’:
exoticplants.cpp:23:11: error: ‘u’ was not declared in this scope
23 | if(dist[u]=d) continue;
| ^
exoticplants.cpp:26:7: error: expected ‘(’ before ‘auto’
26 | for auto [v,w]:adj[u]){
| ^~~~
| (
exoticplants.cpp:28:30: error: expected primary-expression before ‘)’ token
28 | int nwnode=(layer-1)*(N+!);
| ^
exoticplants.cpp:34:29: error: ‘V’ was not declared in this scope
34 | int nwnode=(layer)*(N+1)+V;
| ^