Borderou de evaluare (job #2979615)
Utilizator | Data | 15 februarie 2023 17:12:57 | |
---|---|---|---|
Problema | Paranteze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:38:5: error: 'din' was not declared in this scope; did you mean 'fin'?
38 | din >> n >> s;
| ^~~
| fin
main.cpp:40:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int i = 0; i < s.size(); ++i) {
| ~~^~~~~~~~~~
main.cpp:45:35: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
45 | } else if (str.size() > maxim && verify(str)) {
| ~~~~~~~~~~~^~~~~~~
main.cpp:39:9: warning: unused variable 'str_start_pos' [-Wunused-variable]
39 | int str_start_pos = 0, str_final_pos = 0, maxim = 1;
| ^~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !