Borderou de evaluare (job #3254224)

Utilizator DavidPopPopescu David DavidPop Data 6 noiembrie 2024 17:32:15
Problema Plantatie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:32: error: 'int j1' redeclared as different kind of entity 5 | int r[10][503][503],e[503],n,m,j1,j2,i1,i2,i,j,lat,p,l1,l2,l3,l4,k; | ^~ In file included from /usr/include/features.h:490, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655, from /usr/include/c++/12.2.1/cassert:43, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33, from main.cpp:1: /usr/include/bits/mathcalls.h:221:1: note: previous declaration 'double j1(double)' 221 | __MATHCALL (j1,, (_Mdouble_)); | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:12:7: error: assignment of function 'double j1(double)' 12 | for(j1=1;j1+lat-1<=n;j1++){ | ~~^~ main.cpp:12:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] 12 | for(j1=1;j1+lat-1<=n;j1++){ | ~~^~~~ main.cpp:12:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] 12 | for(j1=1;j1+lat-1<=n;j1++){ | ~~~~~~^~ main.cpp:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 12 | for(j1=1;j1+lat-1<=n;j1++){ | ~~~~~~~~^~~ main.cpp:12:22: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) noexcept' [-Wpointer-arith] 12 | for(j1=1;j1+lat-1<=n;j1++){ | ^~ main.cpp:12:22: error: lvalue required as increment operand main.cpp:14:6: warning: pointer to a function used in arithmetic [-Wpointer-arith] 14 | j2=j1+(lat>>1); | ~~^~~~~~~~~ main.cpp:14:6: error: invalid conversion from 'double (*)(double) noexcept' to 'int' [-fpermissive] 14 | j2=j1+(lat>>1); | ~~^~~~~~~~~ | | | double (*)(double) noexcept main.cpp:15:9: error: invalid types 'int [503][double(double) noexcept]' for array subscript 15 | r[p][i1][j1]=max(max(r[p-1][i1][j1],r[p-1][i1][j2]),max(r[p-1][i2][j1],r[p-1][i2][j2])); | ^ main.cpp:15:32: error: invalid types 'int [503][double(double) noexcept]' for array subscript 15 | r[p][i1][j1]=max(max(r[p-1][i1][j1],r[p-1][i1][j2]),max(r[p-1][i2][j1],r[p-1][i2][j2])); | ^ main.cpp:15:67: error: invalid types 'int [503][double(double) noexcept]' for array subscript 15 | r[p][i1][j1]=max(max(r[p-1][i1][j1],r[p-1][i1][j2]),max(r[p-1][i2][j1],r[p-1][i2][j2])); | ^ Non zero exit status: 1

Ceva nu functioneaza?