Borderou de evaluare (job #2201190)

Utilizator PredaBossPreda Andrei PredaBoss Data 3 mai 2018 20:52:33
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
30ms1324kbOK5
40ms1388kbOK5
5Depăşit55252kbTime limit exceeded.0
6Depăşit48812kbTime limit exceeded.0
7Depăşit57780kbTime limit exceeded.0
8168msDepăşitMemory limit exceeded.0
9Depăşit62396kbTime limit exceeded.0
10Depăşit65564kbTime limit exceeded.0
11Depăşit64760kbTime limit exceeded.0
12168msDepăşitMemory limit exceeded.0
13168msDepăşitMemory limit exceeded.0
14168msDepăşitMemory limit exceeded.0
15Depăşit64332kbTime limit exceeded.0
16168msDepăşitMemory limit exceeded.0
17Depăşit65844kbTime limit exceeded.0
18168msDepăşitMemory limit exceeded.0
19168msDepăşitMemory limit exceeded.0
20164msDepăşitMemory limit exceeded.0
Punctaj total20

Ceva nu functioneaza?