Borderou de evaluare (job #2859226)

Utilizator ptudortudor P ptudor Data 1 martie 2022 00:26:49
Problema Insula2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'Point inter(Line, Line)': main.cpp:81:89: error: 'y' was not declared in this scope 81 | return Point{(-b.c + (b.a * a.c) / a.a) / ((-a.b * b.a) / a.a + b.b), (-a.c - a.b * y) / a.a}; | ^ main.cpp: In function 'int main()': main.cpp:120:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 120 | for (i = 1; i < res.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp:147:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 147 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:151:31: warning: comparison of integer expressions of different signedness: 'std::vector<Point>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 151 | while(hull.size() > i + 2) hull.pop_back(); | ~~~~~~~~~~~~^~~~~~~ main.cpp:162:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 162 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:163:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 163 | for (j = i + 1; j + 1 < hull.size(); j++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:175:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 175 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:185:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 185 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:190:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 190 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ main.cpp:200:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Point>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 200 | for (i = 0; i + 1 < hull.size(); i++) { | ~~~~~~^~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?