Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:8:6: error: implicit declaration of function 'strrev'; did you mean 'strlen'? [-Werror=implicit-function-declaration]
      strrev(*a);
      ^~~~~~
      strlen
/in/fileReverse.c:9:17: error: multi-character character constant [-Werror=multichar]
         fprintf('&s',*a);
                 ^~~~
/in/fileReverse.c:9:17: error: passing argument 1 of 'fprintf' makes pointer from integer without a cast [-Werror=int-conversion]
In file included from /in/fileReverse.c:1:0:
/usr/include/stdio.h:312:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int'
 extern int fprintf (FILE *__restrict __stream,
            ^~~~~~~
/in/fileReverse.c:9:22: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Werror=int-conversion]
         fprintf('&s',*a);
                      ^
In file included from /in/fileReverse.c:1:0:
/usr/include/stdio.h:312:12: note: expected 'const char * restrict' but argument is of type 'char'
 extern int fprintf (FILE *__restrict __stream,
            ^~~~~~~
/in/fileReverse.c:9:9: error: format not a string literal and no format arguments [-Werror=format-security]
         fprintf('&s',*a);
         ^~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:29:12
Judged At
2022-07-08 16:05:02
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes