Borderou de evaluare (job #3302266)
| Utilizator | Data | 5 iulie 2025 15:29:02 | |
|---|---|---|---|
| Problema | Bool | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: 'vector' does not name a type
10 | vector<bool> vars(27, false);
| ^~~~~~
main.cpp: In function 'bool s2_in_s1_at_poz(std::string, std::string, int)':
main.cpp:19:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (int i = 0 ; i < s2.size() ; ++i) {
| ~~^~~~~~~~~~~
main.cpp: In function 'bool expresie(std::string&, int&)':
main.cpp:27:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | while (p < s.size() && s2_in_s1_at_poz(" OR ", s, p)) {
| ~~^~~~~~~~~~
main.cpp: In function 'bool termen(std::string&, int&)':
main.cpp:37:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while (p < s.size() && s2_in_s1_at_poz(" AND ", s, p)) {
| ~~^~~~~~~~~~
main.cpp: In function 'bool factor(std::string&, int&)':
main.cpp:70:16: error: 'vars' was not declared in this scope; did you mean 'var'?
70 | return vars[s[p - 1] - 'A'];
| ^~~~
| var
main.cpp: In function 'int main()':
main.cpp:82:9: error: 'vars' was not declared in this scope; did you mean 'var'?
82 | vars[schimbari[i] - 'A'] = !vars[schimbari[i] - 'A'];
| ^~~~
| var
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
