naan.cpp:16:40: warning: bad option '-funroll-lopps' to pragma 'optimize' [-Wpragmas]
16 | #pragma GCC optimize ("03,unroll-lopps")
| ^
naan.cpp:23:23: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
23 | void setIO(string name){
| ^
naan.cpp:28:21: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
28 | int gcd2(int x,int y){
| ^
naan.cpp:39:21: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
39 | void reduce(){
| ^
naan.cpp:44:36: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
44 | void operator-=(fraction &o){
| ^
naan.cpp:55:36: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
55 | void operator+=(fraction &o){
| ^
naan.cpp:66:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
66 | fraction operator+(fraction &o){
| ^
naan.cpp:73:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
73 | fraction operator-(fraction &o){
| ^
naan.cpp:80:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
80 | fraction operator/(fraction &o){
| ^
naan.cpp:89:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
89 | fraction operator*(fraction &o){
| ^
naan.cpp:98:29: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
98 | int cmp(fraction &y)const{
| ^~~~~
naan.cpp:103:37: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
103 | bool operator<=(fraction &o)const{return cmp(o)<=0;}
| ^~~~~
naan.cpp:104:37: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
104 | bool operator==(fraction &o)const{return cmp(o)==0;}
| ^~~~~
naan.cpp:105:37: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
105 | bool operator>=(fraction &o)const{return cmp(o)>=0;}
| ^~~~~
naan.cpp:113:14: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
113 | int32_t main(){
| ^
naan.cpp: In function 'void setIO(std::string)':
naan.cpp:25:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | freopen((name+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
naan.cpp:26:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | freopen((name+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~