aliens.cpp: In function 'int main()':
aliens.cpp:49:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
49 | printf("solution %d %d\n",(x1+x2)/2,(y1+y2)/2);
| ~^ ~~~~~~~~~
| | |
| int ll {aka long long int}
| %lld
aliens.cpp:49:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'll' {aka 'long long int'} [-Wformat=]
49 | printf("solution %d %d\n",(x1+x2)/2,(y1+y2)/2);
| ~^ ~~~~~~~~~
| | |
| int ll {aka long long int}
| %lld
aliens.cpp: In function 'void usaco(std::string)':
aliens.cpp:5:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | void usaco(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.cpp:5:66: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | void usaco(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.cpp: In function 'int main()':
aliens.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%lld%lld%lld",&n,&x,&y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~