Borderou de evaluare (job #1690361)
Utilizator | Data | 15 aprilie 2016 01:13:32 | |
---|---|---|---|
Problema | Tribute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main(int, const char**)’:
user.cpp:16:3: error: ‘vector’ was not declared in this scope
vector<int> xs(50001),ys(50001);
^
user.cpp:16:10: error: expected primary-expression before ‘int’
vector<int> xs(50001),ys(50001);
^
user.cpp:16:10: error: expected ‘;’ before ‘int’
user.cpp:21:5: error: ‘xs’ was not declared in this scope
xs[x]++;
^
user.cpp:22:5: error: ‘ys’ was not declared in this scope
ys[y]++;
^
user.cpp:25:22: error: ‘xs’ was not declared in this scope
for(int i = 0; i < xs.size(); ++i) {
^
user.cpp:29:22: error: ‘ys’ was not declared in this scope
for(int i = 0; i < ys.size(); ++i) {
^
user.cpp:34:18: error: ‘xs’ was not declared in this scope
int minDistX = xs.back()-xs[dx];
^
user.cpp:45:18: error: ‘ys’ was not declared in this scope
int minDistY = ys.back()-ys[dy];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !