Problem sumint
User fox
Submission Time 2025-01-20 17:23:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:6: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | std:cin >> d;
| ^~~
| std::cin
In file included from sumint.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
sumint.cpp:10:18: error: expected ‘;’ before ‘<’ token
10 | for(int i = 0, i < d,1++) {
| ^~
| ;
sumint.cpp:10:19: error: expected primary-expression before ‘<’ token
10 | for(int i = 0, i < d,1++) {
| ^
sumint.cpp:10:24: error: lvalue required as increment operand
10 | for(int i = 0, i < d,1++) {
| ^~
sumint.cpp:10:26: error: expected ‘;’ before ‘)’ token
10 | for(int i = 0, i < d,1++) {
|