Problem sort
User ToiletBrIcker
Submission Time 2024-06-19 11:45:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘bool gangnumstyle(std::string, std::string)’:
sort.cpp:3:5: error: expected ‘(’ before ‘string_a’
3 | if string_a.size() != string_b.size(){
| ^~~~~~~~
| (
sort.cpp:6:2: error: ‘else’ without a previous ‘if’
6 | else {
| ^~~~
sort.cpp: In function ‘int main()’:
sort.cpp:16:20: error: ‘n’ was not declared in this scope
16 | std::sort(arr,arr+n,gangnumstyle)
| ^
sort.cpp:18:1: error: ‘z’ was not declared in this scope
18 | z]
| ^
sort.cpp:18:2: error: expected ‘}’ at end of input
18 | z]
| ^
sort.cpp:14:27: note: to match this ‘{’
14 | for (int i = 0;i < N;i++){
| ^
sort.cpp:18:2: error: expected ‘}’ at end of input
18 | z]
| ^
sort.cpp:10:11: note: to match this ‘{’
10 | int main(){
| ^