Borderou de evaluare (job #1784018)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 19 octombrie 2016 18:14:45
Problema Gradina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int buildPoly(coord, coord, int)’: user.cpp:67:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < poly.size(); i++) ^ user.cpp:71:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < s2.size()-1; i++) ^ user.cpp:75:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < poly.size(); i++) ^ user.cpp: In function ‘int arie()’: user.cpp:86:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < poly.size()-1; i++) ^ user.cpp: In function ‘void solve()’: user.cpp:116:43: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (dif < best || dif == best && better()) { ^ user.cpp: In function ‘void read()’: user.cpp:32:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:34:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a[i].x, &a[i].y); ^ user.cpp: In function ‘int better()’: user.cpp:100:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:128:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gradina.in", "r", stdin); ^ user.cpp:129:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gradina.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbOkay10
24ms456kbOkay10
3144ms472kbOkay10
4456ms472kbOkay10
5140ms468kbOkay10
664ms464kbOkay10
7392ms468kbOkay10
80ms404kbKilled by signal 11(SIGSEGV).0
9304ms480kbOkay10
10464ms468kbOkay10
Punctaj total90

Ceva nu functioneaza?