/in/lab4.c: In function 'main':
/in/lab4.c:72:101: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if ((file[i] >= 40) && (file[i] <= 47) && (file[i]!=45)&&(file[i] != 41) && (file[i] != 40) && (file[i] != 46) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/lab4.c:214:9: warning: unused variable 'p' [-Wunused-variable]
int p = 0;
^
/in/lab4.c:69:29: warning: unused variable 'top3' [-Wunused-variable]
int top1 = 0, top2 = 0, top3 = 0;//"top" indicates the top+1 of the stack
^~~~
/in/lab4.c:68:12: warning: unused variable 'ans' [-Wunused-variable]
double ans[120] = {0}; //存结果
^~~
/in/lab4.c:305:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if ((file[i] >= 40) && (file[i] <= 47) && (file[i] != 41) && (file[i] != 40) && (file[i] != 46) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/lab4.c:441:9: warning: unused variable 'p' [-Wunused-variable]
int p = 0;
^
/in/lab4.c:299:12: warning: unused variable 'ans' [-Wunused-variable]
double ans[120] = {0}; //存结果
^~~
/in/lab4.c:15:9: warning: variable 'z' set but not used [-Wunused-but-set-variable]
int z;
^