记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(z1>sqrt(i))
   ^~
/in/foo.cc:20:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    int z2=2;
    ^~~
/in/foo.cc:27:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(z2>sqrt(d))
   ^~
/in/foo.cc:29: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:22: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<x1<<"+"<<x2<<"="<<x<<endl;
                      ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 356.0 KiB
#3 Accepted 1ms 348.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C++
递交时间
2024-08-15 16:31:28
评测时间
2024-08-15 16:31:28
评测机
分数
100
总耗时
7ms
峰值内存
376.0 KiB