Borderou de evaluare (job #314981)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Squares | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 1 oct. 2017 21:01:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘Square findSquare(Point, Point)’:
user.cpp:78:39: error: narrowing conversion of ‘(c.Point::x - dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:78:39: error: narrowing conversion of ‘(c.Point::y - dist2)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:79:39: error: narrowing conversion of ‘(c.Point::x + dist2)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:79:39: error: narrowing conversion of ‘(c.Point::y - dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:80:39: error: narrowing conversion of ‘(c.Point::x + dist1)’ from ‘double’ to ‘int’ inside { } [-fpermissive]
user.cpp:80: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:95:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:97:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘bool pointInPoligon(Point, std::vector<Point>)’:
user.cpp:109:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:111: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:120:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:122:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:130:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:136:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘void infasuratoare(std::vector<Point>&)’:
user.cpp:204:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp: In function ‘int main()’:
user.cpp:224:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:225:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:228: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:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]