Record Detail

Accepted

/in/lab4.c: In function 'main':
/in/lab4.c:37:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < strlen(ch) - len2-2; i++) { ch[i] = ch[i + len2+2]; }
                           ^
In file included from /usr/include/stdio.h:862:0,
                 from /in/lab4.c:1:
In function 'fgets',
    inlined from 'main' at /in/lab4.c:10:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
  return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 15ms 6.281 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-08 16:57:35
Judged At
2021-11-21 14:58:35
Judged By
Score
20
Total Time
15ms
Peak Memory
6.281 MiB