Record Detail

Compile Error

/in/ex1.c: In function 'main':
/in/ex1.c:9:13: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
         c = getchar();
             ^~~~~~~
/in/ex1.c:17:17: error: 'x' undeclared (first use in this function)
     printf("%d",x);
                 ^
/in/ex1.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
/in/ex1.c:5:10: error: variable 'files' set but not used [-Werror=unused-but-set-variable]
     char files[10001];
          ^~~~~
cc1: all warnings being treated as errors

Information

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