Problem | snack |
---|---|
User | RendezvousAnonymous |
Submission Time | 2023-11-09 15:20:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snack.cpp: In function ‘int main()’:
snack.cpp:9:7: error: expected ‘;’ before ‘int’
9 | k = 0
| ^
| ;
10 | int arr[n];
| ~~~
snack.cpp:12:2: error: expected initializer before ‘for’
12 | for (int i == 0; i < n; i++){
| ^~~
snack.cpp:12:19: error: ‘i’ was not declared in this scope
12 | for (int i == 0; i < n; i++){
| ^
snack.cpp:20:2: error: ‘arr2’ was not declared in this scope
20 | arr2[0] = max(0, arr[0]);
| ^~~~
snack.cpp:20:19: error: ‘arr’ was not declared in this scope
20 | arr2[0] = max(0, arr[0]);
| ^~~
snack.cpp:21:12: error: expected ‘;’ before ‘==’ token
21 | for (int k == 1; k < n; k++){
| ^~~
| ;
snack.cpp:21:13: error: expected primary-expression before ‘==’ token
21 | for (int k == 1; k < n; k++){
| ^~