Pagini recente » Borderou de evaluare (job #2048235) | Borderou de evaluare (job #71929) | Borderou de evaluare (job #1997492) | Borderou de evaluare (job #1404098) | Borderou de evaluare (job #3173152)
Borderou de evaluare (job #3173152)
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<<(float) [with _CharT = char; _Traits = std::char_traits<char>]',
inlined from 'int main()' at main.cpp:43:7:
/usr/include/c++/12.2.1/ostream:228:25: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized]
228 | return _M_insert(static_cast<double>(__f));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:15: note: 'total' was declared here
8 | float total;
| ^~~~~
main.cpp:35:28: warning: 'loc' may be used uninitialized [-Wmaybe-uninitialized]
35 | vizitat[loc] = 1;
| ^
main.cpp:7:34: note: 'loc' was declared here
7 | int n, x, y,dist_mincost,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 | 1ms | 303kb | Incorect | 0 |
5 | 3ms | 303kb | Incorect | 0 |
6 | 6ms | 303kb | Incorect | 0 |
7 | 8ms | 303kb | Incorect | 0 |
8 | 14ms | 557kb | Incorect | 0 |
9 | 24ms | 557kb | Incorect | 0 |
10 | 24ms | 557kb | Incorect | 0 |
Punctaj total | 0 |