Borderou de evaluare (job #2062337)

Utilizator BeniLehelBeni Lehel BeniLehel Data 10 noiembrie 2017 11:38:58
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 35

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &t[i]); ^ user.cpp:26:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d\n", t[i], l[i]+1); ^ user.cpp:26:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:40:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ", t[min[1]]); ^ user.cpp:28:6: warning: variable ‘max’ set but not used [-Wunused-but-set-variable] int max = -1; ^ user.cpp:7:33: 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:8:35: 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:9:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms1048kbSubsir incorect!55
212ms1052kbSubsir incorect!55
30ms1048kbSubsir incorect!55
44ms1048kbSubsir incorect!55
54ms1052kbSubsir incorect!55
68ms1052kbSubsir incorect!55
716ms1048kbSubsir incorect!55
8Depăşit1024kbTime limit exceeded.00
9Depăşit1028kbTime limit exceeded.0
10Depăşit1028kbTime limit exceeded.0
Punctaj total35

Ceva nu functioneaza?