Borderou de evaluare (job #2759750)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 20 iunie 2021 11:54:30
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:8:85: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] freopen("cmlsc.in","r",stdin),freopen("cmlsc.out","w",stdout),scanf("%d%d",&n,&m); ^ main.cpp:8:85: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] main.cpp:10:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] scanf("%d",x+i); ^ main.cpp:12:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] scanf("%d",y+i); ^ main.cpp:18:21: warning: array subscript has type 'char' [-Wchar-subscripts] v[++v[0]]=x[n--],m--; ^ main.cpp:8:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in","r",stdin),freopen("cmlsc.out","w",stdout),scanf("%d%d",&n,&m); ^ main.cpp:8:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:8:86: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:10:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",x+i); ^ main.cpp:12:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",y+i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbRaspuns corect!10
22ms131kbRaspuns corect!10
32ms131kbRaspuns corect!10
43ms262kbRaspuns corect!10
53ms393kbRaspuns corect!10
66ms655kbLungime incorecta!0
710ms1179kbLungime incorecta!0
810ms1048kbLungime incorecta!0
911ms1179kbSubsir incorect!0
109ms917kbSubsir incorect!0
Punctaj total50

Ceva nu functioneaza?