Record Detail

Runtime Error

/in/lab4.c: In function 'main':
/in/lab4.c:39:14: warning: unused parameter 'argc' [-Wunused-parameter]
 int main(int argc, char* argv[])
              ^~~~
/in/lab4.c: In function 'readCommands':
/in/lab4.c:100:24: warning: unused parameter 'fileName' [-Wunused-parameter]
 int readCommands(char* fileName, int isKeepSpace)
                        ^~~~~~~~
/in/lab4.c: In function 'reverseExp':
/in/lab4.c:214:22: warning: implicit declaration of function 'toascii'; did you mean '__toascii'? [-Wimplicit-function-declaration]
             RVP[m] = toascii(commands[j]);
                      ^~~~~~~
                      __toascii
/in/lab4.c:215:30: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
             if (!commands[j] == 0.0) { // 暂时不支持 输入值为0.0的情况
                              ^~
/in/lab4.c:215:17: note: add parentheses around left hand side expression to silence this warning
             if (!commands[j] == 0.0) { // 暂时不支持 输入值为0.0的情况
                 ^~~~~~~~~~~~
                 (           )
/in/lab4.c:243:29: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
                 if (!RVP[j] == 0.0) {
                             ^~
/in/lab4.c:243:21: note: add parentheses around left hand side expression to silence this warning
                 if (!RVP[j] == 0.0) {
                     ^~~~~~~
                     (      )
/in/lab4.c: In function 'GT_atof':
/in/lab4.c:390:19: warning: unused variable 'j' [-Wunused-variable]
     int nc, d, i, j, neg;
                   ^
/in/lab4.c:390:13: warning: unused variable 'd' [-Wunused-variable]
     int nc, d, i, j, neg;
             ^
/in/lab4.c: In function 'parseFPrintf':
/in/lab4.c:603:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/lab4.c: In function 'replaceIdenty':
/in/lab4.c:671:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/lab4.c: In function 'saveOut_put':
/in/lab4.c:731:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/lab4.c: In function 'reverseExp':
/in/lab4.c:353:26: warning: array subscript is below array bounds [-Warray-bounds]
                     stack[top++] = RVP[j];
                     ~~~~~^~~~~~~
# Status Time Cost Memory Cost
#1 Runtime Error (-6) Detail 10ms 6.336 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-04 20:49:52
Judged At
2021-11-21 14:58:54
Judged By
Score
0
Total Time
10ms
Peak Memory
6.336 MiB