Borderou de evaluare (job #2485859)

Utilizator ana.pintiliciucAna Maria Pintiliciuc ana.pintiliciuc Data 2 noiembrie 2019 10:13:56
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:44:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d", &a[i]); ^ main.cpp:67:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n", p[vm]); ^ main.cpp:37: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:38: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:40:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:44:27: 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
14ms131kbSubsir incorect!55
25ms262kbSubsir incorect!55
32ms131kbLungime incorecta!00
43ms131kbLungime incorecta!00
53ms131kbLungime incorecta!00
65ms131kbLungime incorecta!00
75ms131kbLungime incorecta!00
894ms3108kbLungime incorecta!00
965ms1777kbSubsir incorect!5
10105ms3014kbLungime incorecta!0
Punctaj total10

Ceva nu functioneaza?