/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=strlen(ch)-1;i++)
              ~^~~~~~~~~~~~~~
/in/foo.cc:45:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(cmp[t[s-1]][k[ch[i]]][t[s]]%2==0)cz[++topz]='(';
                          ^
/in/foo.cc:46:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=0;j<strlen(ch1[s-1]);j++)
                ~^~~~~~~~~~~~~~~~~
/in/foo.cc:50:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(cmp[t[s-1]][k[ch[i]]][t[s]]%2==0)cz[++topz]=')';
                          ^
/in/foo.cc:52:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(cmp[t[s-1]][k[ch[i]]][t[s]]%3==0)cz[++topz]='(';
                          ^
/in/foo.cc:53:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=0;j<strlen(ch1[s]);j++)
                ~^~~~~~~~~~~~~~~
/in/foo.cc:57:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(cmp[t[s-1]][k[ch[i]]][t[s]]%3==0)cz[++topz]=')';
                          ^
/in/foo.cc:66:16: warning: array subscript has type 'char' [-Wchar-subscripts]
    t[s]=k[ch[i]];
                ^
# 状态 耗时 内存占用
#1 Accepted 6ms 2.25 MiB
#2 Accepted 6ms 2.719 MiB
#3 Accepted 3ms 3.074 MiB
#4 Accepted 4ms 2.848 MiB
#5 Accepted 2ms 2.75 MiB

信息

递交者
类型
递交
题目
P1293 后缀转中缀
语言
C++
递交时间
2017-07-17 18:11:34
评测时间
2017-07-17 18:11:34
评测机
分数
100
总耗时
23ms
峰值内存
3.074 MiB