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++) {//这里不知道能不能用strcpy,我没试过
                                   ^
/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:689: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:762:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int q=n+1; q<strlen(query);q++)
                              ^
/in/database.c:748:9: warning: unused variable 'x' [-Wunused-variable]
     int x=0;
         ^
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 28ms 7.488 MiB
#2 Runtime Error (1) Detail 28ms 7.438 MiB
#3 Runtime Error (1) Detail 28ms 7.48 MiB
#4 Runtime Error (1) Detail 28ms 7.465 MiB
#5 Runtime Error (1) Detail 28ms 7.438 MiB
#6 Runtime Error (1) Detail 28ms 7.473 MiB
#7 Runtime Error (1) Detail 28ms 7.5 MiB
#8 Runtime Error (1) Detail 28ms 7.488 MiB
#9 Runtime Error (1) Detail 28ms 7.512 MiB
#10 Runtime Error (1) Detail 28ms 7.453 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-17 20:55:15
Judged At
2021-11-21 15:06:32
Judged By
Score
0
Total Time
284ms
Peak Memory
7.512 MiB