Pagini recente » Borderou de evaluare (job #1546694) | Borderou de evaluare (job #1499737) | Borderou de evaluare (job #1121518) | Borderou de evaluare (job #2745547) | Borderou de evaluare (job #2257708)
Borderou de evaluare (job #2257708)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:5:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x^(x-1)&x)
~~~~~^~~~
ifstream f("scmax.in");
~~~~~~~~~~~~~~~~~~~~~~~~
ofstream g("scmax.out");
~~~~~~~~~~~~~~~~~~~~~~~~~
int n,sol[100001],p,rad,M,val[100001],d[100001],Max;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
struct element
~~~~~~~~~~~~~~~
{
~~
int val;
~~~~~~~~~
int ind;
~~~~~~~~~
};
~~~
element v[100001],aib[100001];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bool cmp(struct element x,struct element y)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
return (x.val<y.val);
~~~~~~~~~~~~~~~~~~~~~~
}
~~
void update(int x,int val)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
d[x]+=val;
~~~~~~~~~~~
for(int i=x; i<=n; i+=zeros(i))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:22:27: note: in expansion of macro ‘zeros’
for(int i=x; i<=n; i+=zeros(i))
^~~~~
user.cpp: In function ‘element calcul(int)’:
user.cpp:5:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x^(x-1)&x)
~~~~~^~~~
ifstream f("scmax.in");
~~~~~~~~~~~~~~~~~~~~~~~~
ofstream g("scmax.out");
~~~~~~~~~~~~~~~~~~~~~~~~~
int n,sol[100001],p,rad,M,val[100001],d[100001],Max;
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 3384kb | Lungime incorecta! | 0 | 0 |
| 2 | 0ms | 3388kb | Subsir incorect! | 5 | 5 |
| 3 | 0ms | 3384kb | Subsir incorect! | 5 | 5 |
| 4 | 0ms | 3376kb | Subsir incorect! | 5 | 5 |
| 5 | 0ms | 3380kb | Subsir incorect! | 5 | 5 |
| 6 | 0ms | 3388kb | Subsir incorect! | 5 | 5 |
| 7 | 0ms | 3388kb | Subsir incorect! | 5 | 5 |
| 8 | 68ms | 3664kb | Subsir incorect! | 5 | 15 |
| 9 | 52ms | 3668kb | Subsir incorect! | 5 |
| 10 | 68ms | 3664kb | Subsir incorect! | 5 |
| Punctaj total | 45 |