Borderou de evaluare (job #807625)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Sir9i Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 2 feb. 2025 11:19:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Init(int, std::string&)': main.cpp:13:9: error: 'reverse' was not declared in this scope 13 | reverse(aux.begin(),aux.end()); | ^~~~~~~ main.cpp: In function 'int main()': main.cpp:40:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 40 | for(int i = 0 ; i < num.size() && cnt!=k ; i ++ ){ | ~~^~~~~~~~~~~~ main.cpp:41:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 41 | if(cnt<=k) | ^~ main.cpp:43:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 43 | cnt ++ ; | ^~~