/in/lab5.c: In function 'remove_spaces':
/in/lab5.c:20:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<=strlen(str);i++)
^~
/in/lab5.c: At top level:
/in/lab5.c:36:1: warning: "/*" within comment [-Wcomment]
/*函数:找到左侧变量*/
/in/lab5.c:46:1: warning: "/*" within comment [-Wcomment]
/*函数:找到右侧算式*/
/in/lab5.c: In function 'main':
/in/lab5.c:68:5: warning: "/*" within comment [-Wcomment]
/*find_left_variable(formerstr,variable_left);/*找到左侧变量*/
/in/lab5.c:68:51: warning: "/*" within comment [-Wcomment]
/in/lab5.c:70:36: warning: "/*" within comment [-Wcomment]
find_equation(formerstr,infix);/*找到算式*/
/in/lab5.c:73:5: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
gets(infix);
^~~~
fgets
/in/lab5.c:81:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(infix); i++) {
^
/in/lab5.c: In function 'compare':
/in/lab5.c:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/ccq9IXeM.o: In function `main':
lab5.c:(.text.startup+0x10d): warning: the `gets' function is dangerous and should not be used.