Borderou de evaluare (job #1503319)
Utilizator | Data | 15 octombrie 2015 21:45:58 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:51: error: ‘int y1’ redeclared as different kind of symbol
int a[150][150],J[150][150],r[150][150],j,i,x1,x2,y1,y2,miny=INT_MAX,n,m,poz1,poz2;
^
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:61:19: error: assignment of function ‘double y1(double)’
y1=i;
^
user.cpp:61:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:73:25: error: ‘memcpy’ was not declared in this scope
memcpy(r,a,sizeof(a));
^
user.cpp:76:16: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
lee(J,y1,y2);
^
user.cpp:14:6: error: initializing argument 2 of ‘void lee(int (*)[150], int, int)’ [-fpermissive]
void lee(int a[150][150],int x,int y)
^
user.cpp:37:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.in","r",stdin);
^
user.cpp:38:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.out","w",stdout);
^
user.cpp:39:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&n,&m);
^
user.cpp:44:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&c);
^
user.cpp:66:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !