Borderou de evaluare (job #1606584)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 20 februarie 2016 13:17:28
Problema Arie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int belongs(pct, std::vector<pct>&)’: user.cpp:74:35: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses] else if (semn != (int)det < 0) ^ user.cpp: In function ‘void addSect()’: user.cpp:106:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < poly1.size()-1; i++){ ^ user.cpp:107:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < poly2.size()-1; j++){ ^ user.cpp: In function ‘double aria(std::vector<pct>&)’: user.cpp:131:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < v.size()-1; i++){ ^ user.cpp: In function ‘void solve()’: user.cpp:140:20: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=] printf("%lf\n", 0); ^ user.cpp:146:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < inter.size(); ++i){ ^ user.cpp:144:12: warning: variable ‘pan’ set but not used [-Wunused-but-set-variable] double pan[10]; ^ user.cpp: In function ‘void citire()’: user.cpp:38:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:40:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf", &x, &y); ^ user.cpp:44:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:46:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf", &x, &y); ^ user.cpp: In function ‘int main()’: user.cpp:156:35: 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:157:37: 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
30ms488kbIncorect0
40ms484kbIncorect0
50ms488kbIncorect0
60ms480kbOK10
70ms488kbOK10
80ms484kbOK10
90ms484kbIncorect0
100ms488kbIncorect0
Punctaj total30

Ceva nu functioneaza?