Record Detail

Accepted

/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 Accepted Detail 1ms 412.0 KiB
#2 Accepted Detail 1ms 388.0 KiB
#3 Accepted Detail 1ms 512.0 KiB
#4 Accepted Detail 1ms 416.0 KiB
#5 Accepted Detail 1ms 404.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-17 20:59:03
Judged At
2021-11-21 15:06:32
Judged By
Score
100
Total Time
7ms
Peak Memory
512.0 KiB