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++)
......
38 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:38:3: note: in expansion of macro 'fori'
38 | 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++)
......
49 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:49:3: note: in expansion of macro 'fori'
49 | 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++)
......
59 | fori(i,0,s.size()-1) {
| ~~~~~~~~~~~~~~
selling_rna.cpp:59:3: note: in expansion of macro 'fori'
59 | fori(i,0,s.size()-1) {
| ^~~~
selling_rna.cpp: In function 'int32_t main()':
selling_rna.cpp:78:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | freopen("1.inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
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("1.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
selling_rna.cpp:84:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | freopen(task".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
selling_rna.cpp:85:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | freopen(task".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~