Borderou de evaluare (job #3319154)

Utilizator kerimkochekovkerim kochekov kerimkochekov Data 30 octombrie 2025 19:12:48
Problema XCopy Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::vector<int> grayPermutation(int)': main.cpp:74:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 74 | for (int i = 0; i < grayCodes.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~ main.cpp:82:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 82 | for (int j = 0; j < grayCodes[0].size(); j++){ | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:85:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 85 | for (int i = 1; i < grayCodes.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~ main.cpp:98:27: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 98 | if (result.size() == M) | ~~~~~~~~~~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:108:5: error: 'assert' was not declared in this scope 108 | assert(N == 1); | ^~~~~~ main.cpp:5:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'? 4 | #include <bitset> +++ |+#include <cassert> 5 | Non zero exit status: 1

Ceva nu functioneaza?