Mai intai trebuie sa te autentifici.
Borderou de evaluare (job #2022239)
Utilizator | Data | 16 septembrie 2017 00:28:53 | |
---|---|---|---|
Problema | Zmeu2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 10 |
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(fi,"%d %d " ,&v[i].first,&v[i].second);
^
user.cpp:35:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:48:30: warning: narrowing conversion of ‘(n - ((int)v[1].std::pair<short int, short int>::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
q[0] = {1, v[1].first, n - v[1].second, 0, 0};
^
user.cpp:57:68: warning: narrowing conversion of ‘(((int)q[b].Data::cnt) - ((int)v[((int)it)].std::pair<short int, short int>::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
q[e] = {it, q[b].cost + v[it].first, q[b].cnt - v[it].second, q[b].nr + 1, q[b].nod};
^
user.cpp:57:92: warning: narrowing conversion of ‘(((int)q[b].Data::nr) + 1)’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
q[e] = {it, q[b].cost + v[it].first, q[b].cnt - v[it].second, q[b].nr + 1, q[b].nod};
^
user.cpp:33:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d %d " ,&n,&p,&k);
^
user.cpp:35:54: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d " ,&v[i].first,&v[i].second);
^
user.cpp:38:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d " ,&x,&y);
^
Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test |
---|---|---|---|---|
1 | 24ms | Depăşit | Memory limit exceeded. | 0 |
2 | 0ms | 456kb | OK | 10 |
3 | 48ms | Depăşit | Memory limit exceeded. | 0 |
4 | 48ms | Depăşit | Memory limit exceeded. | 0 |
5 | 20ms | Depăşit | Memory limit exceeded. | 0 |
6 | 8ms | Depăşit | Memory limit exceeded. | 0 |
7 | 20ms | Depăşit | Memory limit exceeded. | 0 |
8 | 0ms | 452kb | Incorect | 0 |
9 | 48ms | Depăşit | Memory limit exceeded. | 0 |
10 | 48ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 10 |
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !