Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
29 Octombrie 2024, 17:09 |
c++14 |
E.C. |
main.cpp:21:14: error: empty character constant
21 | if(s[p]==''){
| ^~
main.cpp: In function ‘int e_sub(const string&, int&)’:
main.cpp:31:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
31 | while(p<s.size() && s[p] == '&'){
| ~^~~~~~~~~
main.cpp:33:9: warning: statement has no effect [-Wunused-value]
33 | result;
| ^~~~~~
main.cpp: In function ‘void reconstruct(const string&, std::string&, int&)’:
main.cpp:56:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
56 | while(p1<s1.size()){
| ~~^~~~~~~~~~
main.cpp: In function ‘int expression(std::string&, int&)’:
main.cpp:89:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
89 | while(p<s.size () && s[p] == '|'){
| ~^~~~~~~~~~
main.cpp:91:9: warning: statement has no effect [-Wunused-value]
91 | result;
| ^~~~~~