Borderou de evaluare (job #2098137)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 2 ianuarie 2018 14:20:53
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:23: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:23: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:23: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
14ms7100kbOk!10
24ms7080kbOk!10
34ms7080kbOk!10
44ms6900kbOk!10
58ms9404kbOk!10
640ms16872kbOk!10
752ms19184kbOk!10
856ms19376kbOk!10
968ms19604kbOk!10
1068ms19416kbOk!10
Punctaj total100

Ceva nu functioneaza?