Main.c:7:14: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
7 | void swap(int& i, int& j) {
| ^
Main.c: In function ‘sort’:
Main.c:16:31: warning: implicit declaration of function ‘swap’ [-Wimplicit-function-declaration]
16 | if(a[i] < a[j]) { swap(a[i], a[j]); swap(b[i], b[j]); }
| ^~~~
Main.c: At top level:
Main.c:20:1: error: unknown type name ‘bool’
20 | bool check_2() { //两个两个的比对
| ^~~~
Main.c: In function ‘main’:
Main.c:51:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%d%d", &a[i], &b[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~