| Problem | pushups |
|---|---|
| User | austenj |
| Submission Time | 2026-06-24 16:53:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
pushups.cpp: In function ‘int main()’:
pushups.cpp:15:13: error: ‘pushups’ was not declared in this scope
15 | pushups[j] += i;
| ^~~~~~~
pushups.cpp:20:9: error: ‘max_ans’ was not declared in this scope
20 | max_ans[i] = max(max_ans[i - 1], pushups[i]);
| ^~~~~~~
pushups.cpp:20:42: error: ‘pushups’ was not declared in this scope
20 | max_ans[i] = max(max_ans[i - 1], pushups[i]);
| ^~~~~~~
pushups.cpp:27:21: error: ‘max_ans’ was not declared in this scope
27 | cout << max_ans[n] << "\n";
| ^~~~~~~