Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (i==k)
   ^~
foo.cc:12:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    j=i*i;
    ^
foo.cc:13:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(j%k==i)
   ^~
foo.cc:15:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    cnt += 1;
    ^~~
foo.cc:6:17: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  long i,j,k,a,b,cnt,sum; cin>>a>>b;
                 ^~~
foo.cc:14:8: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum += i;
    ~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 451, expect 2. 1ms 384.0 KiB
#2 Wrong Answer Read 10000, expect 8. 2ms 352.0 KiB

信息

递交者
类型
递交
题目
P1100 A、B之间同构数的数量及总和
语言
C++
递交时间
2021-08-08 11:53:10
评测时间
2021-08-08 11:53:10
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB