Record Detail

Accepted

/in/database.c: In function 'UPDATEchar':
/in/database.c:258:25: warning: variable 'q' set but not used [-Wunused-but-set-variable]
     int i = 0, t, n, m, q;
                         ^
/in/database.c: In function 'DELETE':
/in/database.c:350:12: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
     int n, arr[MAX_ASSIGNMENT] = {0}, i, t;
            ^~~
/in/database.c:348:56: warning: unused parameter 'tablename' [-Wunused-parameter]
 void DELETE(int tablenumber, Database *database, char *tablename, char *course, char *name)
                                                        ^~~~~~~~~
/in/database.c: In function 'SELECT':
/in/database.c:413:30: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
     int num1, num, smallest, arr[MAX_ASSIGNMENT], t, i, j, helper[MAX_ASSIGNMENT];
                              ^~~
/in/database.c:411:56: warning: unused parameter 'tablename' [-Wunused-parameter]
 void SELECT(int tablenumber, Database *database, char *tablename, char *course, char *name, char *field, int limit)
                                                        ^~~~~~~~~
/in/database.c: In function 'main':
/in/database.c:595:11: warning: unused variable 'fp' [-Wunused-variable]
     FILE *fp, *fp1;
           ^~
/in/database.c:594:200: warning: unused variable 'num1' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                                                                        ^~~~
/in/database.c:594:191: warning: unused variable 'num' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                                                               ^~~
/in/database.c:594:181: warning: unused variable 'flag' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                                                     ^~~~
/in/database.c:594:178: warning: unused variable 'n' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                                                  ^
/in/database.c:594:175: warning: unused variable 'm' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                                               ^
/in/database.c:594:148: warning: unused variable 'arr' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                    ^~~
/in/database.c:594:145: warning: unused variable 't' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                                                                 ^
/in/database.c:594:107: warning: unused variable 'len' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                           ^~~
/in/database.c:594:96: warning: unused variable 'q' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                                                ^
/in/database.c:594:72: warning: unused variable 'helper' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                        ^~~~~~
/in/database.c:594:65: warning: unused variable 'temp4' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                                                 ^~~~~
/in/database.c:594:47: warning: unused variable 'temp3' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                               ^~~~~
/in/database.c:594:37: warning: unused variable 'temp' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                                     ^~~~
/in/database.c:594:23: warning: unused variable 'smallest' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                       ^~~~~~~~
/in/database.c:594:16: warning: unused variable 'j' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
                ^
/in/database.c:594:9: warning: unused variable 'i' [-Wunused-variable]
     int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
         ^
/in/database.c:592:11: warning: unused variable 'tables' [-Wunused-variable]
     Table tables[MAX_TABLE] = {'\0'};
           ^~~~~~
/in/database.c:591:16: warning: unused variable 'assignments' [-Wunused-variable]
     Assignment assignments[MAX_ASSIGNMENT] = {'\0'};
                ^~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 256.0 KiB
#2 Accepted Detail 1ms 276.0 KiB
#3 Accepted Detail 1ms 384.0 KiB
#4 Accepted Detail 1ms 376.0 KiB
#5 Accepted Detail 1ms 264.0 KiB

Information

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