Record Detail

Wrong Answer

/in/database.c: In function 'UPDATE':
/in/database.c:256:58: warning: passing argument 6 of 'HELP_update' makes pointer from integer without a cast [-Wint-conversion]
                     HELP_update(db, i, ii, value, field, num_updated);
                                                          ^~~~~~~~~~~
/in/database.c:60:6: note: expected 'int *' but argument is of type 'int'
 void HELP_update(Database *db, int i, int ii, char* value, char* field, int *num_updated)//the data updating part of assignments
      ^~~~~~~~~~~
/in/database.c:263:58: warning: passing argument 6 of 'HELP_update' makes pointer from integer without a cast [-Wint-conversion]
                     HELP_update(db, i, ii, value, field, num_updated);
                                                          ^~~~~~~~~~~
/in/database.c:60:6: note: expected 'int *' but argument is of type 'int'
 void HELP_update(Database *db, int i, int ii, char* value, char* field, int *num_updated)//the data updating part of assignments
      ^~~~~~~~~~~
/in/database.c:273:58: warning: passing argument 6 of 'HELP_update' makes pointer from integer without a cast [-Wint-conversion]
                     HELP_update(db, i, ii, value, field, num_updated);
                                                          ^~~~~~~~~~~
/in/database.c:60:6: note: expected 'int *' but argument is of type 'int'
 void HELP_update(Database *db, int i, int ii, char* value, char* field, int *num_updated)//the data updating part of assignments
      ^~~~~~~~~~~
/in/database.c:278:54: warning: passing argument 6 of 'HELP_update' makes pointer from integer without a cast [-Wint-conversion]
                 HELP_update(db, i, ii, value, field, num_updated);
                                                      ^~~~~~~~~~~
/in/database.c:60:6: note: expected 'int *' but argument is of type 'int'
 void HELP_update(Database *db, int i, int ii, char* value, char* field, int *num_updated)//the data updating part of assignments
      ^~~~~~~~~~~
/in/database.c:230:19: warning: unused variable 'difficulty' [-Wunused-variable]
     int deadline, difficulty, num_updated = 0;
                   ^~~~~~~~~~
/in/database.c:230:9: warning: unused variable 'deadline' [-Wunused-variable]
     int deadline, difficulty, num_updated = 0;
         ^~~~~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 1ms 276.0 KiB
#2 Wrong Answer Detail 1ms 276.0 KiB
#3 Wrong Answer Detail 1ms 364.0 KiB
#4 Wrong Answer Detail 1ms 340.0 KiB
#5 Wrong Answer Detail 1ms 296.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-17 16:38:09
Judged At
2021-11-21 15:06:11
Judged By
Score
0
Total Time
6ms
Peak Memory
364.0 KiB