avoid.cpp: In function 'll profit_ch(int, int, int)':
avoid.cpp:44:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(i=0; i<p.size(); i++){
| ~^~~~~~~~~
avoid.cpp: In function 'int main()':
avoid.cpp:53:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
avoid.cpp:55:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%lld", &c[i]);
| ~~~~~^~~~~~~~~~~~~~~
avoid.cpp:57:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%lld", &s[i]);
| ~~~~~^~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccyUU1IL.o: in function `main':
interface.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc6TIRgL.o:avoid.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccyUU1IL.o: in function `main':
interface.cpp:(.text.startup+0x1b): undefined reference to `scout(int, int)'
collect2: error: ld returned 1 exit status