Borderou de evaluare (job #2447234)
Utilizator | Data | 12 august 2019 15:52:15 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:19:1: error: 'vector' does not name a type
vector<int> v, d;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:25:5: error: 'd' was not declared in this scope
d.resize(n, 0);
^
main.cpp:26:5: error: 'v' was not declared in this scope
v.resize(n, 0);
^
main.cpp:34:9: error: 'vector' was not declared in this scope
d = vector<int>(n, 0);
^~~~~~
main.cpp:34:16: error: expected primary-expression before 'int'
d = vector<int>(n, 0);
^~~
main.cpp: In function 'void Search(int, int, int, int)':
main.cpp:46:9: error: 'v' was not declared in this scope
if (v[i] == val) {
^
main.cpp:48:9: error: 'd' was not declared in this scope
d[i] = desc;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !