/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:29: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(isalpha(ch)) a[ch]++;q.push_back(ch);
                             ^
/in/foo.cc:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(isalpha(ch)) a[ch]++;q.push_back(ch);
         ^~
/in/foo.cc:15:33: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(isalpha(ch)) a[ch]++;q.push_back(ch);
                                 ^
/in/foo.cc:21:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<q.size();i++) if(isalpha(q[i])) out(q[i]);else putchar(q[i]);
                 ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 532.0 KiB
#2 Accepted 2ms 828.0 KiB
#3 Accepted 2ms 328.0 KiB
#4 Accepted 2ms 332.0 KiB
#5 Accepted 2ms 268.0 KiB
#6 Accepted 2ms 328.0 KiB
#7 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1244 Matrix67的情书
语言
C++
递交时间
2019-04-19 10:59:07
评测时间
2019-04-19 10:59:07
评测机
分数
70
总耗时
15ms
峰值内存
828.0 KiB