Borderou de evaluare (job #1840413)
Utilizator | Data | 4 ianuarie 2017 13:46:47 | |
---|---|---|---|
Problema | Lacusta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:16: error: ‘int j1’ redeclared as different kind of symbol
int aux,mm,mm2,j1,j2,i,j,b[251][251],a[251][251];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:24:36: error: assignment of function ‘double j1(double)’
mm=b[i-1][1],mm2=b[i-1][2],j1=1,j2=2;
^
user.cpp:24:36: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:25:44: error: assignment of function ‘double j1(double)’
if(mm>mm2) aux=mm2,mm2=mm,mm=aux,j1=2,j2=1;
^
user.cpp:25:44: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:30:43: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
if(b[i-1][j]<mm)mm2=mm,mm=b[i-1][j],j2=j1,j1=j;
^
user.cpp:30:49: error: assignment of function ‘double j1(double)’
if(b[i-1][j]<mm)mm2=mm,mm=b[i-1][j],j2=j1,j1=j;
^
user.cpp:30:49: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:34:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(j!=j1) b[i][j]=a[i][j]+a[i-1][j]+mm;
^
user.cpp:10:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&m,&n);
^
user.cpp:13:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(j=1;j<=n;j++)fscanf(f,"%d",&a[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !