Pagini recente » Borderou de evaluare (job #3245373) | Borderou de evaluare (job #1660528) | Borderou de evaluare (job #2110559) | Borderou de evaluare (job #1760216) | Borderou de evaluare (job #2257318)
Borderou de evaluare (job #2257318)
Raport evaluator
Compilare:
user.cpp: In function ‘void ad(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,aib[100001],sol[100001],p,rad,M;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
struct element
~~~~~~~~~~~~~~~
{
~~
int val;
~~~~~~~~~
int ind;
~~~~~~~~~
}v[100001];
~~~~~~~~~~~~
bool cmp(struct element x,struct element y)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
return (x.val<y.val);
~~~~~~~~~~~~~~~~~~~~~~
}
~~
void ad(int x,int val)
~~~~~~~~~~~~~~~~~~~~~~~
{
~~
for(int i=x;i<=n;i+=zeros(i))
~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:20:25: note: in expansion of macro ‘zeros’
for(int i=x;i<=n;i+=zeros(i))
^~~~~
user.cpp: In function ‘int 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,aib[100001],sol[100001],p,rad,M;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
struct element
~~~~~~~~~~~~~~~
{
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 1352kb | Lungime incorecta! | 0 | 0 |
| 2 | 0ms | 1356kb | Subsir incorect! | 5 | 5 |
| 3 | 0ms | 1336kb | Lungime incorecta! | 0 | 0 |
| 4 | 0ms | 1340kb | Lungime incorecta! | 0 | 0 |
| 5 | 0ms | 1340kb | Lungime incorecta! | 0 | 0 |
| 6 | 0ms | 1348kb | Lungime incorecta! | 0 | 0 |
| 7 | 0ms | 1352kb | Lungime incorecta! | 0 | 0 |
| 8 | 64ms | 2496kb | Lungime incorecta! | 0 | 0 |
| 9 | Depăşit | 2248kb | Time limit exceeded. | 0 |
| 10 | 64ms | 2496kb | Lungime incorecta! | 0 |
| Punctaj total | 5 |