Problem lengthsort
User dousaiirx
Submission Time 2024-04-27 10:28:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:4:10: error: ‘String’ was not declared in this scope
4 | bool cmp(String a, string b){
| ^~~~~~
lengthsort.cpp:4:27: error: expected primary-expression before ‘b’
4 | bool cmp(String a, string b){
| ^
lengthsort.cpp:4:28: error: expression list treated as compound expression in initializer [-fpermissive]
4 | bool cmp(String a, string b){
| ^
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:13:14: error: ‘i’ was not declared in this scope
13 | for(int t=0;i<n;i++){
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from lengthsort.cpp:1:
/usr/include/c++/9/bits/predefined_ops