Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:14:22: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
     while(EOF != (ch=fgetc(fpRead)))
                      ^~~~~
/in/fileReverse.c:6:10: error: unused variable 'line' [-Werror=unused-variable]
     char line[100];
          ^~~~
/in/fileReverse.c:4:14: error: unused parameter 'argc' [-Werror=unused-parameter]
 int main(int argc, char *argv[]) {
              ^~~~
cc1: all warnings being treated as errors

Information

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