/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:31: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[101]' [-Wformat=]
     scanf("%s%s%s",&l1,&l2,&l3);
                    ~~~        ^
/in/foo.cc:7:31: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[101]' [-Wformat=]
/in/foo.cc:7:31: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[101]' [-Wformat=]
/in/foo.cc:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(l1);i++){
                 ~^~~~~~~~~~~
/in/foo.cc:9:27: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(l2[i]!=mi[l1[i]]&&mi[l1[i]]!=0){
                           ^
/in/foo.cc:9:38: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(l2[i]!=mi[l1[i]]&&mi[l1[i]]!=0){
                                      ^
/in/foo.cc:13:17: warning: array subscript has type 'char' [-Wchar-subscripts]
         mi[l1[i]]=l2[i];
                 ^
/in/foo.cc:20:16: warning: array subscript has type 'char' [-Wchar-subscripts]
         a[mi[i]]=0;
                ^
/in/foo.cc:28:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(l3);i++){    
                 ~^~~~~~~~~~~
/in/foo.cc:29:23: warning: array subscript has type 'char' [-Wchar-subscripts]
         l4[i]=mi[l3[i]];
                       ^
# 状态 耗时 内存占用
#1 Accepted 2ms 320.0 KiB
#2 Accepted 2ms 316.0 KiB
#3 Accepted 1ms 324.0 KiB
#4 Accepted 1ms 312.0 KiB
#5 Accepted 1ms 316.0 KiB
#6 Accepted 1ms 312.0 KiB
#7 Accepted 1ms 316.0 KiB
#8 Accepted 1ms 312.0 KiB
#9 Accepted 1ms 320.0 KiB
#10 Accepted 2ms 312.0 KiB

信息

递交者
类型
递交
题目
P1752 潜伏者
语言
C++
递交时间
2017-09-19 16:59:40
评测时间
2017-09-19 16:59:40
评测机
分数
100
总耗时
19ms
峰值内存
324.0 KiB