Pagini recente » Borderou de evaluare (job #2605643) | Borderou de evaluare (job #2128994) | Borderou de evaluare (job #969710) | Borderou de evaluare (job #2884980) | Borderou de evaluare (job #2257705)
Borderou de evaluare (job #2257705)
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:21:25: 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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
struct element
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 3384kb | Lungime incorecta! | 0 | 0 |
| 2 | 0ms | 3392kb | Subsir incorect! | 5 | 5 |
| 3 | 0ms | 3380kb | Subsir incorect! | 5 | 5 |
| 4 | 0ms | 3380kb | Subsir incorect! | 5 | 5 |
| 5 | 0ms | 3376kb | Subsir incorect! | 5 | 5 |
| 6 | 0ms | 3388kb | Subsir incorect! | 5 | 5 |
| 7 | 0ms | 3392kb | Subsir incorect! | 5 | 5 |
| 8 | 68ms | 3664kb | Subsir incorect! | 5 | 15 |
| 9 | 52ms | 3668kb | Subsir incorect! | 5 |
| 10 | 68ms | 3668kb | Subsir incorect! | 5 |
| Punctaj total | 45 |