/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'long long int get(long long int)':
/in/foo.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:43:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  For(i,0,n) gets(s),get(i);
             ^~~~
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:43:19: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  For(i,0,n) gets(s),get(i);
                   ^
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/cchX4AGp.o: In function `main':
foo.cc:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Runtime Error 2ms 736.0 KiB
#2 Runtime Error 3ms 640.0 KiB
#3 Runtime Error 9ms 768.0 KiB
#4 Runtime Error 10ms 728.0 KiB
#5 Runtime Error 12ms 832.0 KiB
#6 Runtime Error 15ms 808.0 KiB
#7 Runtime Error 10ms 848.0 KiB
#8 Runtime Error 14ms 772.0 KiB
#9 Runtime Error 16ms 856.0 KiB
#10 Runtime Error 8ms 728.0 KiB

信息

递交者
类型
递交
题目
P1915 解方程 加强版
语言
C++
递交时间
2017-07-06 12:31:19
评测时间
2017-07-06 12:31:19
评测机
分数
0
总耗时
104ms
峰值内存
856.0 KiB