Submisie


Utilizator
Problema
Data
Compilator
Scor
14 Octombrie 2023, 18:32
c++14
17.0

Mesaj compilare

        main.cpp: In function ‘double max_angle(Point)’:
main.cpp:51:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   51 |         for(int i = 1; i < convex_hull.size() - 1; i++) {
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:48:10: warning: unused variable ‘ok’ [-Wunused-variable]
   48 |     bool ok = false;
      |          ^~
main.cpp: In function ‘double min_angle(int, Point, Point)’:
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:87:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   87 |         if(Point p = {1.0 * L, m * L + n}; check(p)) {
      |            ^~~~~
main.cpp:91:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   91 |         if(Point p = {(-L - n) / m, 1.0 * -L}; check(p)) {
      |            ^~~~~
main.cpp:95:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   95 |         if(Point p = {(L - n) / m, 1.0 * L}; check(p)) {
      |            ^~~~~
main.cpp:63:18: warning: unused variable ‘EPS’ [-Wunused-variable]
   63 |     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:128: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]
  128 |     assert(S.size() == N);
      |            ~~~~~~~~~^~~~
main.cpp:134:48: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  134 |     for(int i = 0, t = 1; i >= 0; i += (t = (i == O.size() - 1 ? -t : t))) {
      |                                              ~~^~~~~~~~~~~~~~~
main.cpp:145:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  145 |     for(int i = 0; i < convex_hull.size() - 1; i++) {
      |                    ~~^~~~~~~~~~~~~~~~~~~~~~~~

    

Detalii evaluare

Subtask
Test
Mesaj evaluator
Timp execuție
Memorie
3
1
correct
0,001
180KB
3
2
correct
0,001
176KB
3
3
correct
0,001
176KB
1
4
correct
0,001
180KB
1
5
correct
0,001
176KB
2
6
correct
0,001
176KB
2
7
correct
0,0
176KB
2
8
correct
0,001
176KB
3
9
wrong
0,001
176KB
3
10
correct
0,001
176KB
3
11
wrong
0,001
176KB
3
12
correct
0,001
176KB
4
13
wrong
0,014
348KB
4
14
correct
0,013
311KB
4
15
wrong
0,012
307KB
4
16
correct
0,012
307KB
5
17
wrong
0,132
6.62MB
5
18
wrong
0,132
6.63MB
5
19
wrong
0,134
6.58MB
6
20
TimeLimitExceeded
0,354
2.48MB
6
21
TimeLimitExceeded
0,355
4.58MB
6
22
TimeLimitExceeded
0,352
8.81MB
6
23
TimeLimitExceeded
0,352
8.91MB

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