Pagini recente » Borderou de evaluare (job #1373320) | Borderou de evaluare (job #589183) | Borderou de evaluare (job #3195151) | Borderou de evaluare (job #2560648) | Borderou de evaluare (job #1600296)
Borderou de evaluare (job #1600296)
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.y < B.y || A.y == B.y && A.x < B.x;
^
user.cpp: In function ‘double polygonArea()’:
user.cpp:144: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:151: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:152: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 | 472kb | Incorect | 0 |
2 | 0ms | 472kb | Incorect | 0 |
3 | 0ms | 468kb | Incorect | 0 |
4 | 0ms | 476kb | Incorect | 0 |
5 | 0ms | 472kb | Incorect | 0 |
6 | 0ms | 472kb | Incorect | 0 |
7 | 0ms | 472kb | Incorect | 0 |
8 | 0ms | 472kb | OK | 10 |
9 | 0ms | 472kb | Incorect | 0 |
10 | 0ms | 476kb | Incorect | 0 |
Punctaj total | 10 |