| Problem | pushups |
|---|---|
| User | Jaysonwee22 |
| Submission Time | 2026-06-25 09:04:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:22: 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;
| ^~~~
pushups.cpp:14:5: error: redefinition of ‘int max’
14 | int max = 0;
| ^~~
pushups.cpp:3:5: note: ‘int max’ previously defined here
3 | int max = 0
| ^~~
pushups.cpp:15:1: error: ‘vector’ does not name a type
15 | vector<int> div(n + 1, 0);
| ^~~~~~
pushups.cpp:16:1: error: expected unqualified-id before ‘for’
16 | for (int i = 1; i <= n; i++) {
| ^~~