Pagini recente » Borderou de evaluare (job #1655866) | Borderou de evaluare (job #898380) | Borderou de evaluare (job #3043423) | Borderou de evaluare (job #2147823) | Borderou de evaluare (job #2018024)
Borderou de evaluare (job #2018024)
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 |
1 | 0ms | 260kb | OK | 10 |
2 | 0ms | 296kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 288kb | OK | 10 |
5 | 0ms | 300kb | OK | 10 |
6 | 0ms | 296kb | OK | 10 |
7 | 0ms | 300kb | OK | 10 |
8 | 0ms | 292kb | OK | 10 |
9 | 0ms | 300kb | Incorect | 0 |
10 | 0ms | 292kb | OK | 10 |
Punctaj total | 90 |