Borderou de evaluare (job #2890519)

Utilizator ssenseEsanu Mihai ssense Data 15 aprilie 2022 20:09:03
Problema Pietre Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void prefix_sum::build(std::vector<long long int>)': main.cpp:20: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] 20 | 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];}};//mesanu | ~~^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
119ms7585kbOkay!5
213ms8040kbOkay!5
313ms7897kbOkay!5
413ms7974kbOkay!5
510ms6922kbOkay!5
610ms6823kbOkay!5
79ms7188kbOkay!5
89ms8171kbOkay!5
99ms7122kbOkay!5
109ms6926kbOkay!5
1110ms7913kbOkay!5
1219ms8302kbOkay!5
1314ms8245kbOkay!5
147ms7966kbOkay!5
1517ms8253kbOkay!5
1610ms7843kbOkay!5
1710ms7737kbOkay!5
1810ms7266kbOkay!5
198ms6991kbOkay!5
2019ms7647kbOkay!5
Punctaj total100

Ceva nu functioneaza?