0_0_38707287_11237.cpp: In function 'void quick_sort(int, int)':
0_0_38707287_11237.cpp:21:56: error: 'PII' {aka 'struct std::pair<int, int>'} has no member named 'fist'; did you mean 'first'?
21 | int i = l - 1, j = r + 1, x = (double)a[(l + r)/2].fist / a[(l + r)/2].second;
| ^~~~
| first
0_0_38707287_11237.cpp:23:34: error: request for member 'first' in 'x', which is of non-class type 'int'
23 | do ++ i; while((double)x.first / x.second < (double)y.first / y.second);
| ^~~~~
0_0_38707287_11237.cpp:23:44: error: request for member 'second' in 'x', which is of non-class type 'int'
23 | do ++ i; while((double)x.first / x.second < (double)y.first / y.second);
| ^~~~~~
0_0_38707287_11237.cpp:23:61: error: 'y' was not declared in this scope
23 | do ++ i; while((double)x.first / x.second < (double)y.first / y.second);
| ^
0_0_38707287_11237.cpp:24:34: error: request for member 'first' in 'x', which is of non-class type 'int'
24 | do -- j; while((double)x.first / x.second > (double)y.first / y.second);
| ^~~~~
0_0_38707287_11237.cpp:24:44: error: request for member 'second' in 'x', which is of non-class type 'int'
24 | do -- j; while((double)x.first / x.second > (double)y.first / y.second);
| ^~~~~~
0_0_38707287_11237.cpp:26:20: error: invalid conversion from 'PII*' {aka 'std::pair<int, int>*'} to 'int' [-fpermissive]
26 | quick_sort(a, l, j);
| ^
| |
| PII* {aka std::pair<int, int>*}
0_0_38707287_11237.cpp:26:19: error: too many arguments to function 'void quick_sort(int, int)'
26 | quick_sort(a, l, j);
| ~~~~~~~~~~^~~~~~~~~
0_0_38707287_11237.cpp:18:6: note: declared here
18 | void quick_sort(int l, int r)
| ^~~~~~~~~~
0_0_38707287_11237.cpp:27:20: error: invalid conversion from 'PII*' {aka 'std::pair<int, int>*'} to 'int' [-fpermissive]
27 | quick_sort(a, j + 1, r);
| ^
| |
| PII* {aka std::pair<int, int>*}
0_0_38707287_11237.cpp:27:19: error: too many arguments to function 'void quick_sort(int, int)'
27 | quick_sort(a, j + 1, r);
| ~~~~~~~~~~^~~~~~~~~~~~~
0_0_38707287_11237.cpp:18:6: note: declared here
18 | void quick_sort(int l, int r)
| ^~~~~~~~~~
|