Borderou de evaluare (job #3254222)
Utilizator | Data | 6 noiembrie 2024 17:31:24 | |
---|---|---|---|
Problema | Plantatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:11: error: 'CT' was not declared in this scope
5 | int r[10][CT][CT],e[CT],n,m,j1,j2,i1,i2,i,j,lat,p,l1,l2,l3,l4,k;
| ^~
main.cpp:5:15: error: 'CT' was not declared in this scope
5 | int r[10][CT][CT],e[CT],n,m,j1,j2,i1,i2,i,j,lat,p,l1,l2,l3,l4,k;
| ^~
main.cpp:5:21: error: 'CT' was not declared in this scope
5 | int r[10][CT][CT],e[CT],n,m,j1,j2,i1,i2,i,j,lat,p,l1,l2,l3,l4,k;
| ^~
main.cpp:5:29: error: 'int j1' redeclared as different kind of entity
5 | int r[10][CT][CT],e[CT],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:9:23: error: 'r' was not declared in this scope
9 | for(j=1;j<=n;j++)fin>>r[0][i][j];
| ^
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:1: error: 'r' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !