| Problem | maintainsum |
|---|---|
| User | th3manyax3s |
| Submission Time | 2025-11-27 15:02:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
maintainsum.cpp:3:9: error: ‘arr’ was not declared in this scope
3 | int sum(arr) {
| ^~~
maintainsum.cpp: In function ‘int main()’:
maintainsum.cpp:15:14: error: expected ‘;’ before ‘==’ token
15 | for (int num == 1; num <= q; ++num) {
| ^~~
| ;
maintainsum.cpp:15:15: error: expected primary-expression before ‘==’ token
15 | for (int num == 1; num <= q; ++num) {
| ^~
maintainsum.cpp:15:29: error: expected ‘)’ before ‘;’ token
15 | for (int num == 1; num <= q; ++num) {
| ~ ^
| )
maintainsum.cpp:15:33: error: ‘num’ was not declared in this scope; did you mean ‘sum’?
15 | for (int num == 1; num <= q; ++num) {
| ^~~
| sum