Borderou de evaluare (job #2826115)

Utilizator NicolaalexandraNicola Alexandra Mihaela Nicolaalexandra Data 5 ianuarie 2022 11:09:38
Problema Tigri Status done
Runda Algoritmiada 2022 Runda 1 Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In member function 'bigint& bigint::operator+=(const bigint&)': main.cpp:40:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | for (int i = 0, carry = 0; i < other.z.size() || carry; ++i) { | ~~^~~~~~~~~~~~~~~~ main.cpp:41:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | if (i == z.size()) | ~~^~~~~~~~~~~ main.cpp:43:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 43 | z[i] += carry + (i < other.z.size() ? other.z[i] : 0); | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'bigint& bigint::operator-=(const bigint&)': main.cpp:60:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 60 | if (sign == 1 && *this >= other || sign == -1 && *this <= other) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp:61:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 61 | for (int i = 0, carry = 0; i < other.z.size() || carry; ++i) { | ~~^~~~~~~~~~~~~~~~ main.cpp:62:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 62 | z[i] -= carry + (i < other.z.size() ? other.z[i] : 0); | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'bigint& bigint::operator*=(int)': main.cpp:87:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 87 | for (int i = 0, carry = 0; i < z.size() || carry; ++i) { | ~~^~~~~~~~~~ main.cpp:88:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 88 | if (i == z.size()) | ~~^~~~~~~~~~~ main.cpp: In member function 'void bigint::read(const string&)': main.cpp:285:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 285 | while (pos < s.size() && (s[pos] == '-' || s[pos] == '+')) { | ~~~~^~~~~~~~~~ main.cpp: In static member function 'static std::vector<int> bigint::convert_base(const std::vector<int>&, int, int)': main.cpp:318:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 318 | for (int i = 1; i < p.size(); i++) | ~~^~~~~~~~~~ main.cpp: In static member function 'static bigint::vll bigint::karatsubaMultiply(const vll&, const vll&)': main.cpp:365:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 365 | for (int i = 0; i < a1b1.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:367:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 367 | for (int i = 0; i < a2b2.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:370:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 370 | for (int i = 0; i < r.size(); i++) | ~~^~~~~~~~~~ main.cpp:372:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 372 | for (int i = 0; i < a1b1.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:374:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 374 | for (int i = 0; i < a2b2.size(); i++)
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbIncorect0
42ms184kbOK10
52ms184kbIncorect0
66ms307kbOK10
76ms299kbIncorect0
840ms356kbOK10
935ms352kbIncorect0
10204ms790kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?