sorting.cpp: In function 'int main()':
sorting.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&mas[i]);
| ~~~~~^~~~~~~~~~~~~~
sorting.cpp:18:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d",&a[k]);scanf("%d",&b[k]);
| ~~~~~^~~~~~~~~~~~
sorting.cpp:18:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d",&a[k]);scanf("%d",&b[k]);
| ~~~~~^~~~~~~~~~~~
/tmp/cchttaQ6.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccqEKLfT.o:sorting.cpp:(.text.startup+0x0): first defined here
/tmp/cchttaQ6.o: In function `main':
grader.c:(.text.startup+0x4a5): undefined reference to `findSwapPairs(int, int*, int, int*, int*, int*, int*)'
collect2: error: ld returned 1 exit status