Borderou de evaluare (job #2483031)

Utilizator OvidRata Ovidiu Ovid Data 29 octombrie 2019 10:31:34
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int lcs()': main.cpp:9:9: warning: unused variable 'd' [-Wunused-variable] int d; ^ main.cpp: In function 'int main()': main.cpp:32:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] scanf("%d %d", &m, &n); ^ main.cpp:32:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] main.cpp:33:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'unsigned char*' [-Wformat=] for(i=1;i<=m;i++){ scanf("%d", &x[i]);c[i][0]=0;} ^ main.cpp:35:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'unsigned char*' [-Wformat=] for(i=1;i<=n;i++){ scanf("%d", &y[i]); c[0][i]=0;} ^ main.cpp:28:32: 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); ^ main.cpp:29:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.out", "w", stdout); ^ main.cpp:32:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &m, &n); ^ main.cpp:33:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=m;i++){ scanf("%d", &x[i]);c[i][0]=0;} ^ main.cpp:35:38: 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", &y[i]); c[0][i]=0;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbLungime incorecta!0
22ms131kbLungime incorecta!0
32ms131kbLungime incorecta!0
42ms131kbLungime incorecta!0
52ms131kbLungime incorecta!0
62ms131kbLungime incorecta!0
72ms131kbLungime incorecta!0
83ms131kbLungime incorecta!0
93ms131kbLungime incorecta!0
103ms131kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?