Borderou de evaluare (job #1281629)
Utilizator | Data | 3 decembrie 2014 15:21:15 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:30: error: invalid types ‘int[int]’ for array subscript
int h[1026][1026],d[1026[1026];
^
user.cpp:9:31: error: expected ‘]’ before ‘;’ token
int h[1026][1026],d[1026[1026];
^
user.cpp: In function ‘int drum(int, int)’:
user.cpp:17:8: error: ‘d’ was not declared in this scope
if(d[x][y]!=0) return d[x][y]; // unde pastrez rezultatele
^
user.cpp:33:5: error: ‘d’ was not declared in this scope
d[x][y]=dmax+1;
^
user.cpp: In function ‘void drumul(int, int)’:
user.cpp:40:12: error: ‘d’ was not declared in this scope
int nr=d[x][y],i,xx,yy,j;
^
user.cpp:43:9: error: ‘i’ was not declared in this scope
for(i=1; i<=nr; i++)
^
user.cpp:47:13: error: ‘j’ was not declared in this scope
for(j=0; j<4; j++)
^
user.cpp:49:13: error: ‘xx’ was not declared in this scope
xx=x + dx[j];
^
user.cpp:50:13: error: ‘yy’ was not declared in this scope
yy=y + dy[j];
^
user.cpp: In function ‘int main()’:
user.cpp:71:13: error: ‘d’ was not declared in this scope
d[i][j]=drum(i,j);
^
user.cpp:76:16: error: ‘d’ was not declared in this scope
if(d[i][j] >d[imax][jmax])
^
user.cpp:64:11: warning: unused variable ‘maxim’ [-Wunused-variable]
int n,maxim=-1,i,j;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !