Borderou de evaluare (job #1668204)

Utilizator assa98Andrei Stanciu assa98 Data 29 martie 2016 17:13:51
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:38:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i+1] = (a[i] - pi[c] * a[i] - pb[c] * a[i-1]) / pc[c]; ^ user.cpp:38:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i+1] = (a[i] - pi[c] * a[i] - pb[c] * a[i-1]) / pc[c]; ^ user.cpp:38:62: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[i+1] = (a[i] - pi[c] * a[i] - pb[c] * a[i-1]) / pc[c]; ^ user.cpp:40:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i+1] = (b[i] - pi[c] * (2 + b[i]) - pb[c] * (1 + b[i-1]) - pc[c]) / pc[c]; ^ user.cpp:40:51: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i+1] = (b[i] - pi[c] * (2 + b[i]) - pb[c] * (1 + b[i-1]) - pc[c]) / pc[c]; ^ user.cpp:40:74: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i+1] = (b[i] - pi[c] * (2 + b[i]) - pb[c] * (1 + b[i-1]) - pc[c]) / pc[c]; ^ user.cpp:40:83: warning: array subscript has type ‘char’ [-Wchar-subscripts] b[i+1] = (b[i] - pi[c] * (2 + b[i]) - pb[c] * (1 + b[i-1]) - pc[c]) / pc[c]; ^ user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sms.in", "r", stdin); ^ user.cpp:18:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sms.out", "w", stdout); ^ user.cpp:20:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &k); ^ user.cpp:22:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^ user.cpp:26:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf%lf", &pc[i], &pi[i], &pb[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms5340kbOk!10
20ms5416kbOk!10
30ms5344kbOk!10
40ms5444kbOk!10
54ms7780kbOk!10
628ms15372kbOk!10
740ms17584kbOk!10
840ms17632kbOk!10
948ms17940kbOk!10
1048ms17908kbOk!10
Punctaj total100

Ceva nu functioneaza?