Pagini recente » Borderou de evaluare (job #3251906) | Borderou de evaluare (job #3067) | Borderou de evaluare (job #1590825) | Borderou de evaluare (job #925536) | Borderou de evaluare (job #3132148)
Borderou de evaluare (job #3132148)
Raport evaluator
Compilare:
main.cpp: In function 'bool operator==(const num&, const num&)':
main.cpp:126:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
126 | while (i < a.val.length()) {
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'num num::operator+(const num&) const':
main.cpp:164:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
164 | while (i < n.val.length()) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:171:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
171 | while (i < val.length()) {
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'num num::operator-(const num&) const':
main.cpp:203:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
203 | while (i < aux.val.length() && i < n.val.length()) {
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:203:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
203 | while (i < aux.val.length() && i < n.val.length()) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:218:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
218 | if (j + 1 == aux.val.length() && aux.val[j] == '0')
| ~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:224:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
224 | while (i < aux.val.length())
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'num num::operator*(const num&) const':
main.cpp:240:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
240 | for (int i = 0; i < val.length(); i++)
| ~~^~~~~~~~~~~~~~
main.cpp:241:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
241 | for (int j = 0; j < n.val.length(); j++)
| ~~^~~~~~~~~~~~~~~~
main.cpp:246:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
246 | for (int i = 0; i < a.size(); i++) {
| ~~^~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | Incorect | 0 |
5 | 0ms | 303kb | Incorect | 0 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 2ms | 303kb | Incorect | 0 |
9 | 5ms | 303kb | Incorect | 0 |
10 | 4ms | 303kb | Incorect | 0 |
Punctaj total | 0 |