Problem management
User 6
Submission Time 2026-06-23 16:11:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

management.cpp: In function ‘int main()’:
management.cpp:6:14: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | vector<int>A[n]
| ^
| yn
management.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
management.cpp:7:1: note: in expansion of macro ‘int’
7 | int n; cin>>n;
| ^~~
management.cpp:10:1: error: expected initializer before ‘for’
10 | for(int i=0;i<n-1;i++) {
| ^~~
management.cpp:10:13: error: ‘i’ was not declared in this scope
10 | for(int i=0;i<n-1;i++) {
| ^
management.cpp:15:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | ans[x-1]++;
| ^~~
| abs
management.cpp:18:7: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
18 | cout<<ans[i]<<"\n";
| ^~~
|