Borderou de evaluare (job #1853512)
Utilizator | Data | 21 ianuarie 2017 20:41:47 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:36: error: ‘int y1’ redeclared as different kind of symbol
int a[105][105],b[105][105],n,m,x1,y1,i,j,k,in,sf,z,t,minn,xl,xc,xd,yl,yc,yd,x,y;
^
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/bits/stl_algobase.h:59,
from /usr/include/c++/4.8/deque:60,
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:22:34: error: assignment of function ‘double y1(double)’
if (s[j]=='R') {x1=i; y1=j;}
^
user.cpp:22:34: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:29:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
xl=x1; xc=y1; xd=0; a[xl][xc]=0;
^
user.cpp:12: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:13: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:14: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:17:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !