Borderou de evaluare (job #1123033)
Utilizator | Data | 25 februarie 2014 22:10:26 | |
---|---|---|---|
Problema | Joc13 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:22: error: redefinition of ‘int a [2][5001]’
int n,i,j,K,a[2][5001],d,k;
^
user.cpp:4:5: error: ‘int a [2][5001]’ previously declared here
int a[2][5001];
^
user.cpp: In function ‘int suma(int, int, int, int)’:
user.cpp:9:7: error: ‘aux’ declared as reference but not initialized
int &aux;
^
user.cpp:18:51: error: ‘max’ was not declared in this scope
if(k<K) r=max(suma(i,j-1,1,k+1),suma(i-1,j,2,1));
^
user.cpp:17:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(dir==1)
^
user.cpp:25:51: error: ‘max’ was not declared in this scope
if(k<K) r=max(suma(i,j-1,1,k+1),suma(i+1,j,0,1));
^
user.cpp:24:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(dir==1)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !