Borderou de evaluare (job #1894979)
Utilizator | Data | 27 februarie 2017 18:25:23 | |
---|---|---|---|
Problema | Tsunami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:40:59: error: parameter declared ‘auto’
void fill_tsu(const int n,const int m,int &x,int &y, auto a)
^
user.cpp: In function ‘void fill_tsu(int, int, int&, int&)’:
user.cpp:44:10: error: ‘a’ was not declared in this scope
if(a[x][y]>0 && a[x][y]<h ) dist++; //cout<<"#"<<dist<<" "<<x<<" "<<y<<" "<<endl;}
^
user.cpp:52:40: error: ‘a’ was not declared in this scope
if(valid(newx,newy,n,m)&& test(a,x,y)==3)
^
user.cpp: In function ‘int main()’:
user.cpp:84:35: error: too many arguments to function ‘void fill_tsu(int, int, int&, int&)’
fill_tsu(n,m,i,j,a);
^
user.cpp:40:6: note: declared here
void fill_tsu(const int n,const int m,int &x,int &y, auto a)
^
user.cpp:65:28: warning: unused variable ‘x’ [-Wunused-variable]
int n, m,a[maxn][maxn],x,y;
^
user.cpp:65:30: warning: unused variable ‘y’ [-Wunused-variable]
int n, m,a[maxn][maxn],x,y;
^
user.cpp: In function ‘bool test(int (*)[50], int, int)’:
user.cpp:37:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !