Problem management
User Hihihihihi
Submission Time 2026-06-23 16:03:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

management.cpp: In function ‘int main()’:
management.cpp:6:16: error: ‘N’ was not declared in this scope
6 | vector<int> A[N]
| ^
management.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
management.cpp:7:4: note: in expansion of macro ‘int’
7 | int N; cin>>N;
| ^~~
management.cpp:9:10: error: ‘n’ was not declared in this scope
9 | int ans[n];
| ^
management.cpp:11:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
11 | ans[i]=0;
| ^~~
| abs
management.cpp:15:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | ans[x-1]++;
| ^~~
| abs
management.cpp:17:21: error: expected primary-expression before ‘)’ token
17 | for(int i=0;i<n;i+=) {
| ^
management.cpp:18:9: error