Borderou de evaluare (job #2098149)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 2 ianuarie 2018 14:36:49
Problema Sms Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[0] = (1.0 + p2[v[1]]) / p1[v[1]]; ^ user.cpp:20:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[0] = (1.0 + p2[v[1]]) / p1[v[1]]; ^ user.cpp:22:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i + 1]] + p3[v[i + 1]] * a[i - 1]) / p1[v[i + 1]]; ^ user.cpp:22:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i + 1]] + p3[v[i + 1]] * a[i - 1]) / p1[v[i + 1]]; ^ user.cpp:22:76: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i + 1]] + p3[v[i + 1]] * a[i - 1]) / p1[v[i + 1]]; ^ user.cpp:13:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d", &n, &k); ^ user.cpp:18:73: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%lf%lf%lf", &p1['a' + i], &p2['a' + i], &p3['a' + i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms4876kbOk!10
24ms4924kbOk!10
34ms5000kbOk!10
44ms4876kbOk!10
54ms5308kbOk!10
632ms11108kbOk!10
748ms11452kbOk!10
848ms11496kbOk!10
960ms11752kbOk!10
1060ms11508kbOk!10
Punctaj total100

Ceva nu functioneaza?