selling_rna.cpp: In function 'void upd(std::string&, int&)':
selling_rna.cpp:2:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2 | #define fori(i,a,b) for(int i=a;i<=b;i++)
......
19 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:19:3: note: in expansion of macro 'fori'
19 | fori(i,0,s.size()-1) {
| ^~~~
selling_rna.cpp: In function 'void upd2(std::string&, int&)':
selling_rna.cpp:2:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2 | #define fori(i,a,b) for(int i=a;i<=b;i++)
......
36 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:36:3: note: in expansion of macro 'fori'
36 | fori(i,0,s.size()-1) {
| ^~~~
selling_rna.cpp: In function 'ii get(std::string&)':
selling_rna.cpp:2:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2 | #define fori(i,a,b) for(int i=a;i<=b;i++)
......
46 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:46:3: note: in expansion of macro 'fori'
46 | fori(i,0,s.size()-1) {
| ^~~~
selling_rna.cpp: In function 'int get2(std::string&, int&, int&)':
selling_rna.cpp:2:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2 | #define fori(i,a,b) for(int i=a;i<=b;i++)
......
56 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:56:3: note: in expansion of macro 'fori'
56 | fori(i,0,s.size()-1) {
| ^~~~
selling_rna.cpp: In function 'int32_t main()':
selling_rna.cpp:73:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
73 | freopen("1.inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
selling_rna.cpp:74:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
74 | freopen("1.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
selling_rna.cpp:79:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | freopen(task".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
selling_rna.cpp:80:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | freopen(task".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~