Problem management
User yq
Submission Time 2026-06-23 15:51:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
management.cpp: In function ‘int main()’:
management.cpp:11:10: error: ‘i’ was not declared in this scope
11 | cin>>A[i];
| ^
management.cpp:13:6: error: ‘inti’ was not declared in this scope; did you mean ‘int’?
13 | for(inti=0;i<N+1;i++){
| ^~~~
| int
management.cpp:13:13: error: ‘i’ was not declared in this scope
13 | for(inti=0;i<N+1;i++){
| ^
management.cpp:15:9: error: expected ‘;’ before ‘C’
15 | cin>>x
| ^
| ;
16 | C[x]++;
| ~
management.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
management.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^