stones.cpp:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
16 | main(){
| ^~~~
stones.cpp: In function 'int main()':
stones.cpp:31:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
31 | if(kol[1] = kol[2] && cnt[1] == cnt[2] || kol[1] > kol[2] && cnt[2] > cnt[1] || kol[2] > kol[1] && cnt[1] > cnt[2] ){
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
stones.cpp:31:99: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
31 | if(kol[1] = kol[2] && cnt[1] == cnt[2] || kol[1] > kol[2] && cnt[2] > cnt[1] || kol[2] > kol[1] && cnt[1] > cnt[2] ){
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
stones.cpp:31:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
31 | if(kol[1] = kol[2] && cnt[1] == cnt[2] || kol[1] > kol[2] && cnt[2] > cnt[1] || kol[2] > kol[1] && cnt[1] > cnt[2] ){
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stones.cpp: In function 'void fp(std::string)':
stones.cpp:12:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | void fp(string name){freopen((name+".in").c_str(),"r",stdin); freopen((name+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stones.cpp:12:70: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | void fp(string name){freopen((name+".in").c_str(),"r",stdin); freopen((name+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~