Borderou de evaluare (job #1014170)
Utilizator | Data | 22 octombrie 2013 12:16:34 | |
---|---|---|---|
Problema | Intervale2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:24: warning: integer overflow in expression [-Woverflow]
const int oo = (1<<31)-1;
^
user.cpp: In function ‘int lsb(int)’:
user.cpp:47:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
return (bit ^ (bit - 1) & bit);
^
user.cpp: In function ‘int Query(int)’:
user.cpp:58:12: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
return Ans;
^
user.cpp: In function ‘int main()’:
user.cpp:73:34: error: ‘query’ was not declared in this scope
int Ans[ind[i]] = query(y) - query(x-1);
^
user.cpp:73:47: error: variable-sized object ‘Ans’ may not be initialized
int Ans[ind[i]] = query(y) - query(x-1);
^
user.cpp:73:13: warning: unused variable ‘Ans’ [-Wunused-variable]
int Ans[ind[i]] = query(y) - query(x-1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !