Problem swapsort
User personjs
Submission Time 2025-01-05 21:01:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapsort.cpp: In function ‘int main()’:
swapsort.cpp:7:5: error: ‘io_base’ has not been declared
7 | io_base::sync_with_stdio(false);
| ^~~~~~~
swapsort.cpp:8:5: error: ‘cin’ was not declared in this scope
8 | 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:41:5: error: ‘cout’ was not declared in this scope
41 | cout << happyCount << "\n";
| ^~~~
swapsort.cpp:41:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?