Pagini recente » Borderou de evaluare (job #669070) | Borderou de evaluare (job #3161150) | Borderou de evaluare (job #2873675) | Borderou de evaluare (job #777363) | Borderou de evaluare (job #3155424)
Borderou de evaluare (job #3155424)
Raport evaluator
Compilare:
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:67:5:
main.cpp:27:22: warning: 'nod.Nod::vf' may be used uninitialized [-Wmaybe-uninitialized]
27 | delete this->vf;
| ~~~~~~^~
main.cpp: In function 'int BFS(unsigned int, unsigned int)':
main.cpp:42:13: note: 'nod' declared here
42 | Nod nod = q.front();
| ^~~
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:67:5:
main.cpp:27:22: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
27 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:42:27:
main.cpp:22:36: note: returned from 'void* operator new [](std::size_t)'
22 | this->vf = new char[nod.dim];
| ^
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:65:9:
main.cpp:27:22: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
27 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:50:24:
main.cpp:22:36: note: returned from 'void* operator new [](std::size_t)'
22 | this->vf = new char[nod.dim];
| ^
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:66:17:
main.cpp:27:22: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
27 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:42:27:
main.cpp:22:36: note: returned from 'void* operator new [](std::size_t)'
22 | this->vf = new char[nod.dim];
| ^
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:69:1:
main.cpp:27:22: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
27 | delete this->vf;
| ^~
In constructor 'Nod::Nod(unsigned int, unsigned int)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:33:18:
main.cpp:15:30: note: returned from 'void* operator new [](std::size_t)'
15 | this->vf = new char[p];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 44ms | 54505kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |