Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
14 Octombrie 2023, 18:39 |
c++14 |
17.0 |
main.cpp: In function ‘double max_angle(Point)’:
main.cpp:50:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
50 | for(int i = 1; i < convex_hull.size() - 1; i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:47:10: warning: unused variable ‘ok’ [-Wunused-variable]
47 | bool ok = false;
| ^~
main.cpp: In function ‘double min_angle(int, Point, Point)’:
main.cpp:80:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
80 | if(Point p = {1.0 * -L, m * (-L) + n}; check(p)) {
| ^~~~~
main.cpp:83:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
83 | if(Point p = {1.0 * L, m * L + n}; check(p)) {
| ^~~~~
main.cpp:86:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
86 | if(Point p = {(-L - n) / m, 1.0 * -L}; check(p)) {
| ^~~~~
main.cpp:89:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
89 | if(Point p = {(L - n) / m, 1.0 * L}; check(p)) {
| ^~~~~
main.cpp:60:18: warning: unused variable ‘EPS’ [-Wunused-variable]
60 | const double EPS = 1e-8;
| ^~~
In file included from /usr/include/c++/11/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
from main.cpp:1:
main.cpp: In function ‘int main()’:
main.cpp:121:21: warning: comparison of integer expressions of different signedness: ‘std::set<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
121 | assert(S.size() == N);
| ~~~~~~~~~^~~~
main.cpp:127:48: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
127 | for(int i = 0, t = 1; i >= 0; i += (t = (i == O.size() - 1 ? -t : t))) {
| ~~^~~~~~~~~~~~~~~
main.cpp:138:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
138 | for(int i = 0; i < convex_hull.size() - 1; i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
Subtask |
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
|---|---|---|---|---|
|
3
|
1
|
correct |
0,0 |
176KB |
|
3
|
2
|
correct |
0,001 |
176KB |
|
3
|
3
|
correct |
0,001 |
176KB |
|
1
|
4
|
correct |
0,001 |
176KB |
|
1
|
5
|
correct |
0,0 |
176KB |
|
2
|
6
|
correct |
0,0 |
176KB |
|
2
|
7
|
correct |
0,0 |
176KB |
|
2
|
8
|
correct |
0,0 |
176KB |
|
3
|
9
|
wrong |
0,001 |
176KB |
|
3
|
10
|
correct |
0,001 |
176KB |
|
3
|
11
|
wrong |
0,0 |
176KB |
|
3
|
12
|
correct |
0,001 |
176KB |
|
4
|
13
|
wrong |
0,012 |
307KB |
|
4
|
14
|
correct |
0,015 |
307KB |
|
4
|
15
|
wrong |
0,012 |
307KB |
|
4
|
16
|
correct |
0,014 |
307KB |
|
5
|
17
|
wrong |
0,135 |
6.59MB |
|
5
|
18
|
wrong |
0,134 |
6.59MB |
|
5
|
19
|
wrong |
0,135 |
6.59MB |
|
6
|
20
|
TimeLimitExceeded |
0,354 |
2.45MB |
|
6
|
21
|
TimeLimitExceeded |
0,352 |
4.55MB |
|
6
|
22
|
TimeLimitExceeded |
0,355 |
8.81MB |
|
6
|
23
|
TimeLimitExceeded |
0,353 |
8.92MB |
Subtask |
Scor |
Scor maxim |
|---|---|---|
1 |
2,0 |
2
|
2 |
15,0 |
15
|
3 |
0,0 |
15
|
4 |
0,0 |
16
|
5 |
0,0 |
12
|
6 |
0,0 |
40
|