Borderou de evaluare (job #3037248)

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

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: In function 'int replaceWithNearest(std::vector<int>&, int)': main.cpp:50:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 50 | while (j < bits.size() && bits[i] == bits[j]) | ~~^~~~~~~~~~~~~ main.cpp: In function 'int constructBits(std::vector<int>&, const std::vector<int>&, bool)': main.cpp:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for (int i = 0; i < targetLen.size(); ++i) | ~~^~~~~~~~~~~~~~~~~~ main.cpp:76:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 76 | for (; j < bits.size() && len != targetLen[i]; ++j, len++) | ~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK100
Punctaj total100

Ceva nu functioneaza?