Borderou de evaluare (job #2018024)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 3 septembrie 2017 12:38:48
Problema Arie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘bool punctpeSegment(Punct, Punct, Punct)’: user.cpp:49:74: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses] if ((eps < std::max(p1.x, p2.x) - p.x) == (p.x - std::min(p1.x, p2.x)) > eps && (std::max(p1.y, p2.y) - p.y > eps) == (p.y - std::min(p1.y, p2.y)) > eps) ^ user.cpp:49:150: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses] if ((eps < std::max(p1.x, p2.x) - p.x) == (p.x - std::min(p1.x, p2.x)) > eps && (std::max(p1.y, p2.y) - p.y > eps) == (p.y - std::min(p1.y, p2.y)) > eps) ^ user.cpp: In function ‘bool inPoligon(Punct, std::vector<Punct>)’: user.cpp:77:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < poligon.size() - 1; ++i) ^ user.cpp:81:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < poligon.size(); ++i) ^ user.cpp: In function ‘std::vector<Punct> intersectie(std::vector<Punct>, std::vector<Punct>)’: user.cpp:89:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < p1.size(); ++i) { ^ user.cpp:92:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < p2.size(); ++j) { ^ user.cpp:108:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sol.size(); ++i) { ^ user.cpp:109:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i + 1 < sol.size() && std::fabs(sol[i].x - sol[i + 1].x) < eps && std::fabs(sol[i].y - sol[i + 1].y) < eps) ^ user.cpp: In function ‘int main()’: user.cpp:150:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 2; i < poligon.size(); ++i){ ^ user.cpp:121:33: 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:122:35: 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); ^ user.cpp:124:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:128:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ user.cpp:131:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:135:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms296kbOK10
30ms300kbOK10
40ms288kbOK10
50ms300kbOK10
60ms296kbOK10
70ms300kbOK10
80ms292kbOK10
90ms300kbIncorect0
100ms292kbOK10
Punctaj total90

Ceva nu functioneaza?