Problem lengthsort
User Dam
Submission Time 2023-02-27 15:46:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
lengthsort.cpp:4:16: error: ‘string’ was not declared in this scope
4 | bool sortByLen(string a, string b){
| ^~~~~~
lengthsort.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | #inlcude <bits/stdc++.h>
lengthsort.cpp:4:26: error: ‘string’ was not declared in this scope
4 | bool sortByLen(string a, string b){
| ^~~~~~
lengthsort.cpp:4:26: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
lengthsort.cpp:4:34: error: expression list treated as compound expression in initializer [-fpermissive]
4 | bool sortByLen(string a, string b){
|