Borderou de evaluare (job #2252617)

Utilizator MKopchevMartin Kopchev MKopchev Data 2 octombrie 2018 20:51:37
Problema Chimichangas Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘std::vector<int> mult(std::vector<int>, std::vector<int>)’: user.cpp:68:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(n_<a.size()+b.size())n_=n_*2; ~~^~~~~~~~~~~~~~~~~~ user.cpp:72:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(a.size()>i)a_.push_back({a[i],0}); ~~~~~~~~^~ user.cpp:72:44: warning: narrowing conversion of ‘a.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 ‘double’ inside { } [-Wnarrowing] if(a.size()>i)a_.push_back({a[i],0}); ^ user.cpp:76:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(b.size()>i)b_.push_back({b[i],0}); ~~~~~~~~^~ user.cpp:76:44: warning: narrowing conversion of ‘b.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 ‘double’ inside { } [-Wnarrowing] if(b.size()>i)b_.push_back({b[i],0}); ^ user.cpp: In function ‘int main()’: user.cpp:114:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("chimichangas.in","r",stdin); ^ user.cpp:115:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("chimichangas.out","w",stdout); ^ user.cpp:117:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i%i",&n,&k); ^ user.cpp:118:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=1;i<=n;i++){scanf("%i",&cal[i]);there[cal[i]]++;c=max(c,cal[i]);} ^ user.cpp:124:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&q); ^ user.cpp:128:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&w); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1296ms1944kbIncorect00
2104ms1456kbOK5
3296ms1948kbIncorect0
4208ms1668kbOK5
5Depăşit10780kbTime limit exceeded.00
6380ms2456kbOK50
7668ms3540kbOK5
8408ms2444kbIncorect0
9668ms3544kbOK5
10336ms1956kbIncorect0
11788ms3584kbIncorect00
121412ms5824kbIncorect0
131440ms6012kbIncorect0
141284ms6072kbOK5
15Depăşit10384kbTime limit exceeded.00
16Depăşit6044kbTime limit exceeded.0
17Depăşit5772kbTime limit exceeded.0
18Depăşit5804kbTime limit exceeded.0
19Depăşit10188kbTime limit exceeded.0
20Depăşit5748kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?