Record Detail

Runtime Error

/in/database.c: In function 'LOAD':
/in/database.c:44:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int j = 0; j < strlen(token); j++) {
                                   ^
/in/database.c:48:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int j = 0; j < strlen(token); j++) {
                                   ^
/in/database.c: In function 'SAVE':
/in/database.c:126:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int q=n+1; q<strlen(a);q++)
                      ^
/in/database.c: In function 'INSERT':
/in/database.c:193:5: warning: statement with no effect [-Wunused-value]
     for (n; n<strlen(b);n++)
     ^~~
/in/database.c:193:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (n; n<strlen(b);n++)
              ^
/in/database.c: In function 'UPDATE':
/in/database.c:214:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=2;i<strlen(a);i++)
                   ^
/in/database.c: In function 'DELETE':
/in/database.c:466:21: warning: statement with no effect [-Wunused-value]
                     for (p; p < db->tables[z].assignNum; p++) {
                     ^~~
/in/database.c:480:21: warning: statement with no effect [-Wunused-value]
                     for (p; p < db->tables[z].assignNum; p++)
                     ^~~
/in/database.c:501:25: warning: statement with no effect [-Wunused-value]
                         for (b; b < db->tables[z].assignNum; b++)
                         ^~~
/in/database.c: In function 'SELECT':
/in/database.c:541:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (t = n; t < strlen(a); t++) {
                   ^
/in/database.c:569:25: warning: statement with no effect [-Wunused-value]
                         for (m; m < db->tables[j].assignNum; m++) {
                         ^~~
/in/database.c:584:25: warning: statement with no effect [-Wunused-value]
                         for (m; m < db->tables[j].assignNum; m++) {
                         ^~~
/in/database.c:627:25: warning: statement with no effect [-Wunused-value]
                         for (m; m < db->tables[j].assignNum; m++) {
                         ^~~
/in/database.c:642:25: warning: statement with no effect [-Wunused-value]
                         for (m; m < db->tables[j].assignNum; m++) {
                         ^~~
/in/database.c: In function 'AUTO':
/in/database.c:690:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int q=n+1; q<strlen(token);q++)
                              ^
/in/database.c:670:10: warning: unused variable 'save' [-Wunused-variable]
     char save[360]={0};
          ^~~~
/in/database.c: In function 'main':
/in/database.c:764:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int q=n+1; q<strlen(query);q++)
                              ^
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 28ms 7.543 MiB
#2 Runtime Error (1) Detail 28ms 7.418 MiB
#3 Runtime Error (1) Detail 27ms 7.48 MiB
#4 Runtime Error (1) Detail 28ms 7.48 MiB
#5 Runtime Error (1) Detail 28ms 7.477 MiB
#6 Runtime Error (1) Detail 28ms 7.418 MiB
#7 Runtime Error (1) Detail 28ms 7.434 MiB
#8 Runtime Error (1) Detail 28ms 7.434 MiB
#9 Runtime Error (1) Detail 28ms 7.434 MiB
#10 Runtime Error (1) Detail 28ms 7.477 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-14 12:01:42
Judged At
2021-11-21 15:06:29
Judged By
Score
0
Total Time
283ms
Peak Memory
7.543 MiB