Borderou de evaluare (job #1894320)
Utilizator | Data | 26 februarie 2017 19:05:52 | |
---|---|---|---|
Problema | Tsunami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:21:16: error: parameter declared ‘auto’
bool test(auto a,int x,int y)
^
user.cpp: In function ‘bool test(int, int)’:
user.cpp:24:26: error: ‘a’ was not declared in this scope
if(!viz[x][y] && a[x][y]<h){
^
user.cpp: At global scope:
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:106:29: error: invalid conversion from ‘int (*)[50]’ to ‘int’ [-fpermissive]
cout<<test(a,i,j)<<" ";
^
user.cpp:106:29: error: too many arguments to function ‘bool test(int, int)’
user.cpp:21:6: note: declared here
bool test(auto a,int x,int y)
^
user.cpp:107:26: error: invalid conversion from ‘int (*)[50]’ to ‘int’ [-fpermissive]
if(test(a,i,j))
^
user.cpp:107:26: error: too many arguments to function ‘bool test(int, int)’
user.cpp:21:6: note: declared here
bool test(auto a,int x,int y)
^
user.cpp:110: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:91:28: warning: unused variable ‘x’ [-Wunused-variable]
int n, m,a[maxn][maxn],x,y;
^
user.cpp:91:30: warning: unused variable ‘y’ [-Wunused-variable]
int n, m,a[maxn][maxn],x,y;
^
user.cpp: In function ‘bool test(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 !