Wrong Answer

foo.cc: In function 'int main()':
foo.cc:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&x[i].a,&x[i].b);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:22:22: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(x[i].a>now)ans++,now=x[i].b;
                 ~~~~~^~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read -1795020356, expect 12. 2ms 384.0 KiB
#2 Wrong Answer Read -1785374272, expect 16. 2ms 384.0 KiB
#3 Wrong Answer Read 1999034814, expect 15. 2ms 384.0 KiB
#4 Wrong Answer Read -100542025, expect 8. 1ms 384.0 KiB
#5 Wrong Answer Read 662399422, expect 14. 1ms 384.0 KiB
#6 Wrong Answer Read -690886202, expect 22. 2ms 384.0 KiB
#7 Wrong Answer Read 2014955965, expect 13. 2ms 384.0 KiB
#8 Wrong Answer Read 1287416258, expect 18. 2ms 384.0 KiB
#9 Wrong Answer Read -741791289, expect 23. 2ms 384.0 KiB
#10 Wrong Answer Read 1023113671, expect 23. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
「一本通 1.1 例 1」活动安排
语言
C++
递交时间
2021-06-29 23:44:40
评测时间
2021-06-29 23:44:40
评测机
分数
0
总耗时
21ms
峰值内存
384.0 KiB