Borderou de evaluare (job #1720557)

Utilizator Mihai7Gheoace Mihai Mihai7 Data 22 iunie 2016 19:36:57
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 45

Raport evaluator

Compilare: user.cpp: In function ‘int getMaxSubsequence(int, int, int&, int&)’: user.cpp:5:26: warning: integer overflow in expression [-Woverflow] #define INFINIT ((1<<31)-1) ^ user.cpp:17:10: note: in expansion of macro ‘INFINIT’ int raw=INFINIT; ^ user.cpp:5:26: warning: integer overflow in expression [-Woverflow] #define INFINIT ((1<<31)-1) ^ user.cpp:18:19: note: in expansion of macro ‘INFINIT’ bestsuf=bestpre=-INFINIT; ^ user.cpp:17:6: warning: unused variable ‘raw’ [-Wunused-variable] int raw=INFINIT; ^ user.cpp: In function ‘int main()’: user.cpp:51:8: warning: unused variable ‘f’ [-Wunused-variable] FILE *f=freopen("ssm.in","r",stdin), ^ user.cpp:52:3: warning: unused variable ‘g’ [-Wunused-variable] *g=freopen("ssm.out","w",stdout); ^ user.cpp:54:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:56:20: 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
10ms268kbOK5
20ms268kbIncorect0
30ms272kbIncorect0
40ms264kbIncorect0
50ms292kbOK5
60ms304kbOK5
74ms352kbOK5
88ms388kbOK5
932ms660kbOK5
1072ms1048kbIncorect0
11140ms1828kbIncorect0
12216ms2608kbOK5
13284ms3396kbOK5
14352ms4172kbOK5
15Depăşit19768kbTime limit exceeded.0
16Depăşit21724kbTime limit exceeded.0
17Depăşit21724kbTime limit exceeded.0
18Depăşit23672kbTime limit exceeded.0
19Depăşit23672kbTime limit exceeded.0
20Depăşit23672kbTime limit exceeded.0
Punctaj total45

Ceva nu functioneaza?