Borderou de evaluare (job #963459)
Utilizator | Data | 17 iunie 2013 15:47:40 | |
---|---|---|---|
Problema | Heroes of Might & Magic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:21: error: ‘int y1’ redeclared as different kind of symbol
int m,n,i,k,j,x1,x2,y1,y2,x[NMAX][NMAX];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:18:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
^
user.cpp:19:10: error: invalid types ‘long long int [102][double(double)throw ()]’ for array subscript
a[x1][y1]=1;
^
user.cpp:39:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ((x1==x2) && (y1==y2)) nr++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !