/in/foo.cc: In function 'bool judge(char*)':
/in/foo.cc:51:27: warning: 'sizeof' on array function parameter 's' will return size of 'char*' [-Wsizeof-array-argument]
for(int i=0;i<sizeof(s);i++)
^
/in/foo.cc:48:23: note: declared here
bool judge(char s[2506])
^
/in/foo.cc:51:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<sizeof(s);i++)
~^~~~~~~~
/in/foo.cc:50:15: warning: unused variable 'i' [-Wunused-variable]
int top=0,i=0;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:66:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:66:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:75:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i<strlen(s))
~^~~~~~~~~~
/in/foo.cc:92:19: warning: operation on 'p' may be undefined [-Wsequence-point]
shuzi[--p]=shuzi[p + 1];
^~~
/in/foo.cc:101:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
}while (i<strlen(s)&&s[i-1]==')');
~^~~~~~~~~~
/tmp/ccpo1l7Y.o: In function `main':
foo.cc:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.