Borderou de evaluare (job #2581279)

Utilizator radustn92Radu Stancu radustn92 Data 14 martie 2020 20:07:11
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int findLca(int)': main.cpp:34:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (step <= currPath.size()) { ~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:40:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (pos + step < currPath.size() && inSubtree(currPath[pos + step], otherNode)) { ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:61:32: error: 'froepen' was not declared in this scope froepen("lca.out", "w", stdout); ^ main.cpp:60:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lca.in", "r", stdin); ^ Non zero exit status: 1

Ceva nu functioneaza?