Borderou de evaluare (job #2436589)

Utilizator marinaoprOprea Marina marinaopr Data 6 iulie 2019 13:43:12
Problema Perle Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:26:18: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] sir[n] = NULL; ^~~~ main.cpp:35:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(sir[i]=='2' and vf>=3 and stiva[vf]!='B' and stiva[vf-1]=='3' and stiva[vf-2]!='B' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and stiva[vf-3]=='1' or stiva[vf-3]=='A') ^~~~~~~~~~~~~~~~~~~~ main.cpp:16:26: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &T); ^ main.cpp:20:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ main.cpp:23:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!10
22ms131kbRaspuns gresit!0
32ms131kbRaspuns gresit!0
43ms131kbRaspuns gresit!0
52ms131kbRaspuns gresit!0
62ms131kbRaspuns gresit!0
72ms131kbRaspuns gresit!0
812ms131kbRaspuns gresit!0
913ms131kbRaspuns gresit!0
1021ms131kbRaspuns gresit!0
Punctaj total10

Ceva nu functioneaza?