Pagini recente » Borderou de evaluare (job #770726) | Borderou de evaluare (job #2517829) | Borderou de evaluare (job #2313763) | Borderou de evaluare (job #860041) | Borderou de evaluare (job #1597042)
Borderou de evaluare (job #1597042)
Raport evaluator
Compilare:
user.cpp: In function ‘bool pointInsidePol(point, std::vector<point>)’:
user.cpp:91:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i < pol.size(); ++i){
^
user.cpp: In function ‘bool cmpYX(point, point)’:
user.cpp:141:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
return A.y < B.y || A.y == B.y && A.x < B.x;
^
user.cpp: In function ‘void sortPoints()’:
user.cpp:150:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < pp.size(); ++i)
^
user.cpp: In function ‘double ariePoly()’:
user.cpp:161:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 1, k = 2; k < pp.size(); j++, k++){
^
user.cpp:159:8: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
int i, j, k;
^
user.cpp: In function ‘void readData()’:
user.cpp:35:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
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:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &m);
^
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:169: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:170: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 | 480kb | Incorect | 0 |
2 | 0ms | 484kb | Incorect | 0 |
3 | 0ms | 484kb | Incorect | 0 |
4 | 0ms | 480kb | OK | 10 |
5 | 0ms | 484kb | Incorect | 0 |
6 | 0ms | 480kb | Incorect | 0 |
7 | 0ms | 484kb | Incorect | 0 |
8 | 0ms | 488kb | Incorect | 0 |
9 | 0ms | 484kb | Incorect | 0 |
10 | 0ms | 480kb | Incorect | 0 |
Punctaj total | 10 |