Record Detail

Runtime Error

/in/lab4.c: In function 'main':
/in/lab4.c:153:1: warning: "/*" within comment [-Wcomment]
 /*printf("arr:");
  
/in/lab4.c: In function 'replace':
/in/lab4.c:167:13: warning: statement with no effect [-Wunused-value]
     varvalue[varlo];
     ~~~~~~~~^~~~~~~
/in/lab4.c:166:19: warning: unused parameter 'str' [-Wunused-parameter]
 void replace(char str[], int loc, int varlo, int varlengthh, double varvalue[]) {
                   ^~~
/in/lab4.c:166:30: warning: unused parameter 'loc' [-Wunused-parameter]
 void replace(char str[], int loc, int varlo, int varlengthh, double varvalue[]) {
                              ^~~
/in/lab4.c:166:50: warning: unused parameter 'varlengthh' [-Wunused-parameter]
 void replace(char str[], int loc, int varlo, int varlengthh, double varvalue[]) {
                                                  ^~~~~~~~~~
/in/lab4.c: In function 'convert2':
/in/lab4.c:326:25: warning: implicit declaration of function 'atof'; did you mean 'atanf'? [-Wimplicit-function-declaration]
             arr[len2] = atof(operand);
                         ^~~~
                         atanf
/in/lab4.c: In function 'precedence':
/in/lab4.c:261:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     else if (x > y) return 1;
             ^
/in/lab4.c:261:13: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/lab4.c: In function 'main':
/in/lab4.c:48:13: warning: 'newvarloc' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int newvarloc; //the location of the var to assign in the var array
             ^~~~~~~~~
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 27ms 7.297 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-07 21:18:15
Judged At
2021-11-21 14:58:57
Judged By
Score
0
Total Time
27ms
Peak Memory
7.297 MiB