Record Detail

Runtime Error

/in/lab4.c: In function 'RVPcalculation':
/in/lab4.c:130:33: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
         memset(temp1,'\0',sizeof(temp1));
                                 ^
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:15:12:
/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 Runtime Error (1) Detail 27ms 7.367 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-10-30 20:31:02
Judged At
2021-11-21 14:58:56
Judged By
Score
0
Total Time
27ms
Peak Memory
7.367 MiB