记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(z1>sqrt(i))
   ^~
/in/foo.cc:21:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    int z2=2;
    ^~~
/in/foo.cc:28:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(z2>sqrt(d))
   ^~
/in/foo.cc:30:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if(x1+x2==x)
    ^~
/in/foo.cc:6:18: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int x,i=2,x1,x2,d;
                  ^
/in/foo.cc:30:9: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(x1+x2==x)
       ~~^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 1ms 376.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 344.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
比赛
南师大(含泰州学院)2024年新生赛(第三场之辅赛)
语言
C++
递交时间
2024-09-05 22:18:19
评测时间
2024-09-05 22:18:19
评测机
分数
100
总耗时
7ms
峰值内存
376.0 KiB