Borderou de evaluare (job #1743243)

Utilizator IgnitionMihai Moraru Ignition Data 17 august 2016 20:23:44
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘uint64_t* {aka long long unsigned int*}’ [-Wformat=] scanf("%d", &N); ^ user.cpp:22:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type* {aka long long unsigned int*}’ [-Wformat=] scanf("%d", &a[i]); ^ user.cpp:47:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=] printf("%d\n", L); ^ user.cpp:61:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type {aka long long unsigned int}’ [-Wformat=] printf("%d ", res[i]); ^ user.cpp:62:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type {aka long long unsigned int}’ [-Wformat=] printf("%d\n", res[L-1]); ^ user.cpp:16:34: 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); ^ user.cpp:17:36: 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); ^ user.cpp:19:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:22:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms300kbCorect!1010
20ms340kbCorect!1010
30ms272kbCorect!1010
40ms280kbCorect!1010
50ms284kbCorect!1010
60ms304kbCorect!1010
70ms312kbCorect!1010
852ms2376kbCorect!1030
940ms2376kbCorect!10
1052ms2376kbCorect!10
Punctaj total100

Ceva nu functioneaza?