Borderou de evaluare (job #1223240)

Utilizator cojocarugabiReality cojocarugabi Data 25 august 2014 17:40:35
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:4:19: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] # define infi (1LL<<31-1) ^ user.cpp:18:14: note: in expansion of macro ‘infi’ V[i]=infi; ^ user.cpp:4:19: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] # define infi (1LL<<31-1) ^ user.cpp:26:14: note: in expansion of macro ‘infi’ v[MAX+1]=infi; ^ user.cpp:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s[i]==j && S[i]<v[j+1]) ^ user.cpp:30:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘unsigned int*’ [-Wformat=] for (int i=1;i<=MAX;++i) printf("%d ",(v+i)); ^ user.cpp:10: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:11: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:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:14: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
10ms304kbSubsir incorect!55
20ms332kbSubsir incorect!55
30ms292kbLungime incorecta!00
40ms304kbLungime incorecta!00
50ms304kbSubsir incorect!55
60ms316kbLungime incorecta!00
70ms316kbLungime incorecta!00
864ms1468kbLungime incorecta!00
964ms1472kbLungime incorecta!0
1040ms1460kbSubsir incorect!5
Punctaj total15

Ceva nu functioneaza?