Record Detail

Compile Error

/in/hw7.c: In function 'sortscores':
/in/hw7.c:80:27: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
     memset(str,'\0',sizeof(str));
                           ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework#7
Language
C
Submit At
2023-11-19 21:46:41
Judged At
2023-11-19 21:46:41
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes