foo.cc: In function 'int simplify(int, int)':
foo.cc:86:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cc: In function 'int main()':
foo.cc:13:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:19:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i],&b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int fenmu(int*, int)':
foo.cc:61:7: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
b[i+1]=r;
~~~~~~^~
foo.cc: In function 'int simplify(int, int)':
foo.cc:84:7: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",m/j,s/j);//分数约分
~~~~~~^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。