Borderou de evaluare (job #3223716)

Utilizator PetraPetra Hedesiu Petra Data 13 aprilie 2024 14:45:35
Problema ChatGGG Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2024 - Concurs Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void solve()': main.cpp:46:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class std::vector<int>' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 46 | memset(v, 0, sizeof(v)); | ~~~~~~^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:64, from /usr/include/c++/12.2.1/queue:61, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: note: 'class std::vector<int>' declared here 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ main.cpp:64:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 64 | for (int j = 0; j < v[i].size(); j++) | ~~^~~~~~~~~~~~~ main.cpp:72:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for (int j = 0; j < v[i].size(); j++) | ~~^~~~~~~~~~~~~ main.cpp:60:9: warning: unused variable 'last' [-Wunused-variable] 60 | int last = -1; | ^~~~ main.cpp:84:9: warning: unused variable 'i' [-Wunused-variable] 84 | int i = 0; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1193ms12984kbWrong answer0
Punctaj total0

Ceva nu functioneaza?