Borderou de evaluare (job #1683782)
Utilizator | Data | 10 aprilie 2016 16:17:42 | |
---|---|---|---|
Problema | Tsunami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:35: error: in-class initialization of static data member ‘short int dot::deltaX []’ of incomplete type
static short deltaX[] = {0,1,0,-1};
^
user.cpp:13:35: error: in-class initialization of static data member ‘short int dot::deltaY []’ of incomplete type
static short deltaY[] = {1,0,-1,0};
^
user.cpp: In function ‘dot make_dot(int, int)’:
user.cpp:24:9: error: no matching function for call to ‘dot::dot()’
dot cur;
^
user.cpp:24:9: note: candidates are:
user.cpp:18:2: note: dot::dot(int, int)
dot(int x, int y) :x(x),y(y) {}
^
user.cpp:18:2: note: candidate expects 2 arguments, 0 provided
user.cpp:10:8: note: constexpr dot::dot(const dot&)
struct dot
^
user.cpp:10:8: note: candidate expects 1 argument, 0 provided
user.cpp:10:8: note: constexpr dot::dot(dot&&)
user.cpp:10:8: note: candidate expects 1 argument, 0 provided
user.cpp: In function ‘bool hasNeighbours(int, int)’:
user.cpp:32:39: error: ‘dx’ was not declared in this scope
for( int k = 0; k<4;k++ )if(sea[i+dx[k]][j+dy[k]]!=0)return true;
^
user.cpp:32:48: error: ‘dy’ was not declared in this scope
for( int k = 0; k<4;k++ )if(sea[i+dx[k]][j+dy[k]]!=0)return true;
^
user.cpp: In function ‘int main()’:
user.cpp:56:68: error: ‘q’ was not declared in this scope
if( sea[i][j] == 0 && hasNeighbours(i,j) )sea[i][j]=-1,q.push(make_dot(i,j));
^
user.cpp:68:25: error: ‘dx’ was not declared in this scope
if( sea[c.x+dx[k]][c.y+dy[k]] < h && sea[c.x+dx[k]][c.y+dy[k]] != -1 )
^
user.cpp:68:36: error: ‘dy’ was not declared in this scope
if( sea[c.x+dx[k]][c.y+dy[k]] < h && sea[c.x+dx[k]][c.y+dy[k]] != -1 )
^
user.cpp:68:45: error: ‘h’ was not declared in this scope
if( sea[c.x+dx[k]][c.y+dy[k]] < h && sea[c.x+dx[k]][c.y+dy[k]] != -1 )
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !