Borderou de evaluare (job #2947460)

Utilizator andu2006Alexandru Gheorghies andu2006 Data 26 noiembrie 2022 09:26:59
Problema Pm Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'bool bigInt::operator>=(bigInt)': main.cpp:114:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 114 | for(int i=0;i<data.size();i++){ | ~^~~~~~~~~~~~ main.cpp: In member function 'std::string bigInt::to_string()': main.cpp:143:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 143 | for(int i=0;i<data.size();i++){ | ~^~~~~~~~~~~~ main.cpp:147:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 147 | if(i+1<data.size()){ | ~~~^~~~~~~~~~~~ main.cpp: In member function 'bigInt bigInt::operator*(int)': main.cpp:159:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 159 | for(int i=1;i<p.size();i++){ | ~^~~~~~~~~ main.cpp:160:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 160 | p[i]=(i<data.size()?data[i]:0ll)*x+p[i-1]/base; | ~^~~~~~~~~~~~ main.cpp: In function 'std::ostream& operator<<(std::ostream&, bigInt)': main.cpp:177:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 177 | if(i+1<x.size()){ | ~~~^~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms315kbOK10
20ms184kbOK10
30ms184kbOK10
40ms184kbOK10
50ms184kbOK10
60ms184kbOK10
70ms184kbOK10
83ms315kbOK10
94ms315kbOK10
108ms315kbOK10
Punctaj total100

Ceva nu functioneaza?