Submisie


Utilizator
Problema
Data
Compilator
Scor
19 Octombrie 2023, 17:14
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:90:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   90 |         if(Point p = {1.0 * -L, m * (-L) + n}; check(p)) {
      |            ^~~~~
main.cpp:93:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   93 |         if(Point p = {1.0 * L, m * L + n}; check(p)) {
      |            ^~~~~
main.cpp:96:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   96 |         if(Point p = {(-L - n) / m, 1.0 * -L}; check(p)) {
      |            ^~~~~
main.cpp:99:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   99 |         if(Point p = {(L - n) / m, 1.0 * L}; check(p)) {
      |            ^~~~~
main.cpp: In function ‘int main()’:
main.cpp:161:48: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  161 |     for(int i = 0, t = 1; i >= 0; i += (t = (i == O.size() - 1 ? -t : t))) {
      |                                              ~~^~~~~~~~~~~~~~~
main.cpp:175:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  175 |     for(int i = 0; i < convex_hull.size() - 1; i++) {
      |                    ~~^~~~~~~~~~~~~~~~~~~~~~~~

    

Detalii evaluare

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,001
176KB
2
6
correct
0,001
176KB
2
7
correct
0,001
176KB
2
8
correct
0,0
176KB
3
9
correct
0,0
176KB
3
10
correct
0,0
176KB
3
11
correct
0,001
176KB
3
12
correct
0,001
176KB
4
13
correct
0,0
176KB
4
14
correct
0,001
176KB
4
15
correct
0,001
176KB
4
16
correct
0,0
176KB
5
17
correct
0,099
3.45MB
5
18
correct
0,1
3.48MB
5
19
correct
0,1
3.48MB
6
20
correct
0,055
4.08MB
6
21
correct
0,118
7.75MB
6
22
correct
0,26
15.11MB
6
23
correct
0,28
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