Problem ants
User popperoni
Submission Time 2025-08-20 17:34:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ants.cpp: In function ‘void adjust(int, int)’:
ants.cpp:184:11: error: ‘A’ was not declared in this scope
184 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp:184:23: error: ‘B’ was not declared in this scope
184 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp: In function ‘void safe(int)’:
ants.cpp:192:14: error: ‘A’ was not declared in this scope
192 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp:192:16: error: ‘i’ was not declared in this scope
192 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp:192:26: error: ‘B’ was not declared in this scope
192 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp: In function ‘void dangerous(int)’:
ants.cpp:199:14: error: ‘A’ was not declared in this scope
199 | if(depth[A[i]]>depth[B[i]])
| ^
ants.cpp:199:16: error: ‘i’ was not decla