Borderou de evaluare (job #2252546)

Utilizator MKopchevMartin Kopchev MKopchev Data 2 octombrie 2018 20:01:28
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:53:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(n_<a.size()+b.size())n_=n_*2; ~~^~~~~~~~~~~~~~~~~~ user.cpp:59:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(a.size()>i)a_.push_back({a[i],0}); ~~~~~~~~^~ user.cpp:59: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:63:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(b.size()>i)b_.push_back({b[i],0}); ~~~~~~~~^~ user.cpp:63: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:97: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:98: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:100: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:101: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:108:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i",&q); ^ user.cpp:112: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
1212ms1948kbIncorect00
292ms1328kbOK5
3212ms1952kbIncorect0
4184ms1672kbIncorect0
5472ms6136kbIncorect00
6160ms2000kbIncorect00
7212ms2428kbIncorect0
8196ms1980kbIncorect0
9216ms2424kbIncorect0
10296ms1956kbIncorect0
11328ms2408kbIncorect00
12452ms3596kbIncorect0
13460ms3652kbIncorect0
14332ms3696kbIncorect0
15Depăşit10660kbTime limit exceeded.00
16Depăşit10244kbTime limit exceeded.0
17Depăşit10200kbTime limit exceeded.0
18Depăşit10200kbTime limit exceeded.0
19Depăşit10204kbTime limit exceeded.0
20Depăşit5952kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?