Borderou de evaluare (job #2705380)

Utilizator stefantagaTaga Stefan stefantaga Data 12 februarie 2021 15:08:22
Problema Rubarba Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'Dreapta dreapta(Punct, Punct)': main.cpp:19:22: warning: narrowing conversion of '(p2.Punct::y - p1.Punct::y)' from 'long long int' to 'double' inside { } [-Wnarrowing] Dreapta d1 = {p2.y - p1.y, p1.x - p2.x, p1.y * p2.x - p1.x * p2.y}; ~~~~~^~~~~~ main.cpp:19:35: warning: narrowing conversion of '(p1.Punct::x - p2.Punct::x)' from 'long long int' to 'double' inside { } [-Wnarrowing] Dreapta d1 = {p2.y - p1.y, p1.x - p2.x, p1.y * p2.x - p1.x * p2.y}; ~~~~~^~~~~~ main.cpp:19:55: warning: narrowing conversion of '((p1.Punct::y * p2.Punct::x) - (p1.Punct::x * p2.Punct::y))' from 'long long int' to 'double' inside { } [-Wnarrowing] Dreapta d1 = {p2.y - p1.y, p1.x - p2.x, p1.y * p2.x - p1.x * p2.y}; ~~~~~~~~~~~~^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:69:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rubarba.in", "r", stdin); ^ main.cpp:70:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rubarba.out", "w", stdout); ^ main.cpp:73:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &n); ^ main.cpp:76:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &v[i].x, &v[i].y); ^ main.cpp:65:14: warning: 'ind3' may be used uninitialized in this function [-Wmaybe-uninitialized] return i + 1; ^ main.cpp:92:25: note: 'ind3' was declared here long long ind1, ind2, ind3; ^~~~ main.cpp:65:14: warning: 'ind2' may be used uninitialized in this function [-Wmaybe-uninitialized] return i + 1; ^ main.cpp:92:19: note: 'ind2' was declared here long long ind1, ind2, ind3; ^~~~ main.cpp:65:14: warning: 'ind1' may be used uninitialized in this function [-Wmaybe-uninitialized] return i + 1; ^ main.cpp:92:13: note: 'ind1' was declared here long long ind1, ind2, ind3; ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOk! You are better than Ionel!10
22ms131kbOk! You are better than Ionel!10
32ms131kbOk! You are better than Ionel!10
42ms131kbOk! You are better than Ionel!10
511ms262kbOk! You are better than Ionel!10
699ms1835kbOk! You are better than Ionel!10
7110ms1703kbOk! You are better than Ionel!10
82ms131kbOk! You are better than Ionel!10
9120ms1703kbOk! You are better than Ionel!10
102ms131kbOk! You are better than Ionel!10
Punctaj total100

Ceva nu functioneaza?