Problem lunchbox
User Anonymous35V
Submission Time 2023-11-09 14:31:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:16: error: expected ‘;’ before ‘)’ token
6 | for (int i = 0) {
| ^
| ;
lunchbox.cpp:6:16: error: expected primary-expression before ‘)’ token
lunchbox.cpp:6:16: error: expected ‘;’ before ‘)’ token
6 | for (int i = 0) {
| ^
| ;
lunchbox.cpp:7:13: error: invalid types ‘int[int]’ for array subscript
7 | cin >> A[i]
| ^
lunchbox.cpp:12:14: error: invalid types ‘int[int]’ for array subscript
12 | sum=sum+A[k];
| ^