Pagini recente » Borderou de evaluare (job #1840218) | Borderou de evaluare (job #1264529) | Borderou de evaluare (job #2715874) | Borderou de evaluare (job #1524584) | Borderou de evaluare (job #2017842)
Borderou de evaluare (job #2017842)
Raport evaluator
Compilare:
user.cpp: In function ‘double poligonArea(std::vector<Point>)’:
user.cpp:79:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < points.size(); i++) {
^
user.cpp: In function ‘bool pointInPoligon(Point, std::vector<Point>)’:
user.cpp:88:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < points.size(); i++) {
^
user.cpp: In function ‘void infasuratoare(std::vector<Point>&)’:
user.cpp:155:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ind < points.size()) {
^
user.cpp: In function ‘int main()’:
user.cpp:184:35: warning: narrowing conversion of ‘x’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
poligon1.push_back(Point {x, y});
^
user.cpp:184:35: warning: narrowing conversion of ‘y’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
user.cpp:191:35: warning: narrowing conversion of ‘x’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
poligon2.push_back(Point {x, y});
^
user.cpp:191:35: warning: narrowing conversion of ‘y’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
user.cpp:174:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arie.in", "r", stdin);
^
user.cpp:175:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arie.out", "w", stdout);
^
user.cpp:178:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:183:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf", &x, &y);
^
user.cpp:187:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &M);
^
user.cpp:190:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 308kb | OK | 10 |
2 | 0ms | 276kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 320kb | Incorect | 0 |
4 | 0ms | 316kb | OK | 10 |
5 | 0ms | 320kb | Incorect | 0 |
6 | 0ms | 320kb | OK | 10 |
7 | 0ms | 320kb | OK | 10 |
8 | 0ms | 316kb | OK | 10 |
9 | 0ms | 320kb | OK | 10 |
10 | 0ms | 308kb | Incorect | 0 |
Punctaj total | 60 |