Main.cpp: In function 'void solve()':
Main.cpp:20:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | while(ptr != str.size()){
| ~~~~^~~~~~~~~~~~~
Main.cpp:24:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | while(ptr != str.size() && str[ptr] != '+' && str[ptr] != '-'){
| ~~~~^~~~~~~~~~~~~
Main.cpp:25:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | if(ptr + 1 != str.size() && isdigit(str[ptr + 1])){
| ~~~~~~~~^~~~~~~~~~~~~
Main.cpp:37:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(ptr != str.size() && str[ptr] == '+') ptr++;
| ~~~~^~~~~~~~~~~~~
Main.cpp:38:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(ptr != str.size() && str[ptr] == '-'){
| ~~~~^~~~~~~~~~~~~
Main.cpp:44:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | while(ptr != str.size()){
| ~~~~^~~~~~~~~~~~~
Main.cpp:48:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(ptr != str.size() && str[ptr] != '+' && str[ptr] != '-'){
| ~~~~^~~~~~~~~~~~~
Main.cpp:49:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if(ptr + 1 != str.size() && isdigit(str[ptr + 1])){
| ~~~~~~~~^~~~~~~~~~~~~
Main.cpp:61:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | if(ptr != str.size() && str[ptr] == '+') ptr++;
| ~~~~^~~~~~~~~~~~~
Main.cpp:62:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | if(ptr != str.size() && str[ptr] == '-'){
| ~~~~^~~~~~~~~~~~~