Borderou de evaluare (job #2266973)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 23 octombrie 2018 00:09:29
Problema Cuiburi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:26: error: redeclaration of 'int geo::xb' int tip, xa, ya, xb, xb; ^~ main.cpp:8:22: note: previous declaration 'int geo::xb' int tip, xa, ya, xb, xb; ^~ main.cpp: In function 'bool fitrect(int, int)': main.cpp:18:79: error: 'struct geo' has no member named 'yb'; did you mean 'ya'? if(v[j].xa >= v[i].xa && v[j].xb <= v[i].xb && v[j].ya >= v[i].ya && v[j].yb <= v[i].yb) ^~ main.cpp:18:90: error: 'struct geo' has no member named 'yb'; did you mean 'ya'? if(v[j].xa >= v[i].xa && v[j].xb <= v[i].xb && v[j].ya >= v[i].ya && v[j].yb <= v[i].yb) ^~ main.cpp: In function 'bool fit(int, int)': main.cpp:36:32: error: 'fitrectcirc' was not declared in this scope return fitrectcirc(i, j); ^ main.cpp:37:28: error: 'fitcircrect' was not declared in this scope return fitcircrect(i, j); ^ main.cpp: In function 'int main()': main.cpp:48:56: error: 'struct geo' has no member named 'yb'; did you mean 'ya'? f >> v[i].xa >> v[i].ya >> v[i].xb >> v[i].yb; ^~ main.cpp:53:22: error: 'struct geo' has no member named 'push_back' v[i].push_back(j), ++gr[j]; ^~~~~~~~~ main.cpp:53:36: error: no match for 'operator++' (operand type is 'std::vector<int>') v[i].push_back(j), ++gr[j]; ^~~~~~~ main.cpp:55:12: error: no match for 'operator!' (operand type is 'std::vector<int>') if(!gr[i]) ^~~~~~ main.cpp:55:12: note: candidate: operator!(bool) <built-in> main.cpp:55:12: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool' main.cpp:62:35: error: 'struct geo' has no member named 'size' for(int i = 0; i < v[nod].size(); ++i) ^~~~ main.cpp:64:27: error: no match for 'operator[]' (operand types are 'geo' and 'int') int a = v[nod][i]; ^ main.cpp:67:13: error: no match for 'operator--' (operand type is 'std::vector<int>') --gr[a]; ^~~~~~~ main.cpp:68:22: error: no match for 'operator==' (operand types are 'std::vector<int>' and 'int') if(gr[a] == 0) ~~~~~~^~~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: Non zero exit status: 1

Ceva nu functioneaza?