Problem management
User Peixi1210
Submission Time 2026-08-22 15:56:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

management.cpp: In function ‘int main()’:
management.cpp:19:12: error: invalid types ‘int[int]’ for array subscript
19 | a[b]++;
| ^
management.cpp:21:17: error: ‘subordinates’ was not declared in this scope
21 | cout << subordinates[i] << "\n";
| ^~~~~~~~~~~~
management.cpp:22:5: error: expected ‘}’ at end of input
22 | }
| ^
management.cpp:16:34: note: to match this ‘{’
16 | for (int i = 2; i <= N; ++i) {
| ^
management.cpp:22:5: error: expected ‘}’ at end of input
22 | }
| ^
management.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^