Submisie


Utilizator
Problema
Data
Compilator
Scor
15 Octombrie 2023, 22:03
c++14
100.0

Mesaj compilare

        main.cpp: In function ‘std::vector<int> max_angle(Point, int, int)’:
main.cpp:50:30: 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: In function ‘std::vector<Point> get_candidates(int, Point, Point)’:
main.cpp:88:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   88 |         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 = {1.0 * L, m * L + n}; check(p)) {
      |            ^~~~~
main.cpp:94:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   94 |         if(Point p = {(-L - n) / m, 1.0 * -L}; check(p)) {
      |            ^~~~~
main.cpp:97:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   97 |         if(Point p = {(L - n) / m, 1.0 * L}; check(p)) {
      |            ^~~~~
main.cpp: In function ‘int main()’:
main.cpp:157:48: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  157 |     for(int i = 0, t = 1; i >= 0; i += (t = (i == O.size() - 1 ? -t : t))) {
      |                                              ~~^~~~~~~~~~~~~~~
main.cpp:171:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  171 |     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
176KB
3
2
correct
0,001
176KB
3
3
correct
0,001
176KB
1
4
correct
0,001
176KB
1
5
correct
0,001
176KB
2
6
correct
0,0
176KB
2
7
correct
0,001
176KB
2
8
correct
0,001
176KB
3
9
correct
0,0
176KB
3
10
correct
0,001
176KB
3
11
correct
0,001
176KB
3
12
correct
0,001
176KB
4
13
correct
0,001
176KB
4
14
correct
0,001
176KB
4
15
correct
0,001
176KB
4
16
correct
0,001
176KB
5
17
correct
0,098
3.45MB
5
18
correct
0,1
3.45MB
5
19
correct
0,098
3.45MB
6
20
correct
0,058
4.07MB
6
21
correct
0,128
7.75MB
6
22
correct
0,278
15.11MB
6
23
correct
0,298
15.11MB

Subtask
Scor
Scor maxim
1
2,0
2
2
15,0
15
3
15,0
15
4
16,0
16
5
12,0
12
6
40,0
40