Borderou de evaluare (job #314977)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Squares | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 1 oct. 2017 20:57:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘Square findSquare(Point, Point)’:
user.cpp:81:39: error: narrowing conversion of ‘(c.Point::x - dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:81:39: error: narrowing conversion of ‘(c.Point::y - dist2)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:82:39: error: narrowing conversion of ‘(c.Point::x + dist2)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:82:39: error: narrowing conversion of ‘(c.Point::y - dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:83:39: error: narrowing conversion of ‘(c.Point::x + dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:83:39: error: narrowing conversion of ‘(c.Point::y + dist2)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp: In function ‘double poligonArea(std::vector<Point>)’:
user.cpp:98:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:100:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘bool pointInPoligon(Point, std::vector<Point>)’:
user.cpp:112:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:114:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘void poligonIntersection(std::vector<Point>, std::vector<Point>, std::vector<Point>&)’:
user.cpp:123:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:125:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:133:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:139:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘void infasuratoare(std::vector<Point>&)’:
user.cpp:207:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘int main()’:
user.cpp:227:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:228:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:231:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp: In member function ‘void Point::scan()’:
user.cpp:23:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]