Borderou de evaluare (job #1260826)
Utilizator | Data | 11 noiembrie 2014 17:25:09 | |
---|---|---|---|
Problema | Distincte2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void updateAib(int, int)’:
user.cpp:10:19: error: ‘MAX_VALUE’ was not declared in this scope
for (; loc <= MAX_VALUE; loc += bit(loc))
^
user.cpp:11:9: error: ‘aibValues’ was not declared in this scope
aibValues[loc] += val;
^
user.cpp: In function ‘void queryAib(int)’:
user.cpp:17:20: error: ‘aibValues’ was not declared in this scope
solutie += aibValues[loc];
^
user.cpp:19:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return solutie;
^
user.cpp: In function ‘int main()’:
user.cpp:38:45: error: invalid operands of types ‘void’ and ‘void’ to binary ‘operator-’
cout << queryAib(y) - queryAib(x - 1) << "\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !