Problem sumint
User Tianrui
Submission Time 2024-03-18 17:57:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:22: error: ‘days’ was not declared in this scope
7 | for (int i = 0; i < days; ++1) {
| ^~~~
sumint.cpp:7:30: error: lvalue required as increment operand
7 | for (int i = 0; i < days; ++1) {
| ^
sumint.cpp:18:10: error: expected ‘;’ before ‘}’ token
18 | return 0
| ^
| ;
19 | }
| ~