Pagini recente » Borderou de evaluare (job #647731) | Borderou de evaluare (job #894846) | Borderou de evaluare (job #2774251) | Borderou de evaluare (job #2513938) | Borderou de evaluare (job #2826115)
Borderou de evaluare (job #2826115)
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++)
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
✓ | 1 | 2ms | 184kb | OK | 10 |
✓ | 2 | 2ms | 184kb | OK | 10 |
✓ | 3 | 2ms | 184kb | Incorect | 0 |
✓ | 4 | 2ms | 184kb | OK | 10 |
✓ | 5 | 2ms | 184kb | Incorect | 0 |
✓ | 6 | 6ms | 307kb | OK | 10 |
✓ | 7 | 6ms | 299kb | Incorect | 0 |
✓ | 8 | 40ms | 356kb | OK | 10 |
✓ | 9 | 35ms | 352kb | Incorect | 0 |
✓ | 10 | 204ms | 790kb | Time limit exceeded | 0 |
Punctaj total | 50 |