Problem | potatosalad |
---|---|
User | GYEE26 |
Submission Time | 2024-06-29 20:09:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include ‹bits/stdc++.h> using namespace std;
| ^
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> N >> D;
| ^~~
potatosalad.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<int> vec;
| ^~~~~~
potatosalad.cpp:8:9: error: expected primary-expression before ‘int’
8 | vector<int> vec;
| ^~~
potatosalad.cpp:11:3: error: ‘vec’ was not declared in this scope
11 | vec.push_back(potato);
| ^~~
potatosalad.cpp:13:7: error: ‘vec’ was not declared in this scope
13 | sort(vec.begin(), vec.end(), cmp);
| ^~~
potatosalad.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
13 | sort(vec.begin(), vec.end(), cmp);
| ^~~~