Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
1 August 2023, 11:20 |
c++14 |
- |
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);
| ~~~~~^~~~~~~~~~~~~~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,07 |
17.96MB |
11,0 |
|
2
|
correct |
0,002 |
9.36MB |
11,0 |
|
3
|
correct |
0,002 |
9.61MB |
11,0 |
|
4
|
correct |
0,004 |
9.48MB |
11,0 |
|
5
|
correct |
0,004 |
9.61MB |
11,0 |
|
6
|
correct |
0,007 |
10.63MB |
11,0 |
|
7
|
correct |
0,01 |
10.65MB |
11,0 |
|
8
|
correct |
0,024 |
13.9MB |
11,0 |
|
9
|
correct |
0,037 |
13.89MB |
12,0 |