Borderou de evaluare (job #2098131)

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

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:21:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[0] = p1[v[1]] / p1[v[1]]; ^ user.cpp:21:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[0] = p1[v[1]] / p1[v[1]]; ^ user.cpp:23:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i]] + p3[v[i]] * a[i - 1]) / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:23:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i]] + p3[v[i]] * a[i - 1]) / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:23:71: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i]] + p3[v[i]] * a[i - 1]) / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:23:82: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i] = (1.0 + p2[v[i]] + p3[v[i]] * a[i - 1]) / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:24:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i] = p1[v[i]] / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:24:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i] = p1[v[i]] / (1.0 - p2[v[i]] - p3[v[i]] * b[i - 1]); ^ user.cpp:24:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i] = p1[v[i]] / (1.0 - p2[v[i]] - p3[v[i]] * b[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
14ms7096kbWrong answer...0
24ms7000kbWrong answer...0
34ms6716kbWrong answer...0
44ms6900kbWrong answer...0
58ms9416kbWrong answer...0
644ms16712kbWrong answer...0
764ms19168kbWrong answer...0
864ms19184kbOk!10
980ms19436kbOk!10
1080ms19276kbOk!10
Punctaj total30

Ceva nu functioneaza?