| Problem | management |
|---|---|
| User | Rigiddivot251112 |
| Submission Time | 2026-06-23 15:58:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
management.cpp: In function ‘int main()’:
management.cpp:9:5: error: expected initializer before ‘vector’
9 | vector<int> ans(n, 0);
| ^~~~~~
management.cpp:10:9: error: redeclaration of ‘int x’
10 | int x;
| ^
management.cpp:7:6: note: ‘int x’ previously declared here
7 | int x;
| ^
management.cpp:12:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
12 | ans[1] = 0;
| ^~~
| abs
management.cpp:16:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | ans[x - 1]++;
| ^~~
| abs
management.cpp:19:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | cout << ans[i] << "\n";
| ^~~
| abs