Problem | sumint |
---|---|
User | meixu |
Submission Time | 2023-02-17 17:17:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp:2:5: error: ‘cin’ does not name a type
2 | cin >> d;
| ^~~
sumint.cpp:3:5: error: ‘vector’ does not name a type
3 | vector<int> l(d+1, 0);
| ^~~~~~
sumint.cpp:4:5: error: expected unqualified-id before ‘for’
4 | for (int i = 1; i <= d; i++) {
| ^~~
sumint.cpp:4:21: error: ‘i’ does not name a type
4 | for (int i = 1; i <= d; i++) {
| ^
sumint.cpp:4:29: error: ‘i’ does not name a type
4 | for (int i = 1; i <= d; i++) {
| ^
sumint.cpp:9:5: error: ‘cout’ does not name a type
9 | cout << accumulate(l.begin(), l.end(), 0) << endl;
| ^~~~
sumint.cpp:10:1: error: ‘Submit’ does not name a type
10 | Submit
| ^~~~~~