Borderou de evaluare (job #2339293)
Utilizator | Data | 8 februarie 2019 17:34:52 | |
---|---|---|---|
Problema | Petrecere2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[x].size(); i++){
~~^~~~~~~~~~~~~
main.cpp:17:14: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
if(viz[pr->first])
^~
main.cpp:19:25: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 0 && pr->second == 0) {alb++; dfs(pr->first,0);}
^~
main.cpp:19:54: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 0 && pr->second == 0) {alb++; dfs(pr->first,0);}
^~
main.cpp:20:25: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 0 && pr->second == 1) {negru++; dfs(pr->first, 1);}
^~
main.cpp:20:56: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 0 && pr->second == 1) {negru++; dfs(pr->first, 1);}
^~
main.cpp:21:25: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 1 && pr->second == 0) {negru++; dfs(pr->first, 1);}
^~
main.cpp:21:56: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 1 && pr->second == 0) {negru++; dfs(pr->first, 1);}
^~
main.cpp:22:25: error: base operand of '->' has non-pointer type 'std::pair<int, int>'
else if(c == 1 && pr->second == 1) {alb++, dfs(y->first, 0);}
^~
main.cpp:22:52: error: 'y' was not declared in this scope
else if(c == 1 && pr->second == 1) {alb++, dfs(y->first, 0);}
^
main.cpp: In function 'int main()':
main.cpp:30:12: error: 't' was not declared in this scope
fin >> t >> x >> y;
^
main.cpp:30:17: error: 'x' was not declared in this scope
fin >> t >> x >> y;
^
main.cpp:30:22: error: 'y' was not declared in this scope
fin >> t >> x >> y;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !