Borderou de evaluare (job #690634)

Utilizator avatar RazvanB21 Razvan Botezat RazvanB21 IP ascuns
Problemă Maxnrk (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 ian. 2023 13:33:22 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:16: warning: multi-character character constant [-Wmultichar] 10 | if (c=='/n') { | ^~~~ main.cpp: In function 'int main()': main.cpp:9:9: error: 'fin' was not declared in this scope 9 | fin>>c; | ^~~ main.cpp:6:9: warning: unused variable 'n' [-Wunused-variable] 6 | int n, k, nr1=0, nr2=0, nr3=0, i=1, x=1, nrmax=0; | ^ main.cpp:6:12: warning: unused variable 'k' [-Wunused-variable] 6 | int n, k, nr1=0, nr2=0, nr3=0, i=1, x=1, nrmax=0; | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/char_traits.h:39, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:40, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iostream:39, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]': main.cpp:24:29: required from here /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/stl_algobase.h:303:17: error: '__comp' cannot be used as a function 303 | if (__comp(__a, __b)) | ~~~~~~^~~~~~~~~~