/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:32: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
             scanf("%s",a[i][21]);
                                ^
/in/foo.cc:16:14: warning: self-comparison always evaluates to true [-Wtautological-compare]
     for(i=1;i<=i;i++){
             ~^~~
/in/foo.cc:20:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if(sum>=11||sun>=11&&sum-sun>2||sun-sum>2){
                   ~~~~~~~^~~~~~~~~~~
/in/foo.cc:12:31: warning: array subscript is above array bounds [-Warray-bounds]
             scanf("%s",a[i][21]);
                        ~~~~~~~^
/in/foo.cc:25:7: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(i==c&&j==b) break;
      ~^~~
/in/foo.cc:25:13: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(i==c&&j==b) break;
            ~^~~
# 状态 耗时 内存占用
#1 Runtime Error 8ms 200.0 KiB
#2 Runtime Error 7ms 196.0 KiB
#3 Runtime Error 8ms 200.0 KiB
#4 Runtime Error 8ms 200.0 KiB
#5 Runtime Error 8ms 204.0 KiB
#6 Runtime Error 8ms 196.0 KiB
#7 Runtime Error 8ms 204.0 KiB
#8 Runtime Error 8ms 196.0 KiB
#9 Runtime Error 7ms 204.0 KiB
#10 Runtime Error 7ms 196.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2019-04-28 09:21:16
评测时间
2019-04-28 09:21:16
评测机
分数
0
总耗时
81ms
峰值内存
204.0 KiB