Problem lineup2
User Daddy
Submission Time 2023-11-08 14:15:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup2.cpp: In function ‘int main()’:
lineup2.cpp:8:13: error: array must be initialized with a brace-enclosed initializer
8 | int a[i]=i+1;
| ~^~
lineup2.cpp:16:5: error: ‘a’ was not declared in this scope
16 | a[j]++;
| ^
lineup2.cpp:20:5: error: ‘a’ was not declared in this scope
20 | a[j]--;
| ^