Borderou de evaluare (job #2201193)

Utilizator PredaBossPreda Andrei PredaBoss Data 3 mai 2018 20:56:16
Problema Base3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[16005]’ [-Wformat=] scanf("%s\n",&sir); ^ user.cpp:27:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<nr[i].size();j++) ~^~~~~~~~~~~~~ user.cpp:37:24: warning: narrowing conversion of ‘nr[0].std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >()’ from ‘std::__cxx11::basic_string<char>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] dq.push({nr[0].size(),nr[0]}); ~~~~~~~~~~^~ user.cpp:38:24: warning: narrowing conversion of ‘nr[1].std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >()’ from ‘std::__cxx11::basic_string<char>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] dq.push({nr[1].size(),nr[1]}); ~~~~~~~~~~^~ user.cpp:39:24: warning: narrowing conversion of ‘nr[2].std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >()’ from ‘std::__cxx11::basic_string<char>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] dq.push({nr[2].size(),nr[2]}); ~~~~~~~~~~^~ user.cpp:54:30: warning: narrowing conversion of ‘aux.std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >()’ from ‘std::__cxx11::basic_string<char>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] dq.push({aux.size(),aux}); ~~~~~~~~^~ user.cpp:57:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",mx); ^ user.cpp:17:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("base3.in","r",stdin); ^ user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("base3.out","w",stdout); ^ user.cpp:23:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n",&sir); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1360kbOK5
20ms1324kbOK5
30ms1328kbOK5
40ms1388kbOK5
5Depăşit52456kbTime limit exceeded.0
6Depăşit47876kbTime limit exceeded.0
7Depăşit59136kbTime limit exceeded.0
8172msDepăşitMemory limit exceeded.0
9Depăşit62536kbTime limit exceeded.0
10168msDepăşitMemory limit exceeded.0
11Depăşit65452kbTime limit exceeded.0
12172msDepăşitMemory limit exceeded.0
13168msDepăşitMemory limit exceeded.0
14168msDepăşitMemory limit exceeded.0
15172msDepăşitMemory limit exceeded.0
16168msDepăşitMemory limit exceeded.0
17168msDepăşitMemory limit exceeded.0
18168msDepăşitMemory limit exceeded.0
19172msDepăşitMemory limit exceeded.0
20Depăşit64884kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?