Problem pushups
User innerspace777
Submission Time 2024-05-17 14:39:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘int main()’:
pushups.cpp:21:5: error: ‘ios_base’ has not been declared
21 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
pushups.cpp:30:12: error: found ‘:’ in nested-name-specifier, expected ‘::’
30 | for (i : arr) {
| ^
| ::
pushups.cpp:30:10: error: ‘i’ has not been declared
30 | for (i : arr) {
| ^
pushups.cpp:34:1: error: expected primary-expression before ‘}’ token
34 | }
| ^
pushups.cpp:32:6: error: expected ‘;’ before ‘}’ token
32 | }
| ^
| ;
33 |
34 | }
| ~
pushups.cpp:34:1: error: expected primary-expression before ‘}’ token
34 | }
| ^
pushups.cpp:32:6: error: expected ‘)’ before ‘}’ token
32 | }
| ^
| )
33 |
34 | }
| ~
pushups.cpp:30:9: note: to match this ‘(’
30