Borderou de evaluare (job #1670538)
Utilizator | Data | 31 martie 2016 20:25:48 | |
---|---|---|---|
Problema | Android | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:32: error: ‘int y1’ redeclared as different kind of symbol
int intre[25][25],i,j,N,M,y,x1,y1,x2,y2,L[25][25];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:20:15: error: assignment of function ‘double y1(double)’
y1=(j-1)/M+1;
^
user.cpp:20:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:24:18: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
b=y2-y1;
^
user.cpp:37:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y=y1-1;
^
user.cpp:37:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
y=y1-1;
^
user.cpp:41:27: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
x=((y-y1)/b)*a+x1;
^
user.cpp:74:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"%d",S);
^
user.cpp:13:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&N,&M);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !