Pagini recente » Borderou de evaluare (job #1402663) | Borderou de evaluare (job #349761) | Borderou de evaluare (job #2475896) | Borderou de evaluare (job #3135518) | Borderou de evaluare (job #2455217)
Borderou de evaluare (job #2455217)
Raport evaluator
Compilare:
main.cpp: In function 'void adauga_datorie(int, int)':
main.cpp:7:28: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
#define zeros(x) ((x^(x-1)&x))
~~~~~^~~~
// ============================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~
// ============================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void adauga_datorie (int zi, int datorie);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void plata (int zi, int suma);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int rest_plata (int zis);
~~~~~~~~~~~~~~~~~~~~~~~~~~
// ============================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int datorii [15002];
~~~~~~~~~~~~~~~~~~~~~~~
int n, m;
~~~~~~~~~~~~
// ============================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int main (void)
~~~~~~~~~~~~~~~~
{
~
// ------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 119ms | 524kb | Corect! | 20 |
2 | 115ms | 524kb | Corect! | 20 |
3 | 118ms | 524kb | Corect! | 20 |
4 | 118ms | 524kb | Corect! | 20 |
5 | 95ms | 524kb | Corect! | 20 |
Punctaj total | 100 |