记录详情

Accepted

/in/foo.cc: In function 'void others(int)':
/in/foo.cc:45:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  {sta[pai[p][i].s[1]]+=zhuan(pai[p][i].s[0]);
                     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:235:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (status[j][h][0]>status[0][h][0]||status[j][h][0]==status[0][h][0]&&status[j][h][1]>status[0][h][1]) rank++;
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:251:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
    else if (status[h][j][0]==8)
            ^
/in/foo.cc: In function 'int zhuan(char)':
/in/foo.cc:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int zhuan1(char)':
/in/foo.cc:32:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'void others(int)':
/in/foo.cc:126:44: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
    status[p][dun][0]=5;status[p][dun][1]=(k-1)*4+i;dun--;
                                          ~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:211:25: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
    cin>>pai[i][j].s;int num;
                         ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 288.0 KiB
#2 Accepted 4ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 3ms 364.0 KiB
#8 Accepted 4ms 376.0 KiB
#9 Accepted 1ms 336.0 KiB
#10 Accepted 2ms 256.0 KiB
#11 Accepted 3ms 256.0 KiB
#12 Accepted 1ms 328.0 KiB
#13 Accepted 1ms 292.0 KiB
#14 Accepted 3ms 280.0 KiB
#15 Accepted 2ms 380.0 KiB
#16 Accepted 1ms 368.0 KiB
#17 Accepted 1ms 384.0 KiB
#18 Accepted 3ms 352.0 KiB
#19 Accepted 1ms 256.0 KiB
#20 Accepted 3ms 352.0 KiB

信息

递交者
类型
递交
题目
开心十三张
语言
C++
递交时间
2017-08-31 08:52:05
评测时间
2017-08-31 08:52:05
评测机
分数
100
总耗时
55ms
峰值内存
384.0 KiB