Borderou de evaluare (job #1223245)

Utilizator cojocarugabiReality cojocarugabi Data 25 august 2014 17:50:14
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 15

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:5:19: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] # define infi (1LL<<31-1) ^ user.cpp:19:14: note: in expansion of macro ‘infi’ V[i]=infi; ^ user.cpp:29:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=] for (int i=1;i<=MAX;++i) printf("%d ",(v+i)); ^ user.cpp:11: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:12: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:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:15:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i=1;i<=n;++i) scanf("%d",S+i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms280kbSubsir incorect!55
20ms296kbSubsir incorect!55
30ms268kbLungime incorecta!00
40ms272kbLungime incorecta!00
50ms272kbSubsir incorect!55
60ms284kbLungime incorecta!00
70ms288kbLungime incorecta!00
868ms1440kbLungime incorecta!00
964ms1828kbLungime incorecta!0
1040ms1428kbSubsir incorect!5
Punctaj total15

Ceva nu functioneaza?