| Problem | sumint |
|---|---|
| User | Jovan67 |
| Submission Time | 2026-04-01 20:57:59 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp:7:6: error: ‘cin’ in namespace ‘std’ does not name a type
7 | std::cin > d;
| ^~~
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:9:1: error: expected unqualified-id before ‘for’
9 | for(int i = 0; i < d; i++;){
| ^~~
sumint.cpp:9:16: error: ‘i’ does not name a type
9 | for(int i = 0; i < d; i++;){
| ^
sumint.cpp:9:23: error: ‘i’ does not name a type
9 | for(int i = 0; i < d; i++;){
| ^
sumint.cpp:9:27: error: expected unqualified-id before ‘)’ token
9 | for(int i = 0; i < d; i++;){
| ^
sumint.cpp:14:6: error: ‘cout’ in namespace ‘std’ does not name a type
14 | std::cout << total <<'\n';
| ^~~~
In file