记录详情

Runtime Error

/in/foo.c:3:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if((fp=fopen("my5.out","w"))==NULL);
   ^~
/in/foo.c:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   {
   ^
/in/foo.c:29:14: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
      fprintf("%d ",str[i]);
              ^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:358:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'char *'
 extern int fprintf (FILE *__restrict __stream,
            ^~~~~~~
/in/foo.c:29:20: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
      fprintf("%d ",str[i]);
                    ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:358:12: note: expected 'const char * restrict' but argument is of type 'char'
 extern int fprintf (FILE *__restrict __stream,
            ^~~~~~~
/in/foo.c:37:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(str[i]!='!');
   ^~~~~
/in/foo.c:38:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   {
   ^
/in/foo.c:6:7: warning: unused variable 'n' [-Wunused-variable]
   int n=10,count[10],i,j;
       ^
/in/foo.c:37:12: warning: array subscript is above array bounds [-Warray-bounds]
   while(str[i]!='!');
         ~~~^~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 208.0 KiB

信息

递交者
类型
自测
题目
6-9 哪个字母用得最多
语言
C
递交时间
2018-12-31 10:47:16
评测时间
2018-12-31 10:47:17
评测机
分数
0
总耗时
1ms
峰值内存
208.0 KiB