/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:36: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int i=0;i<len;++i) ++num[s[i]];
                                    ^
/in/foo.cc:25:38: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(char i='A';i<='Z';++i) if(num[i]) q.push(num[i]),tot++,cout<<num[i]<<" ";cout<<endl;
                                      ^
/in/foo.cc:25:53: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(char i='A';i<='Z';++i) if(num[i]) q.push(num[i]),tot++,cout<<num[i]<<" ";cout<<endl;
                                                     ^
/in/foo.cc:25:73: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(char i='A';i<='Z';++i) if(num[i]) q.push(num[i]),tot++,cout<<num[i]<<" ";cout<<endl;
                                                                         ^
/in/foo.cc:25:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(char i='A';i<='Z';++i) if(num[i]) q.push(num[i]),tot++,cout<<num[i]<<" ";cout<<endl;
   ^~~
/in/foo.cc:25:80: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(char i='A';i<='Z';++i) if(num[i]) q.push(num[i]),tot++,cout<<num[i]<<" ";cout<<endl;
                                                                                ^~~~
/in/foo.cc:27:13: warning: unused variable 'f3' [-Wunused-variable]
   int f1,f2,f3;
             ^~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 332.0 KiB

信息

递交者
类型
递交
题目
P1079 中青局
语言
C++
递交时间
2017-09-08 07:35:44
评测时间
2017-09-08 07:35:44
评测机
分数
0
总耗时
3ms
峰值内存
332.0 KiB