Problem penguingathering
User penguin133
Submission Time 2023-12-09 09:03:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:8:19: error: expected ‘)’ before ‘;’ token
8 | for(int i=1;;i<=n;i++)cin >> X[i];
| ~ ^
| )
penguingathering.cpp:8:20: error: ‘i’ was not declared in this scope
8 | for(int i=1;;i<=n;i++)cin >> X[i];
| ^