Problem | grassplant |
---|---|
User | gelastropod |
Submission Time | 2025-03-17 13:06:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
grassplant.cpp: In member function ‘void node::prop()’:
grassplant.cpp:16:15: error: continue statement not within a loop
16 | if (s == e) continue;
| ^~~~~~~~
grassplant.cpp:17:18: error: continue statement not within a loop
17 | if (lazy == 0) continue;
| ^~~~~~~~
grassplant.cpp: In function ‘void dfs1(long long int, long long int)’:
grassplant.cpp:60:6: error: invalid types ‘long long int[long long int]’ for array subscript
60 | p[i] = n;
| ^
grassplant.cpp: In function ‘void dfs2(long long int, long long int)’:
grassplant.cpp:66:11: error: reference to ‘count’ is ambiguous
66 | pre[n] = count++;
| ^~~~~
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from grassplant.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:101:1: note: candidates a