记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
     scanf("%d",&n);
                  ^
/in/foo.cc:13:37: warning: array subscript has type 'char' [-Wchar-subscripts]
     for(i=1;i<=n;++i) scanf("%s",a[i]);
                                     ^
/in/foo.cc:18:37: warning: array subscript has type 'char' [-Wchar-subscripts]
                 for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
                                     ^
/in/foo.cc:18:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
                         ~^~~~~~~~~~~~~
/in/foo.cc:18:53: warning: array subscript has type 'char' [-Wchar-subscripts]
                 for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
                                                     ^
/in/foo.cc:18:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
                                         ~^~~~~~~~~~~~~
/in/foo.cc:19:27: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(a[i][k]==a[j][k]) ret++;
                           ^
/in/foo.cc:19:30: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(a[i][k]==a[j][k]) ret++;
                              ^
/in/foo.cc:19:36: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(a[i][k]==a[j][k]) ret++;
                                    ^
/in/foo.cc:19:39: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(a[i][k]==a[j][k]) ret++;
                                       ^
/in/foo.cc:21:30: warning: array subscript has type 'char' [-Wchar-subscripts]
                         ans[i]=max(ret,ans[i]);
                              ^
/in/foo.cc:21:45: warning: array subscript has type 'char' [-Wchar-subscripts]
                         ans[i]=max(ret,ans[i]);
                                             ^
/in/foo.cc:28:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
                         ^
/in/foo.cc:28:47: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
                                               ^
/in/foo.cc:28:50: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
                                                  ^
# 状态 耗时 内存占用
#1 Accepted 4ms 364.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 4ms 340.0 KiB
#4 Accepted 2ms 356.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 2ms 372.0 KiB
#7 Accepted 3ms 368.0 KiB
#8 Accepted 3ms 360.0 KiB
#9 Accepted 3ms 384.0 KiB
#10 Accepted 7ms 364.0 KiB

信息

递交者
类型
递交
题目
题2 单词化简(abbreviate)
题目数据
下载
语言
C++
递交时间
2018-05-27 17:34:01
评测时间
2018-05-27 17:34:01
评测机
分数
100
总耗时
37ms
峰值内存
384.0 KiB