Borderou de evaluare (job #797235)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fraza (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 nov. 2024 18:20:02 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In lambda function:
main.cpp:17:37: error: 'n' was not declared in this scope; did you mean 'yn'?
17 | while (left >= 0 && right < n && cuvinte[left] == cuvinte[right]) {
| ^
| yn
main.cpp: In function 'int main()':
main.cpp:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
28 | for (int i = 0; i < cuvinte.size(); i++) {
| ~~^~~~~~~~~~~~~~~~