Submisie


Utilizator
Problema
Data
Compilator
Scor
31 Iulie 2023, 21:59
c++17
-

Mesaj compilare

        main.cpp: In function ‘void newChain(int)’:
main.cpp:74:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   74 |     for(int j=0; j<v[i].size(); ++j)
      |                  ~^~~~~~~~~~~~
main.cpp:104:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  104 |     for(int j=0; j<v[x].size(); ++j)
      |                  ~^~~~~~~~~~~~
main.cpp: In function ‘int solveChain()’:
main.cpp:162:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  162 |         for(int i=0; i<v[x].size(); ++i)
      |                      ~^~~~~~~~~~~~
main.cpp: In function ‘int solve()’:
main.cpp:204:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  204 |         for(int j=0; j<v[i].size(); ++j)
      |                      ~^~~~~~~~~~~~
main.cpp:225:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  225 |         for(int j=0; j<v[nod].size(); ++j)
      |                      ~^~~~~~~~~~~~~~
main.cpp: In function ‘int main()’:
main.cpp:268:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  268 |     freopen("metrou.in", "r", stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:269:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  269 |     freopen("metrou.out", "w", stdout);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:271:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  271 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
main.cpp:273:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  273 |         scanf("%d", &p[i]);
      |         ~~~~~^~~~~~~~~~~~~
main.cpp:277:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  277 |         scanf("%d%d", &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~

    

Detalii evaluare

Test
Mesaj evaluator
Timp execuție
Memorie
Scor
1
correct
0,07
17.94MB
11,0
2
correct
0,003
9.01MB
11,0
3
correct
0,004
9.35MB
11,0
4
correct
0,004
9.48MB
11,0
5
correct
0,004
9.35MB
11,0
6
correct
0,008
10.74MB
11,0
7
correct
0,007
10.73MB
11,0
8
correct
0,023
13.95MB
11,0
9
correct
0,039
13.88MB
12,0