Record Detail

Compile Error

In file included from /usr/include/stdio.h:862:0,
                 from /in/ex5.c:1:
In function 'fgets',
    inlined from 'main' at /in/ex5.c:178:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: error: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [-Werror]
  return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fgets',
    inlined from 'main' at /in/ex5.c:209:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: error: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [-Werror]
  return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 5
Language
C
Submit At
2020-07-19 12:26:22
Judged At
2020-07-19 12:26:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes