Borderou de evaluare (job #626003)

Utilizator avatar CristeaCristian Cristea Cristian CristeaCristian IP ascuns
Problemă Matrice monoton maximală (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 ian. 2022 22:22:15 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:67: error: 'int y1' redeclared as different kind of entity 10 | int v[NMAX][NMAX], fx[NMAX][NMAX], fy[NMAX][NMAX], maxim, x1, x2, y1, y2, minim, z, q, ok; | ^~ In file included from /usr/include/features.h:473, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/i686-pc-linux-gnu/bits/c++config.h:586, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/fstream:38, from main.cpp:1: /usr/include/bits/mathcalls.h:224:1: note: previous declaration 'double y1(double)' 224 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:56:24: error: assignment of function 'double y1(double)' 56 | y1 = j - minim + 1; | ~~~^~~~~~~~~~~~~~~ main.cpp:61:38: error: invalid operands of types 'int' and 'double(double) noexcept' {aka 'double(double)'} to binary 'operator-' 61 | fout << x2 - x1 + 1 << ' ' << y2 - y1 + 1 << '\n'; | ~~ ^ ~~ | | | | int double(double) noexcept {aka double(double)} main.cpp:64:17: error: invalid conversion from 'double (*)(double) noexcept' {aka 'double (*)(double)'} to 'int' [-fpermissive] 64 | for(j = y1; j <= y2; j++) | ^~ | | | double (*)(double) noexcept {aka double (*)(double)}