Pagini recente » Cod sursa (job #112729) | Cod sursa (job #1460283) | Cod sursa (job #1406294) | Cod sursa (job #2049959) | Borderou de evaluare (job #2018001)
Borderou de evaluare (job #2018001)
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 |
1 | 0ms | 312kb | OK | 10 |
2 | 0ms | 320kb | OK | 10 |
3 | 0ms | 316kb | OK | 10 |
4 | 0ms | 316kb | OK | 10 |
5 | 0ms | 320kb | OK | 10 |
6 | 0ms | 320kb | OK | 10 |
7 | 0ms | 320kb | OK | 10 |
8 | 0ms | 320kb | OK | 10 |
9 | 0ms | 324kb | Incorect | 0 |
10 | 0ms | 316kb | OK | 10 |
Punctaj total | 90 |