Borderou de evaluare (job #3373421)

Utilizator zamhoriaHoria Zamfir zamhoria Data 6 noiembrie 2026 22:49:58
Problema Alice în Țara Minunilor 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:47:5: error: 'cin' was not declared in this scope 47 | cin >> cuv; | ^~~ main.cpp:6:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 5 | #include <algorithm> +++ |+#include <iostream> 6 | main.cpp:52:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 52 | for (int i = 0; i < cuv.length(); i++) { | ~~^~~~~~~~~~~~~~ main.cpp:59:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 59 | for (int i = 0; i < cuv.length(); i++) { | ~~^~~~~~~~~~~~~~ main.cpp:64:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 64 | if (i != cuv.length() - 1) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:77:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 77 | if (idx_elem != alfabet[key].size() - 1) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:86:5: error: 'cout' was not declared in this scope 86 | cout << depth[cuv.length() - 1]; | ^~~~ main.cpp:86:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?