记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   12 |     else
      |     ^~~~
/in/foo.cc:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   17 |         if(y==1)t=r;
      |         ^~
/in/foo.cc:29:15: warning: 't' may be used uninitialized [-Wmaybe-uninitialized]
   29 |         cout<<t<<endl;
      |               ^
/in/foo.cc:5:21: note: 't' was declared here
    5 |         int n,y,r,q,t;
      |                     ^
# 状态 耗时 内存占用
#1 Accepted 2ms 528.0 KiB
#2 Accepted 2ms 496.0 KiB
#3 Wrong Answer 2ms 496.0 KiB
#4 Wrong Answer 4ms 496.0 KiB
#5 Wrong Answer 5ms 532.0 KiB

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C++
递交时间
2025-09-27 20:24:07
评测时间
2025-10-03 02:16:13
评测机
分数
40
总耗时
17ms
峰值内存
532.0 KiB