/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void work()':
/in/foo.cc:57:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=0;j<e[i].size();j++)
               ~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:182:3: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(c);
   ^~~~
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:182:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets(c);
         ^
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:220:36: warning: narrowing conversion of 'id' from 'llw {aka long long int}' to 'int' inside { } [-Wnarrowing]
     e[id].push_back((izayoi){id,2,0});
                                    ^
/in/foo.cc:224:36: warning: narrowing conversion of 'id' from 'llw {aka long long int}' to 'int' inside { } [-Wnarrowing]
     e[id].push_back((izayoi){id,1,0});
                                    ^
/in/foo.cc:241:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int j=1;j<=m;j++) 
    ^~~
/in/foo.cc:247:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     if(idto==0) continue;
     ^~
/in/foo.cc: In function 'void work()':
/in/foo.cc:145:11: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
   for(int i=i;i<=m;i++) final[i]=1;
           ^
/tmp/ccd4gs8k.o: In function `main':
foo.cc:(.text.startup+0x1e1): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 6ms 304.0 KiB
#2 Accepted 5ms 312.0 KiB
#3 Accepted 4ms 348.0 KiB
#4 Accepted 4ms 304.0 KiB
#5 Accepted 4ms 316.0 KiB
#6 Accepted 4ms 364.0 KiB
#7 Accepted 4ms 344.0 KiB
#8 Accepted 4ms 344.0 KiB
#9 Accepted 4ms 348.0 KiB
#10 Accepted 4ms 356.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2018-10-21 21:35:27
评测时间
2018-10-21 21:35:27
评测机
分数
100
总耗时
45ms
峰值内存
364.0 KiB