Borderou de evaluare (job #3155426)

Utilizator Antonio09Nastase Antonio Antonio09 Data 8 octombrie 2023 12:20:58
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: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
144ms54697kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?