Submisie


Utilizator
Problema
Data
Compilator
Scor
25 Iulie 2023, 12:00
c++32
100.0

Mesaj compilare

        main.cpp: In function ‘void print_vector(std::vector<int>&)’:
main.cpp:183:13: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘unsigned int’} [-Wformat=]
  183 |   printf("%lu\n", v.size());
      |           ~~^     ~~~~~~~~
      |             |           |
      |             |           std::vector<int>::size_type {aka unsigned int}
      |             long unsigned int
      |           %u
main.cpp: In function ‘void fuck_it_we_ball(int&, int&)’:
main.cpp:352:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=]
  352 |     fprintf(stderr, "Best: %d; Current: %d\n", perf, out.performance);
      |                                         ~^           ~~~~~~~~~~~~~~~
      |                                          |               |
      |                                          int             long long int
      |                                         %lld
main.cpp: In function ‘int main()’:
main.cpp:405:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  405 |   scanf("%d%d", &n, &k);
      |   ~~~~~^~~~~~~~~~~~~~~~
main.cpp:408:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  408 |     scanf("%d", &v[i]);
      |     ~~~~~^~~~~~~~~~~~~

    

Detalii evaluare

Subtask
Test
Mesaj evaluator
Timp execuție
Memorie
1, 4
1
correct
0,001
176KB
1, 4
2
correct
0,001
176KB
1, 4
3
correct
0,001
176KB
1, 4
4
correct
0,001
176KB
2, 4
5
correct
0,024
512KB
2, 4
6
correct
0,013
512KB
2, 4
7
correct
0,027
507KB
2, 4
8
correct
0,001
176KB
3, 4
9
correct
0,552
4.46MB
3, 4
10
correct
0,219
2.38MB
3, 4
11
correct
0,444
4.6MB
3, 4
12
correct
0,112
1.22MB
4
13
correct
0,898
4.21MB
4
14
correct
0,817
4.21MB
4
15
correct
0,713
4.34MB
4
16
correct
0,865
4.21MB
4
17
correct
0,887
4.21MB
4
18
correct
0,662
4.34MB
4
19
correct
0,0
176KB
4
20
correct
0,001
176KB

Subtask
Scor
Scor maxim
1
11,0
11
2
23,0
23
3
42,0
42
4
24,0
24