Problem | tourists |
---|---|
User | Pan |
Submission Time | 2024-09-12 01:04:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
tourists.cpp:67:46: error: ‘ll ps [200005]’ redeclared as different kind of entity
67 | ll twok[200005][25], depth[200005], ps[200005];
| ^
tourists.cpp:41:4: note: previous declaration ‘ll ps(ll)’
41 | ll ps(ll i)
| ^~
tourists.cpp: In function ‘void dfs(ll, ll)’:
tourists.cpp:76:8: error: assignment of read-only location ‘*(ps + ((sizetype)x))’
76 | ps[x] = 0;
| ~~~~~~^~~
tourists.cpp: In function ‘int main()’:
tourists.cpp:156:61: error: invalid conversion from ‘ll (*)(ll)’ {aka ‘long long int (*)(long long int)’} to ‘ll’ {aka ‘long long int’} [-fpermissive]
156 | if (minn <= maxx) rangeupdate(minn, maxx, -sp(u, it->s) + ps[it->s]);
| ~~~~~~~~~~~~~~^~~~~~~~~~~
| |
| l