Borderou de evaluare (job #2252620)

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

Raport evaluator

Compilare: user.cpp: In function ‘std::vector<int> mult(std::vector<int>, std::vector<int>)’: user.cpp:71:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(n_<a.size()+b.size())n_=n_*2; ~~^~~~~~~~~~~~~~~~~~ user.cpp:75:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(a.size()>i)a_.push_back({a[i],0}); ~~~~~~~~^~ user.cpp:75: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:79:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(b.size()>i)b_.push_back({b[i],0}); ~~~~~~~~^~ user.cpp:79: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:119: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:120: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:122: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:123: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:129:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&q); ^ user.cpp:133: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
1232ms1952kbOK520
292ms1332kbOK5
3228ms1944kbOK5
4172ms1548kbOK5
5616ms6140kbOK55
6176ms1996kbOK525
7248ms2428kbOK5
8236ms1980kbOK5
9248ms2424kbOK5
10272ms1952kbOK5
11496ms2392kbOK520
12660ms3564kbOK5
13668ms3644kbOK5
14400ms3700kbOK5
15Depăşit10652kbTime limit exceeded.00
16Depăşit6044kbTime limit exceeded.0
17Depăşit5772kbTime limit exceeded.0
18Depăşit8756kbTime limit exceeded.0
19Depăşit10192kbTime limit exceeded.0
20Depăşit10136kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?