Pagini recente » Borderou de evaluare (job #1590049) | Borderou de evaluare (job #659740) | Borderou de evaluare (job #2678404) | Borderou de evaluare (job #397640) | Borderou de evaluare (job #3155426)
Borderou de evaluare (job #3155426)
Raport evaluator
Compilare:
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:68:5:
main.cpp:27:18: warning: 'nod.Nod::vf' may be used uninitialized [-Wmaybe-uninitialized]
27 | if(this->vf)
| ~~~~~~^~
main.cpp: In function 'int BFS(unsigned int, unsigned int)':
main.cpp:43:13: note: 'nod' declared here
43 | Nod nod = q.front();
| ^~~
In destructor 'Nod::~Nod()',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:68:5:
main.cpp:28:26: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
28 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:43: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:66:9:
main.cpp:28:26: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
28 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:51: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:67:17:
main.cpp:28:26: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
28 | delete this->vf;
| ^~
In copy constructor 'Nod::Nod(const Nod&)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:43: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:70:1:
main.cpp:28:26: warning: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
28 | delete this->vf;
| ^~
In constructor 'Nod::Nod(unsigned int, unsigned int)',
inlined from 'int BFS(unsigned int, unsigned int)' at main.cpp:34: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 | 54697kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |