Problem ants
User popperoni
Submission Time 2025-08-20 11:28:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ants.cpp:24:12: error: expected initializer before ‘__int128’
24 | #define ll __int128
| ^~~~~~~~
ants.cpp:110:1: note: in expansion of macro ‘ll’
110 | ll depth[maxn], pre[maxn], end1[maxn];
| ^~
ants.cpp: In function ‘void dfs(__int128, __int128)’:
ants.cpp:116:5: error: ‘adj’ was not declared in this scope
116 | if(adj[cur].size()>=2&&adj[cur][0]==p){
| ^~~
ants.cpp:119:12: error: ‘adj’ was not declared in this scope
119 | for(ll &i:adj[cur]){
| ^~~
ants.cpp: In function ‘void nt(__int128, __int128, __int128)’:
ants.cpp:129:3: error: ‘depth’ was not declared in this scope
129 | depth[x]=d;
| ^~~~~
ants.cpp:130:5: error: ‘pre’ was not declared in this scope
130 | pre[x] = counter++;
| ^~~
ants.cpp:131:18: error: ‘adj’ was not declared in this scope
131 | for (int i : adj[x]) {
| ^~~
ants.cpp:136:5