Problem | swapsort |
---|---|
User | bobbery |
Submission Time | 2024-01-15 19:40:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp:10:21: error: expected constructor, destructor, or type conversion before ‘(’ token
10 | ios::sync_with_stdio(0); cin.tie(0);
| ^
swapsort.cpp:10:26: error: ‘cin’ does not name a type
10 | ios::sync_with_stdio(0); cin.tie(0);
| ^~~
swapsort.cpp:12:34: error: ‘S’ was not declared in this scope
12 | const vector<S>& vector)
| ^
swapsort.cpp:12:35: error: template argument 1 is invalid
12 | const vector<S>& vector)
| ^
swapsort.cpp:12:35: error: template argument 2 is invalid
swapsort.cpp: In function ‘std::ostream& operator<<(std::ostream&, const int&)’:
swapsort.cpp:16:25: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
16 | for (auto element : vector) {
| ^~~~~~