Record Detail

Wrong Answer

/in/lab5.c: In function 'evaluatePostfix':
/in/lab5.c:165:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < strlen(postfix); i++) {
                       ^
/in/lab5.c:171:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             while (i < strlen(postfix) && (isdigit2(postfix[i]) || postfix[i] == '.' || postfix[i] == '-')) {
                      ^
/in/lab5.c: In function 'replaceVariables':
/in/lab5.c:276:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if (i == len - 1 || !(expr[i + 1] >= 'A' && expr[i + 1] <= 'Z' || expr[i + 1] >= 'a' && expr[i + 1] <= 'z' || expr[i + 1] >= '0' && expr[i + 1] <= '9')) {
                                   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/lab5.c:276:142: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if (i == len - 1 || !(expr[i + 1] >= 'A' && expr[i + 1] <= 'Z' || expr[i + 1] >= 'a' && expr[i + 1] <= 'z' || expr[i + 1] >= '0' && expr[i + 1] <= '9')) {
                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 17ms 7.727 MiB

Information

Submit By
Type
Submission
Homework
Lab 5: CASIO-fx991
Language
C
Submit At
2024-11-15 17:21:58
Judged At
2024-11-15 17:21:58
Judged By
Score
0
Total Time
17ms
Peak Memory
7.727 MiB