| Problem | sumint |
|---|---|
| User | yikai |
| Submission Time | 2026-02-13 15:25:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> x;
| ^~~
| 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:6:17: error: expected ‘;’ before ‘<’ token
6 | for(int i = 0,i < x, i++){
| ^~
| ;
sumint.cpp:6:18: error: expected primary-expression before ‘<’ token
6 | for(int i = 0,i < x, i++){
| ^
sumint.cpp:6:26: error: expected ‘;’ before ‘)’ token
6 | for(int i = 0,i < x, i++){
| ^
| ;
sumint.cpp:10:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
10 | cout << sum