Borderou de evaluare (job #1147007)
Utilizator | Data | 19 martie 2014 15:10:21 | |
---|---|---|---|
Problema | Kami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void update(int, long long int)’:
user.cpp:22:34: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’
aib[poz]+=x, poz+=lsb(poz);
^
user.cpp:17:5: error: in passing argument 1 of ‘int lsb(long long int&)’
int lsb(ll &x) { return (x&-x); }
^
user.cpp: In function ‘long long int query(int)’:
user.cpp:29:36: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’
ans+=aib[poz], poz-=lsb(poz);
^
user.cpp:17:5: error: in passing argument 1 of ‘int lsb(long long int&)’
int lsb(ll &x) { return (x&-x); }
^
user.cpp: In function ‘int main()’:
user.cpp:36:11: error: ‘rad’ was not declared in this scope
f>>N; rad=sqrt(N);
^
user.cpp:38:12: error: ‘niv’ was not declared in this scope
f>>niv[i], update(i, niv[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !