Borderou de evaluare (job #2548768)
Utilizator | Data | 17 februarie 2020 00:41:03 | |
---|---|---|---|
Problema | Muzeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:7: error: 'Square' was not declared in this scope
queue<Square> q;
^~~~~~
main.cpp:16:13: error: template argument 1 is invalid
queue<Square> q;
^
main.cpp:16:13: error: template argument 2 is invalid
main.cpp: In function 'void floodFill()':
main.cpp:24:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()) {
^~~~~
main.cpp:25:15: error: request for member 'front' in 'q', which is of non-class type 'int'
int x = q.front().x;
^~~~~
main.cpp:26:15: error: request for member 'front' in 'q', which is of non-class type 'int'
int y = q.front().y;
^~~~~
main.cpp:27:7: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^~~
main.cpp:35:13: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push({x2, y2});
^~~~
main.cpp: In function 'int main()':
main.cpp:52:11: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push({i, j}); //is a Square with x == i and y == j
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !