Borderou de evaluare (job #2419297)
Utilizator | Data | 7 mai 2019 22:50:40 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:26: error: ISO C++ forbids declaration of 'pos_ith_node' with no type [-fpermissive]
inline pos_ith_node(int i){return i-s+1;}
^
main.cpp:22:26: error: ISO C++ forbids declaration of 'node_ith_pos' with no type [-fpermissive]
inline node_ith_pos(int a){return a+s-1;}
^
main.cpp:28:23: error: ISO C++ forbids declaration of 'update' with no type [-fpermissive]
update(int pos,int val){
^
main.cpp: In function 'int update(int, int)':
main.cpp:30:9: warning: unused variable 'aux' [-Wunused-variable]
int aux=node[i];
^~~
main.cpp:32:10: warning: unused variable 'ok' [-Wunused-variable]
bool ok=1;
^~
main.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !