foo.cc: In member function 'void expr::scan()':
foo.cc:62:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (i=0,j=0,k=0;i<strlen(ts);i++)
| ~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:111:6: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
111 | fgets(ss,sizeof(ss),stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc: In member function 'void expr::scan()':
foo.cc:61:6: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
61 | fgets(ts,sizeof(ts),stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /usr/include/c++/9/cstring:42,
from foo.cc:2:
In function 'char* strcat(char*, const char*)',
inlined from 'void expr::scan()' at foo.cc:78:7:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:128:33: warning: 'char* __builtin_strcat(char*, const char*)' accessing 101 or more bytes at offsets 100 and 0 may overlap 1 byte at offset 100 [-Wrestrict]
128 | return __builtin___strcat_chk (__dest, __src, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'char* strcat(char*, const char*)',
inlined from 'void expr::scan()' at foo.cc:78:7,
inlined from 'int main()' at foo.cc:115:7:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:128:33: warning: 'char* __builtin___strcat_chk(char*, const char*, long unsigned int)' accessing 101 or more bytes at offsets 100 and 0 may overlap 1 byte at offset 100 [-Wrestrict]
128 | return __builtin___strcat_chk (__dest, __src, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务