timovi.cpp:63:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
63 | main()
| ^~~~
timovi.cpp:90:6: error: redefinition of 'void setIO(std::string)'
90 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ^~~~~
timovi.cpp:16:6: note: 'void setIO(std::string)' previously defined here
16 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ^~~~~
timovi.cpp:92:11: error: redefinition of 'const long long int N'
92 | const int N = 300000 , MOD = 1e9+7 ;
| ^
timovi.cpp:18:11: note: 'const long long int N' previously defined here
18 | const int N = 300000 , MOD = 1e9+7 ;
| ^
timovi.cpp:92:24: error: redefinition of 'const long long int MOD'
92 | const int N = 300000 , MOD = 1e9+7 ;
| ^~~
timovi.cpp:18:24: note: 'const long long int MOD' previously defined here
18 | const int N = 300000 , MOD = 1e9+7 ;
| ^~~
timovi.cpp:99:6: error: redefinition of 'void slv()'
99 | void slv()
| ^~~
timovi.cpp:25:6: note: 'void slv()' previously defined here
25 | void slv()
| ^~~
timovi.cpp:137:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
137 | main()
| ^~~~
timovi.cpp:137:1: error: redefinition of 'int main()'
timovi.cpp:63:1: note: 'int main()' previously defined here
63 | main()
| ^~~~
timovi.cpp: In function 'void setIO(std::string)':
timovi.cpp:16:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
timovi.cpp:16:66: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
timovi.cpp: In function 'void setIO(std::string)':
timovi.cpp:90:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
timovi.cpp:90:66: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | void setIO(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~