Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:8:23: error: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[100001]' [-Werror=format=]
     while (fscanf(f,"%s",&x)!=EOF) {
                      ~^  ~~
/in/fileReverse.c:13:17: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
             c = getchar();
                 ^~~~~~~
cc1: all warnings being treated as errors

Information

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