Problem | swapsort |
---|---|
User | personjs |
Submission Time | 2025-01-05 21:00:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘bool isSorted(const std::vector<int>&, int, int)’:
swapsort.cpp:8:24: error: expected primary-expression before ‘)’ token
8 | if (_l == P[_l] && )
| ^
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:13:5: error: ‘io_base’ has not been declared
13 | io_base::sync_with_stdio(false);
| ^~~~~~~
swapsort.cpp:14:5: error: ‘cin’ was not declared in this scope
14 | cin.tie(0);
| ^~~
swapsort.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <algorithm>
+++ |+#include <iostream>
3 |
swapsort.cpp:47:5: error: ‘cout’ was not declared in this scope
47 | cout << happyCount << "\n";
| ^~~~
swapsort.cpp:47:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?<