Borderou de evaluare (job #2403203)
Utilizator | Data | 11 aprilie 2019 12:52:48 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int findd(int, int)':
main.cpp:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<v[hashval].elem.size();++i)
~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int adauga(int)':
main.cpp:37:28: error: 'struct hashuri' has no member named 'push_back'
if(pos!=-1) v[pos].push_back(nr);
^~~~~~~~~
main.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void del(int)':
main.cpp:44:15: error: 'hashval' was not declared in this scope
v[hashval].elem.erase(v[hashval].elem.begin()+i);
^~~~~~~
main.cpp:44:59: error: 'i' was not declared in this scope
v[hashval].elem.erase(v[hashval].elem.begin()+i);
^
main.cpp: In function 'bool vef(int*)':
main.cpp:48:21: error: 'hashval' was not declared in this scope
for(int i=0;i<v[hashval].elem.size();i++){
^~~~~~~
main.cpp:49:18: error: 'nr' was not declared in this scope
if(v[i]==nr) return true;
^~
main.cpp: In function 'int main()':
main.cpp:62:9: error: cannot convert 'hashuri*' to 'int*' for argument '1' to 'bool vef(int*)'
if(vef(v)==true) fout<<"1"<<"\n";
^
main.cpp:60:5: warning: unused variable 'n' [-Wunused-variable]
int n;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !