Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:8:26: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     FILE *fpRead = fopen((const char)argv[1], "r");
                          ^
/in/fileReverse.c:8:26: error: passing argument 1 of 'fopen' makes pointer from integer without a cast [-Werror=int-conversion]
In file included from /in/fileReverse.c:1:0:
/usr/include/stdio.h:232:14: note: expected 'const char * restrict' but argument is of type 'char'
 extern FILE *fopen (const char *__restrict __filename,
              ^~~~~
cc1: all warnings being treated as errors

Information

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