Borderou de evaluare (job #2684851)

Utilizator SoulSnorterPetre Robert Cristian SoulSnorter Data 15 decembrie 2020 00:11:56
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:68:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &v[i]); ^ main.cpp:73:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < subsir.size(); i++) ~~^~~~~~~~~~~~~~~ main.cpp:75:32: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=] printf("%d ", subsir[i]); ^ main.cpp:61:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scmax.in", "r", stdin); ^ main.cpp:62:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scmax.out", "w", stdout); ^ main.cpp:64:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:68:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbSubsir incorect!55
210ms262kbCorect!1010
32ms131kbLungime incorecta!00
43ms131kbLungime incorecta!00
53ms131kbLungime incorecta!00
63ms131kbLungime incorecta!00
73ms131kbLungime incorecta!00
849ms917kbLungime incorecta!00
944ms917kbLungime incorecta!0
1047ms917kbLungime incorecta!0
Punctaj total15

Ceva nu functioneaza?