Borderou de evaluare (job #3155424)

Utilizator Antonio09Nastase Antonio Antonio09 Data 8 octombrie 2023 12:15:11
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

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
144ms54505kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?