/in/foo.c:1:1: error: unknown type name 'using'
using namespace std;
^~~~~
/in/foo.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^~~
/in/foo.c:5:1: error: unknown type name 'bool'
bool cmp(ll a , ll b) {return a > b;}
^~~~
/in/foo.c: In function 'main':
/in/foo.c:30:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%lld%lld" , &a , &b) , a -- ;
^~~~~
/in/foo.c:30:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:30:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:36:5: warning: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
sort(w + 1 , w + n + 1 , cmp);
^~~~
/in/foo.c:39:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%lld\n" , b - a - ans);
^~~~~~
/in/foo.c:39:5: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:39:5: note: include '<stdio.h>' or provide a declaration of 'printf'