Problem sort
User Hytoh
Submission Time 2023-05-30 15:07:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘bool compare(std::string, std::string)’:
sort.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘int’
6 | int bs = b.size();
| ^~~
sort.cpp:7:15: error: ‘bs’ was not declared in this scope; did you mean ‘as’?
7 | if (as != bs)
| ^~
| as
sort.cpp: In function ‘int main()’:
sort.cpp:16:9: error: ‘a’ was not declared in this scope
16 | cin >> a[i];
| ^
sort.cpp:20:11: error: ‘a’ was not declared in this scope
20 | cout << a[i] << " ";
| ^