Problem pushups
User Jaysonwee22
Submission Time 2026-06-25 08:58:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp:2:1: error: ‘cin’ does not name a type
2 | cin >> n;
| ^~~
pushups.cpp:4:1: error: expected ‘,’ or ‘;’ before ‘for’
4 | for (int i = 1; i <= n; i++) {
| ^~~
pushups.cpp:4:17: error: ‘i’ does not name a type
4 | for (int i = 1; i <= n; i++) {
| ^
pushups.cpp:4:25: error: ‘i’ does not name a type
4 | for (int i = 1; i <= n; i++) {
| ^
pushups.cpp:13:1: error: ‘cout’ does not name a type
13 | cout << max;
| ^~~~