Pagini recente » Borderou de evaluare (job #595470) | Borderou de evaluare (job #2850004) | Borderou de evaluare (job #100794) | Borderou de evaluare (job #891) | Borderou de evaluare (job #3226847)
Borderou de evaluare (job #3226847)
Raport evaluator
Compilare:
main.cpp: In function 'void getComponents(int, int, int)':
main.cpp:67:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | for(int i = 0; i < v[id].size(); i ++){
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'long long int componentDfs(int)':
main.cpp:100:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for(int i = 0; i < components.size(); i ++)
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:108:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
108 | for(int i = 0; i < nodeComponents[id].size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:119:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for(int j = 0; j < components[comp].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:190:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
190 | for(int j = 0; j < nodeComponents[i].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:196:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
196 | for(int i = 0; i < components.size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:198:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
198 | for(int j = 0; j < components[i].size(); j ++){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:211:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
211 | for(int i = 0; i < components.size(); i ++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:212:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
212 | for(int j = 0; j < components[i].size(); j ++)
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void popComponent(int, int)':
main.cpp:55:19: warning: 'lastEdge.EdgeFull::cost' may be used uninitialized [-Wmaybe-uninitialized]
55 | punte[compid] = lastEdge.cost;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:37:12: note: 'lastEdge.EdgeFull::cost' was declared here
37 | EdgeFull lastEdge;
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/char_traits.h:46,
from /usr/include/c++/12.2.1/ios:40,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
In function 'constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {Edge}]',
inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = Edge; _Args = {Edge}; _Tp = Edge]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:518:21,
inlined from 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Edge}; _Tp = Edge; _Alloc = std::allocator<Edge>]' at /usr/include/c++/12.2.1/bits/vector.tcc:117:30,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = Edge; _Alloc = std::allocator<Edge>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:1294:21,
inlined from 'int main()' at main.cpp:169:19:
/usr/include/c++/12.2.1/bits/stl_construct.h:97:73: warning: 'c' may be used uninitialized [-Wmaybe-uninitialized]
97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); }
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 303kb | Corect | 10 |
2 | 1ms | 303kb | Corect | 10 |
3 | 1ms | 303kb | Corect | 10 |
4 | 1ms | 303kb | Corect | 10 |
5 | 1ms | 557kb | Corect | 10 |
6 | 2ms | 1081kb | Corect | 10 |
7 | 4ms | 1867kb | Corect | 10 |
8 | 54ms | 23367kb | Componente biconexe: numar gresit | 0 |
9 | 24ms | 12578kb | Corect | 10 |
10 | 29ms | 16654kb | Corect | 10 |
Punctaj total | 90 |