Borderou de evaluare (job #1873274)

Utilizator dumitru123Patularu Mihai dumitru123 Data 8 februarie 2017 21:39:35
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:26:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (i = 1; i <= n; i++) scanf("%d", v + i); ^ user.cpp:43:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",maxim); ^ user.cpp:22:11: warning: unused variable ‘j’ [-Wunused-variable] int i, j, poz; ^ user.cpp:20: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:21: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:25:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:26:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; i++) scanf("%d", v + i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms320kbSubsir incorect!55
20ms356kbSubsir incorect!55
30ms292kbSubsir incorect!55
40ms296kbSubsir incorect!55
50ms292kbSubsir incorect!55
60ms312kbSubsir incorect!55
70ms328kbSubsir incorect!55
844ms2620kbSubsir incorect!515
936ms2612kbSubsir incorect!5
1044ms2612kbSubsir incorect!5
Punctaj total50

Ceva nu functioneaza?