/ Minecraft /

记录详情

Accepted

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)进行评测。
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1007 多个分数的加法
语言
C++
递交时间
2021-03-21 14:43:44
评测时间
2021-03-21 14:43:44
评测机
分数
100
总耗时
4ms
峰值内存
256.0 KiB