/in/foo.cc: In function 'int ready()':
/in/foo.cc:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(s[i-1]=='('||i==1)
^~
/in/foo.cc:17:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
t[++j]=s[i];
^
/in/foo.cc: In function 'void init()':
/in/foo.cc:81:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s+1);
^~~~
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:81:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(s+1);
^
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:85:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while(gets(s+1)){
^~~~
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:85:16: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
while(gets(s+1)){
^
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: In function 'int first(char)':
/in/foo.cc:44:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/ccnA37yc.o: In function `init()':
foo.cc:(.text+0xaf8): warning: the `gets' function is dangerous and should not be used.