Borderou de evaluare (job #3335160)
| Utilizator | Data | 21 ianuarie 2026 19:11:38 | |
|---|---|---|---|
| Problema | Evaluarea unei expresii | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int expresie(const std::string&, int&)':
main.cpp:13:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | while (p<s.size()&&{s[p]=='+' || s[p]=='-'}) {
| ~^~~~~~~~~
main.cpp:13:24: error: expected primary-expression before '{' token
13 | while (p<s.size()&&{s[p]=='+' || s[p]=='-'}) {
| ^
main.cpp:13:24: error: expected ')' before '{' token
13 | while (p<s.size()&&{s[p]=='+' || s[p]=='-'}) {
| ~ ^
| )
main.cpp:13:47: error: expected ';' before '}' token
13 | while (p<s.size()&&{s[p]=='+' || s[p]=='-'}) {
| ^
| ;
main.cpp:13:48: error: expected primary-expression before ')' token
13 | while (p<s.size()&&{s[p]=='+' || s[p]=='-'}) {
| ^
main.cpp: In function 'int termen(const std::string&, int&)':
main.cpp:24:12: 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(p<s.size() && (s[p] == '*' || s[p] == '/')) {
| ~^~~~~~~~~
main.cpp: In function 'int numar(const std::string&, int&)':
main.cpp:54:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for(;p<s.size() && isdigit(s[p]); p++) {
| ~^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
