/ Vijos /

记录详情

Accepted

foo.cpp: In function 'int check1(int)':
foo.cpp:20:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4))return 2;
                                   ^
foo.cpp:21:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(s[k][1][0]!='I'||s[k][1][1]!='\0'||!cmp(s[k][2],"am"))return 2;
                                                            ^
foo.cpp:22:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(num[k]==4&&!cmp(s[k][3],"not"))return 2;
                                     ^
foo.cpp: In function 'int check2(int)':
foo.cpp:28:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
                                   ^
foo.cpp:28:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
                                                                              ^
foo.cpp:28:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
                                       ~~~~~~~~~^~~~~~~~~~~
foo.cpp:29:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(num[k]==4&&!cmp(s[k][3],"not"))return 2;
                                     ^
foo.cpp: In function 'int check3(int)':
foo.cpp:35:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(num[k]!=3||!cmp(s[k][1],"Today")||!cmp(s[k][2],"is"))return 2;
                                       ^
foo.cpp:35:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     if(num[k]!=3||!cmp(s[k][1],"Today")||!cmp(s[k][2],"is"))return 2;
                                                           ^
# 状态 耗时 内存占用
#1 Accepted 0ms 1.453 MiB
#2 Accepted 0ms 1.445 MiB
#3 Accepted 0ms 1.449 MiB
#4 Accepted 0ms 1.457 MiB
#5 Accepted 0ms 1.445 MiB
#6 Accepted 15ms 1.453 MiB
#7 Accepted 0ms 1.445 MiB
#8 Accepted 15ms 1.445 MiB
#9 Accepted 0ms 1.457 MiB
#10 Accepted 0ms 1.449 MiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2017-02-25 17:15:11
评测时间
2017-02-25 17:15:12
评测机
分数
100
总耗时
30ms
峰值内存
1.457 MiB