Borderou de evaluare (job #1597042)

Utilizator c0rn1Goran Cornel c0rn1 Data 11 februarie 2016 16:57:22
Problema Arie Status done
Runda preoji_bv_1 Compilator cpp | Vezi sursa
Scor 10

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
10ms480kbIncorect0
20ms484kbIncorect0
30ms484kbIncorect0
40ms480kbOK10
50ms484kbIncorect0
60ms480kbIncorect0
70ms484kbIncorect0
80ms488kbIncorect0
90ms484kbIncorect0
100ms480kbIncorect0
Punctaj total10

Ceva nu functioneaza?