/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int word1(int, int, int)':
/in/foo.cc:20:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^
/in/foo.cc: In function 'void word3(int, int, int)':
/in/foo.cc:82:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j,t,p=0; 
      ^
/in/foo.cc: In function 'void evidence()':
/in/foo.cc:118:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if(crime[i].others[j]==2)
       ^
/in/foo.cc:124:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if(crime[i].others[j]==1)
       ^
/in/foo.cc:142:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if(crime[i].others[j]==2)
       ^
/in/foo.cc:148:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if(crime[i].others[j]==1)
       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:219:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(word);
     ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:219:14: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(word);
              ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:223:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   temp=gets(word);
        ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:223:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   temp=gets(word);
                 ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/ccA8tVbu.o: In function `main':
foo.cc:(.text.startup+0x87): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 3ms 352.0 KiB
#2 Accepted 1ms 364.0 KiB
#3 Accepted 3ms 368.0 KiB
#4 Accepted 1ms 352.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 3ms 256.0 KiB
#8 Accepted 1ms 348.0 KiB
#9 Accepted 3ms 328.0 KiB
#10 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2017-06-24 12:00:38
评测时间
2017-06-24 12:00:38
评测机
分数
100
总耗时
24ms
峰值内存
384.0 KiB