Pagini recente » Borderou de evaluare (job #1103063) | Borderou de evaluare (job #2090603) | Borderou de evaluare (job #2667831) | Borderou de evaluare (job #708865) | Borderou de evaluare (job #2871800)
Borderou de evaluare (job #2871800)
Raport evaluator
Compilare:
main.cpp: In member function 'void prefix_sum::build(std::vector<long long int>)':
main.cpp:21:667: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | int ceildiv(int one, int two) {if (one % two == 0) {return one / two;}else {return one / two + 1;}} int power(int n, int pow, int m) {if (pow == 0) return 1;if (pow % 2 == 0) {ll x = power(n, pow / 2, m);return (x * x) % m;}else return (power(n, pow - 1, m) * n) % m;} int gcd(int a, int b) { if (!b)return a; return gcd(b, a % b);} int factorial(int n, int mod) {if (n > 1)return (n * factorial(n - 1, mod)) % mod; else return 1;} int lcm(int a, int b) {return (a * b) / gcd(a, b);} vector<int> read(int n) {vector<int> a; for (int i = 0; i < n; i++) { int x; cin >> x; a.pb(x);} return a;}struct prefix_sum{vint pref;void build(vint a){pref.pb(0);for(int i = 0; i < a.size(); i++){pref.pb(pref.back()+a[i]);}}int get(int l, int r){return pref[r]-pref[l-1];}};//ssense
| ~~^~~~~~~~~~
main.cpp: In constructor 'Big::Big(std::string)':
main.cpp:57:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 0; i < s.size(); i += basen)
| ~~^~~~~~~~~~
main.cpp: In static member function 'static void Big::_sub_(std::vector<long long int>&, const std::vector<long long int>&)':
main.cpp:170:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
170 | for (int i = 0; i < b.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:172:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
172 | for (int i = 0; i + 1 < b.size() || a[i] < 0; ++i) {
| ~~~~~~^~~~~~~~~~
main.cpp: In static member function 'static void Big::_sub2_(std::vector<long long int>&, const std::vector<long long int>&)':
main.cpp:185:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
185 | for (int i = 0; i < a.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:186:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
186 | a[i] = (i < b.size() ? b[i] : 0) - a[i];
| ~~^~~~~~~~~~
main.cpp:187:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
187 | for (int i = 0; i + 1 < a.size(); ++i) {
| ~~~~~~^~~~~~~~~~
main.cpp: In static member function 'static void Big::_add_(std::vector<long long int>&, const std::vector<long long int>&)':
main.cpp:200:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
200 | for (int i = 0; i < b.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:202:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
202 | for (int i = 0; i + 1 < b.size() || a[i] >= base; ++i) {
| ~~~~~~^~~~~~~~~~
main.cpp: In static member function 'static std::vector<long long int> Big::_slow_mult_(const std::vector<long long int>&, const std::vector<long long int>&)':
main.cpp:235:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
235 | for (int i = 0; i < a.size(); ++i) {
| ~~^~~~~~~~~~
main.cpp:236:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
236 | for (int j = 0; j < b.size(); ++j) {
| ~~^~~~~~~~~~
main.cpp:243:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
243 | for (int i = 0; i + 1 < tmp.size(); ++i) {
| ~~~~~~^~~~~~~~~~~~
main.cpp: In static member function 'static std::pair<std::vector<long long int>, std::vector<long long int> > Big::_div_(std::vector<long long int>, std::vector<long long int>)':
main.cpp:289:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
289 | for (int j = 0; j < b.size(); ++j) {
| ~~^~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Ok! | 10 |
2 | 2ms | 184kb | Ok! | 10 |
3 | 6ms | 1630kb | Ok! | 10 |
4 | 11ms | 1957kb | Ok! | 10 |
5 | 35ms | 4079kb | Ok! | 10 |
6 | 2ms | 184kb | Ok! | 10 |
7 | 6ms | 1642kb | Ok! | 10 |
8 | 30ms | 3690kb | Ok! | 10 |
9 | 6ms | 1630kb | Ok! | 10 |
10 | 30ms | 3555kb | Ok! | 10 |
Punctaj total | 100 |