Borderou de evaluare (job #2483096)

Utilizator OvidRata Ovidiu Ovid Data 29 octombrie 2019 11:59:08
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 main()': main.cpp:33:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] scanf("%d %d", &m, &n); ^ main.cpp:33:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] main.cpp:36: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; s[i][0]="";} ^ main.cpp:38: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; s[0][i]="";} ^ 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:33: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:36: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; s[i][0]="";} ^ main.cpp:38: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; s[0][i]="";} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbLungime incorecta!0
23ms131kbLungime incorecta!0
33ms131kbLungime incorecta!0
42ms131kbLungime incorecta!0
52ms131kbLungime incorecta!0
63ms131kbLungime incorecta!0
74ms225kbLungime incorecta!0
82ms131kbLungime incorecta!0
93ms131kbLungime incorecta!0
102ms131kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?