Problem | workload2 |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-07 11:51:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
workload2.cpp:30:17: error: expected initializer before ‘ans’
30 | int psum[40005] ans[40005];
| ^~~
workload2.cpp: In function ‘int32_t main()’:
workload2.cpp:64:4: error: ‘psum’ was not declared in this scope
64 | ++psum[vect[0].fi], --psum[vect[0].se+1];
| ^~~~
workload2.cpp:83:49: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
83 | for (int i=0, ss=0; i<40005; ++i)ss+=psum[i], ans[c.i]=max(ans[c.i], ss);
| ^~~
| abs
workload2.cpp:85:14: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
85 | for (auto a:ans)cout<<a<<"\n";
| ^~~
| abs