| Problem | sumint |
|---|---|
| User | Guest1234 |
| Submission Time | 2026-03-18 16:06:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:10:22: error: expected ‘;’ before ‘<’ token
10 | for (int i = 0, i<10, i++){
| ^
| ;
sumint.cpp:10:22: error: expected primary-expression before ‘<’ token
sumint.cpp:10:30: error: expected ‘;’ before ‘)’ token
10 | for (int i = 0, i<10, i++){
| ^
| ;
sumint.cpp:12:9: error: no match for ‘operator+’ (operand types are ‘int’ and ‘std::istream’ {aka ‘std::basic_istream<char>’})
12 | x = x + cin;
| ~ ^ ~~~
| | |
| int std::istream {aka std::basic_istream<char>}
sumint.cpp:12:9: note: candidate: ‘operator+(int, int)’ <built-in>
12 | x = x + cin;
| ~~^~~~~
sumint.cpp:12:9: note: no known conversion for argument 2 from ‘std::istream’ {aka ‘std::basic_istream<char