Problem | sumint |
---|---|
User | Chris |
Submission Time | 2024-11-22 10:01:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int32_t main()’:
sumint.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
sumint.cpp:11:9: note: in expansion of macro ‘int’
11 | cin >> int d;
| ^~~
sumint.cpp:12:2: error: ‘total’ was not declared in this scope
12 | total = 0;
| ^~~~~
sumint.cpp:13:19: error: expected ‘;’ before ‘<=’ token
13 | for (int x = 0, x <= d, x++){
| ^~~
| ;
sumint.cpp:13:20: error: expected primary-expression before ‘<=’ token
13 | for (int x = 0, x <= d, x++){
| ^~
sumint.cpp:13:29: error: expected ‘;’ before ‘)’ token
13 | for (int x = 0, x <= d, x++){
| ^
| ;
sumint.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long