Problem sellingpotatoes
User Haocheng
Submission Time 2024-11-19 15:09:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sellingpotatoes.cpp: In function ‘int main()’:
sellingpotatoes.cpp:20:10: error: expected unqualified-id before numeric constant
20 | for(int 1=0;i<N;i++){
| ^
sellingpotatoes.cpp:20:10: error: expected ‘;’ before numeric constant
sellingpotatoes.cpp:20:12: error: lvalue required as left operand of assignment
20 | for(int 1=0;i<N;i++){
| ^
sellingpotatoes.cpp:20:14: error: ‘i’ was not declared in this scope
20 | for(int 1=0;i<N;i++){
| ^
sellingpotatoes.cpp:20:17: error: expected ‘)’ before ‘;’ token
20 | for(int 1=0;i<N;i++){
| ~ ^
| )
sellingpotatoes.cpp:20:18: error: ‘i’ was not declared in this scope
20 | for(int 1=0;i<N;i++){
| ^