Problem | sumint |
---|---|
User | fanqie |
Submission Time | 2023-11-09 16:11:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:10:16: error: expected unqualified-id before ‘int’
10 | for (int t=0, int i=0 d<=10000, i++){
| ^~~
sumint.cpp:10:15: error: expected ‘;’ before ‘int’
10 | for (int t=0, int i=0 d<=10000, i++){
| ^~~~
| ;
sumint.cpp:10:23: error: expected ‘;’ before ‘d’
10 | for (int t=0, int i=0 d<=10000, i++){
| ^~
| ;
sumint.cpp:11:7: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
11 | cin << t;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
sumint.cpp:11:7: note: candidate: ‘operator<<(int, int)’ <built-in>
11 | cin << t;
| ~~~~^~~~
sumint.cpp:11:7: note: no known