Pagini recente » Borderou de evaluare (job #563207) | Borderou de evaluare (job #922572) | Borderou de evaluare (job #541115) | Borderou de evaluare (job #1153380) | Borderou de evaluare (job #3173156)
Borderou de evaluare (job #3173156)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:59: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
25 | dist[i] = (coord[i][1] - coord[0][1]) ^ 2 + (coord[i][0] - coord[0][0]) ^ 2;
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:39:90: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
39 | dist[k] = min(dist[k], (coord[k][1] - coord[loc][1]) ^ 2 + (coord[k][0] - coord[loc][0]) ^ 2);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>]',
inlined from 'int main()' at main.cpp:43:7:
/usr/include/c++/12.2.1/ostream:221:25: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized]
221 | { return _M_insert(__f); }
| ~~~~~~~~~^~~~~
main.cpp: In function 'int main()':
main.cpp:8:16: note: 'total' was declared here
8 | double total,dist_mincost;
| ^~~~~
main.cpp:35:28: warning: 'loc' may be used uninitialized [-Wmaybe-uninitialized]
35 | vizitat[loc] = 1;
| ^
main.cpp:7:21: note: 'loc' was declared here
7 | int n, x, y,loc;
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 2ms | 303kb | Incorect | 0 |
5 | 3ms | 303kb | Incorect | 0 |
6 | 7ms | 303kb | Incorect | 0 |
7 | 8ms | 303kb | Incorect | 0 |
8 | 19ms | 561kb | Incorect | 0 |
9 | 29ms | 557kb | Incorect | 0 |
10 | 29ms | 557kb | Incorect | 0 |
Punctaj total | 0 |