Pagini recente » Borderou de evaluare (job #735537) | Borderou de evaluare (job #1581354) | Borderou de evaluare (job #1708713) | Borderou de evaluare (job #1264002) | Borderou de evaluare (job #2257800)
Borderou de evaluare (job #2257800)
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) //adaugam val pe pozitia x, si inoim arborele indexat binar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
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 | 3396kb | Lungime incorecta! | 0 | 0 |
2 | 0ms | 3524kb | Corect! | 10 | 10 |
3 | 0ms | 3384kb | Corect! | 10 | 10 |
4 | 0ms | 3384kb | Corect! | 10 | 10 |
5 | 0ms | 3388kb | Corect! | 10 | 10 |
6 | 0ms | 3400kb | Corect! | 10 | 10 |
7 | 0ms | 3396kb | Corect! | 10 | 10 |
8 | 72ms | 4084kb | Corect! | 10 | 30 |
9 | 52ms | 4056kb | Corect! | 10 |
10 | 72ms | 4088kb | Corect! | 10 |
Punctaj total | 90 |