Record Detail

Runtime Error

/in/lab4.c: In function 'type':
/in/lab4.c:14:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     else if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch == '_') return -1;
              ~~~~~~~~~~^~~~~~~~~~~~
/in/lab4.c:15:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     else if (ch >= '0' && ch <= '9' || ch == '.') return -2;
              ~~~~~~~~~~^~~~~~~~~~~~
/in/lab4.c: In function 'math':
/in/lab4.c:58:30: warning: statement with no effect [-Wunused-value]
         else if (state == 0) state; //type(**p) == -2
                              ^~~~~
/in/lab4.c: In function 'print':
/in/lab4.c:115:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while (**ds != '"') (*ds)++; char *temp = (*ds)++;
     ^~~~~
/in/lab4.c:115:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
     while (**ds != '"') (*ds)++; char *temp = (*ds)++;
                                  ^~~~
/in/lab4.c:116:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while (*temp != '"') temp++; char *temp2 = temp++;
     ^~~~~
/in/lab4.c:116:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
     while (*temp != '"') temp++; char *temp2 = temp++;
                                  ^~~~
/in/lab4.c:117:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while (*temp2 != ')') temp2++; *temp2 = ' ';
     ^~~~~
/in/lab4.c:117:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
     while (*temp2 != ')') temp2++; *temp2 = ' ';
                                    ^
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 26ms 7.273 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-03 02:10:04
Judged At
2021-11-21 14:58:35
Judged By
Score
0
Total Time
26ms
Peak Memory
7.273 MiB