Problem sort
User JJYZZ
Submission Time 2024-06-19 11:19:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp:3:10: error: ‘string’ was not declared in this scope
3 | bool cmp(string left, string right){
| ^~~~~~
sort.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | using namespace std;
sort.cpp:3:23: error: ‘string’ was not declared in this scope
3 | bool cmp(string left, string right){
| ^~~~~~
sort.cpp:3:23: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
sort.cpp:3:35: error: expression list treated as compound expression in initializer [-fpermissive]
3 | bool cmp(string left, string right){
| ^
sort.cpp: In function ‘int main()’:
sort.cpp:13:5: error: ‘ios_base’ has not been declared
13 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
sort.cpp:14:5: error: ‘cin’ was no