Borderou de evaluare (job #2960034)
Utilizator | Andrei Croitoriu Andreibatman | Data | 3 ianuarie 2023 14:26:03 |
---|---|---|---|
Problema | Marele Zgomot | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:5: error: 'index' does not name a type
14 | index start,finish;
| ^~~~~
main.cpp: In member function 'bool zgomot::operator==(const zgomot&) const':
main.cpp:17:18: error: 'const struct zgomot' has no member named 'start'
17 | return a.start==start && a.finish==finish;
| ^~~~~
main.cpp:17:25: error: 'start' was not declared in this scope
17 | return a.start==start && a.finish==finish;
| ^~~~~
main.cpp:17:36: error: 'const struct zgomot' has no member named 'finish'
17 | return a.start==start && a.finish==finish;
| ^~~~~~
main.cpp:17:44: error: 'finish' was not declared in this scope; did you mean 'finite'?
17 | return a.start==start && a.finish==finish;
| ^~~~~~
| finite
main.cpp: At global scope:
main.cpp:20:12: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence> class std::queue'
20 | queue<index>q;
| ^
main.cpp:20:12: note: expected a type, got 'index'
main.cpp:20:12: error: template argument 2 is invalid
main.cpp: In function 'bool unite(zgomot, zgomot)':
main.cpp:61:7: error: request for member 'push' in 'q', which is of non-class type 'int'
61 | q.push(a.start);
| ^~~~
main.cpp:61:14: error: 'struct zgomot' has no member named 'start'
61 | q.push(a.start);
| ^~~~~
main.cpp:62:7: error: request for member 'push' in 'q', which is of non-class type 'int'
62 | q.push(a.finish);
| ^~~~
main.cpp:62:14: error: 'struct zgomot' has no member named 'finish'
62 | q.push(a.finish);
| ^~~~~~
main.cpp:63:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
63 | while(!q.empty())
| ^~~~~
main.cpp:65:13: error: request for member 'front' in 'q', which is of non-class type 'int'
65 | p=q.front();
| ^~~~~
main.cpp:66:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
66 | q.pop();
| ^~~
main.cpp:71:68: error: 'struct zgomot' has no member named 'start'
71 | if(in(p1.x,p1.y) && lee[p1.x][p1.y]!=contor && !(p1==a.start) && !(p1==a.finish))
| ^~~~~
main.cpp:71:86: error: 'struct zgomot' has no member named 'finish'
71 | if(in(p1.x,p1.y) && lee[p1.x][p1.y]!=contor && !(p1==a.start) && !(p1==a.finish))
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !