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:45:36: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
45 | void operator-=(fraction &o){
| ^
naan.cpp:56:36: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
56 | void operator+=(fraction &o){
| ^
naan.cpp:67:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
67 | fraction operator+(fraction &o){
| ^
naan.cpp:74:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
74 | fraction operator-(fraction &o){
| ^
naan.cpp:81:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
81 | fraction operator/(fraction &o){
| ^
naan.cpp:90:39: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
90 | fraction operator*(fraction &o){
| ^
naan.cpp:99:29: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
99 | int cmp(fraction &y)const{
| ^~~~~
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:106:37: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
106 | bool operator>=(fraction &o)const{return cmp(o)>=0;}
| ^~~~~
naan.cpp:114:14: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
114 | 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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~