Borderou de evaluare (job #2861140)
Raport evaluator
Compilare:
main.cpp: In member function 'void BigInt::normalize()':
main.cpp:13:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i = 0; i < v.size(); i ++) {
| ~~^~~~~~~~~~
main.cpp:19:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if(i == v.size() - 1)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'std::ofstream& operator<<(std::ofstream&, const BigInt&)':
main.cpp:56:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | if(i != value.v.size() - 1){
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'BigInt BigInt::operator+(const BigInt&)':
main.cpp:71:26: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
71 | for(int i = 0; i < std::max(v.size(), other.v.size()); i ++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:73:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | if(i < v.size())
| ~~^~~~~~~~~~
main.cpp:75:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | if(i < other.v.size())
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'BigInt BigInt::operator+(const int&)':
main.cpp:86:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | for(int i = 0; i < v.size(); i ++)
| ~~^~~~~~~~~~
main.cpp: In member function 'BigInt BigInt::operator-(const BigInt&)':
main.cpp:95:26: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
95 | for(int i = 0; i < std::max(v.size(), other.v.size()); i ++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:97:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
97 | if(i < v.size())
| ~~^~~~~~~~~~
main.cpp:99:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
99 | if(i < other.v.size())
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:171:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<BigInt>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
171 | for(int i = 1; i < v.size(); i ++) {
| ~~^~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 6ms | 565kb | OK | 10 |
5 | 2ms | 184kb | OK | 10 |
6 | 255ms | 21684kb | OK | 10 |
7 | 218ms | 2367kb | OK | 10 |
8 | 276ms | 9490kb | OK | 10 |
9 | 304ms | 21639kb | Time limit exceeded | 0 |
10 | 304ms | 21536kb | Time limit exceeded | 0 |
Punctaj total | 80 |