Record Detail

Accepted

/in/database.c: In function 'update':
/in/database.c:118:40: warning: 'data_num' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (field == 0) pa->difficulty = data_num;
                         ~~~~~~~~~~~~~~~^~~~~~~~~~
/in/database.c:121:34: warning: 'data_str' may be used uninitialized in this function [-Wmaybe-uninitialized]
         else for (j = 0; data_str[j - 1] != '\0' || j == 0; j++) pa->name[j] = data_str[j];
                          ~~~~~~~~^~~~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 260.0 KiB
#2 Accepted Detail 1ms 256.0 KiB
#3 Accepted Detail 1ms 384.0 KiB
#4 Accepted Detail 1ms 256.0 KiB
#5 Accepted Detail 1ms 304.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-12 15:35:00
Judged At
2021-11-21 15:06:11
Judged By
Score
100
Total Time
7ms
Peak Memory
384.0 KiB