Borderou de evaluare (job #3037238)

Utilizator zagonimathiasZagoni Matyas Elemer zagonimathias Data 25 martie 2023 13:58:28
Problema Reordonarea șirurilor de biți Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2023 - Concurs Compilator cpp-64
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int Starter(const std::vector<int>&, const std::vector<int>&)': main.cpp:10:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 10 | for (int i = 0; i < bits.size(); ++i) | ~~^~~~~~~~~~~~~ main.cpp:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 21 | for (int i = 0; i < span.size(); ++i) | ~~^~~~~~~~~~~~~ main.cpp:30:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 30 | if (acc0 = cnt[0]) | ~~~~~^~~~~~~~ main.cpp: In function 'int replaceWithNearest(std::vector<int>&, int)': main.cpp:48:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | while (j < bits.size() && bits[i] == bits[j]) | ~~^~~~~~~~~~~~~ main.cpp: In function 'int constructBits(std::vector<int>&, const std::vector<int>&, bool)': main.cpp:65:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 65 | for (int i = 0; i < targetLen.size(); ++i) | ~~^~~~~~~~~~~~~~~~~~ main.cpp:68:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for (; j < bits.size() && len != targetLen[i]; ++j, len++) | ~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms409kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?