记录详情

Runtime Error

/in/foo.c:7:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:14:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
     gets(str2);
     ^~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.c:25:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(x=0;x<i;x++)
         ^~~
/in/foo.c:32:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
             i++;
             ^
/in/foo.c:38:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(;t<i;t++)
     ^~~
/in/foo.c:40:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  return 0;
  ^~~~~~
/in/foo.c:40:9: warning: 'return' with a value, in function returning void
  return 0;
         ^
/in/foo.c:7:6: note: declared here
 void main()
      ^~~~
/tmp/ccS0fb1R.o: In function `main':
foo.c:(.text.startup+0x1f): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Runtime Error 1ms 188.0 KiB
#2 Runtime Error 0ms 196.0 KiB
#3 Runtime Error 1ms 188.0 KiB
#4 Runtime Error 1ms 196.0 KiB
#5 Runtime Error 1ms 188.0 KiB

信息

递交者
类型
递交
题目
2-6 单词频度表
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 13:49:47
评测时间
2018-12-12 13:50:16
评测机
分数
0
总耗时
6ms
峰值内存
196.0 KiB