Problem swapsort
User bobbery
Submission Time 2024-01-15 19:39:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:13:34: error: ‘S’ was not declared in this scope
13 | const vector<S>& vector)
| ^
swapsort.cpp:13:35: error: template argument 1 is invalid
13 | const vector<S>& vector)
| ^
swapsort.cpp:13:35: error: template argument 2 is invalid
swapsort.cpp: In function ‘std::ostream& operator<<(std::ostream&, const int&)’:
swapsort.cpp:17:25: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
17 | for (auto element : vector) {
| ^~~~~~