Pagini recente » Borderou de evaluare (job #1323442) | Borderou de evaluare (job #1851259) | Borderou de evaluare (job #900152) | Borderou de evaluare (job #2766537) | Borderou de evaluare (job #3180913)
Borderou de evaluare (job #3180913)
Raport evaluator
Compilare:
main.cpp: In function 'int reverse(int, int)':
main.cpp:10:56: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
10 | for (int i = 0; i < 32; i++) r |= (n & 1 << i) << 31 - (i << 1);
| ~~~^~~~~~~~~~
main.cpp:11:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
11 | return r >> x+1 & (1 << 31-x) - 1;
| ~^~
main.cpp:11:29: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
11 | return r >> x+1 & (1 << 31-x) - 1;
| ~~^~
main.cpp:11:33: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
11 | return r >> x+1 & (1 << 31-x) - 1;
| ~~~~~~~~~~~~^~~
main.cpp: In function 'std::vector<int> multiplyPolynomials(std::vector<int>, std::vector<int>)':
main.cpp:82:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
82 | for (int i = 0; i < n; i++) ca[i] *= cb[i];
| ~~^~~
main.cpp:86:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
86 | for (int i = 0; i < n; i++) r[i] = (int)round(ca[i].real());
| ~~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 430kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |