Borderou de evaluare (job #2741774)
Utilizator | Data | 18 aprilie 2021 22:06:25 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'vector' does not name a type
vector <int> a[1001];
^~~~~~
main.cpp: In function 'int cautare(int)':
main.cpp:13:25: error: 'a' was not declared in this scope
for (int j = 0; j < a[key].size(); j++) {
^
main.cpp: In function 'int inserare(int)':
main.cpp:25:9: error: 'a' was not declared in this scope
a[key].push_back(number);
^
main.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int stergere(int)':
main.cpp:32:25: error: 'a' was not declared in this scope
for (int j = 0; j < a[key].size(); j++) {
^
main.cpp:40:13: error: a function-definition is not allowed here before '{' token
int main () {
^
main.cpp:54:1: error: expected '}' at end of input
}
^
main.cpp:54: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 !