Pagini recente » Borderou de evaluare (job #3254370) | Borderou de evaluare (job #2929224) | Borderou de evaluare (job #3162369) | Borderou de evaluare (job #582165) | Borderou de evaluare (job #1847570)
Borderou de evaluare (job #1847570)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:53:21: warning: narrowing conversion of ‘x’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({x,1});
^
user.cpp:66:67: warning: narrowing conversion of ‘muchii[((int)abc.pereche::nod)].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))’ from ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({muchii[abc.nod][i],abc.distanta+1});
^
user.cpp:66:64: warning: narrowing conversion of ‘(((int)abc.pereche::distanta) + 1)’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({muchii[abc.nod][i],abc.distanta+1});
^
user.cpp:74:25: warning: narrowing conversion of ‘y’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({y,y_val});
^
user.cpp:74:25: warning: narrowing conversion of ‘y_val’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
user.cpp:88:68: warning: narrowing conversion of ‘muchii[((int)abc.pereche::nod)].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))’ from ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({muchii[abc.nod][i],pass[abc.nod]-1});
^
user.cpp:88:65: warning: narrowing conversion of ‘(((int)pass[((int)abc.pereche::nod)]) + -1)’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
coada.push({muchii[abc.nod][i],pass[abc.nod]-1});
^
user.cpp:83:17: warning: unused variable ‘nod1’ [-Wunused-variable]
int nod1=muchii[abc.nod][i];
^
user.cpp:30:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("graf.in","r",stdin);
^
user.cpp:31:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("graf.out","w",stdout);
^
user.cpp:33:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n",&n,&m,&x,&y);
^
user.cpp:38:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccEvyoos.o: In function `main':
user.cpp:(.text.startup+0xa8): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 384kb | OK | 10 |
2 | 0ms | 392kb | OK | 10 |
3 | 0ms | 392kb | OK | 10 |
4 | 0ms | 392kb | OK | 10 |
5 | 0ms | 392kb | OK | 10 |
6 | 8ms | 536kb | OK | 10 |
7 | 0ms | 480kb | OK | 10 |
8 | 8ms | 628kb | OK | 10 |
9 | 8ms | 624kb | OK | 10 |
10 | 8ms | 540kb | OK | 10 |
Punctaj total | 100 |