Pagini recente » Borderou de evaluare (job #1683851) | Borderou de evaluare (job #254767) | Borderou de evaluare (job #60168) | Borderou de evaluare (job #1272629) | Borderou de evaluare (job #1600306)
Borderou de evaluare (job #1600306)
Raport evaluator
Compilare:
user.cpp: In function ‘bool isPointInsidePoly(std::vector<point>, point)’:
user.cpp:66:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i < poly.size(); ++i)
^
user.cpp: In function ‘bool cmpYX(point, point)’:
user.cpp:111:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
return A.x < B.x || A.x == B.x && A.y < B.y;
^
user.cpp: In function ‘double polygonArea()’:
user.cpp:147:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i < p.size(); ++i)
^
user.cpp: In function ‘void readPolygons()’:
user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &nsize);
^
user.cpp:37:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf\n", &x, &y);
^
user.cpp:40:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &msize);
^
user.cpp:42:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf\n", &x, &y);
^
user.cpp: In function ‘int main()’:
user.cpp:154:34: 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:155:36: 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);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 464kb | Incorect | 0 |
2 | 0ms | 468kb | Incorect | 0 |
3 | 0ms | 464kb | Incorect | 0 |
4 | 0ms | 468kb | Incorect | 0 |
5 | 0ms | 476kb | Incorect | 0 |
6 | 0ms | 464kb | OK | 10 |
7 | 0ms | 464kb | OK | 10 |
8 | 0ms | 468kb | OK | 10 |
9 | 0ms | 468kb | Incorect | 0 |
10 | 0ms | 460kb | Incorect | 0 |
Punctaj total | 30 |