Borderou de evaluare (job #2018001)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 3 septembrie 2017 11:59:50
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:52:75: 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:52:153: 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:80:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < poligon.size() - 1; ++i) ^ user.cpp:84: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:92:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < p1.size(); ++i) { ^ user.cpp:95:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < p2.size(); ++j) { ^ user.cpp:111:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sol.size(); ++i) { ^ user.cpp:112: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:145:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < poligon.size() - 1; ++i) ^ user.cpp:124: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:125: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:127:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:131: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:134:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:138: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
10ms312kbOK10
20ms320kbOK10
30ms316kbOK10
40ms316kbOK10
50ms320kbOK10
60ms320kbOK10
70ms320kbOK10
80ms320kbOK10
90ms324kbIncorect0
100ms316kbOK10
Punctaj total90

Ceva nu functioneaza?