Record Detail

Runtime Error

/in/database.c:9:0: warning: "MAX_LINE" redefined
 #define MAX_LINE 200
 
/in/database.c:5:0: note: this is the location of the previous definition
 #define MAX_LINE 120
 
/in/database.c: In function 'LIST':
/in/database.c:77:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Table *p=&database->tables;
              ^
/in/database.c: In function 'PRINTF':
/in/database.c:97:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Assignment *p1=&table->assignments;
                    ^
/in/database.c: In function 'SAVE':
/in/database.c:113:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Assignment *p=&table->assignments;
                   ^
/in/database.c: In function 'PRINTDEADLINE':
/in/database.c:131:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Assignment *p=&table->assignments;
                   ^
/in/database.c: In function 'PRINTDIFFICULTY':
/in/database.c:149:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Assignment *p=&table->assignments;
                   ^
/in/database.c: In function 'PRINT':
/in/database.c:169:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     Assignment *p=&table->assignments;
                   ^
/in/database.c: In function 'DELETE':
/in/database.c:251:54: warning: comparison between pointer and integer
                     for (int j = 1; find->difficulty != NULL; j++)
                                                      ^~
/in/database.c:266:30: warning: statement with no effect [-Wunused-value]
             dbpinside->tables+1;
             ~~~~~~~~~~~~~~~~~^~
/in/database.c:240:17: warning: unused variable 'B' [-Wunused-variable]
 {   int p=0;int B=1;int i=0;
                 ^
/in/database.c: In function 'main':
/in/database.c:391:103: warning: unused variable 'tool4' [-Wunused-variable]
             char tabname[20]={'\0'};char tool3[2];char course[20]={'\0'}; char assign[20]={'\0'};char tool4[2];char *ptr;
                                                                                                       ^~~~~
/in/database.c:390:18: warning: unused variable 'update' [-Wunused-variable]
             char update[6];char tool1[2];char changething[15]={'\0'};char change[15]={'\0'}; char tool2[2];
                  ^~~~~~
/in/database.c:287:14: warning: unused variable 'name_file' [-Wunused-variable]
         char name_file[6];
              ^~~~~~~~~
/in/database.c:275:46: warning: variable 'dbp' set but not used [-Wunused-but-set-variable]
     Database db = {.tableNum = 0}; Database *dbp;dbp=&db;
                                              ^~~
/in/database.c: In function 'PRINTF':
/in/database.c:102:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/database.c: In function 'PRINTF_DEAD_OR_DIFF':
/in/database.c:109:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Status Time Cost Memory Cost
#1 Runtime Error (-11) Detail 1ms 336.0 KiB
#2 Runtime Error (-11) Detail 1ms 372.0 KiB
#3 Runtime Error (-11) Detail 1ms 448.0 KiB
#4 Runtime Error (-11) Detail 1ms 472.0 KiB
#5 Runtime Error (-11) Detail 1ms 364.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-18 08:57:55
Judged At
2021-11-21 15:06:40
Judged By
Score
0
Total Time
6ms
Peak Memory
472.0 KiB