Borderou de evaluare (job #1997394)
Utilizator | Data | 4 iulie 2017 11:20:15 | |
---|---|---|---|
Problema | Kinetic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:42:5: error: ‘time’ does not name a type
time t;
^
user.cpp: In member function ‘bool query::operator<(const query&) const’:
user.cpp:47:13: error: ‘t’ was not declared in this scope
if (t == other.t)
^
user.cpp:47:24: error: ‘const struct query’ has no member named ‘t’
if (t == other.t)
^
user.cpp:55:17: error: ‘t’ was not declared in this scope
return (t < other.t);
^
user.cpp:55:27: error: ‘const struct query’ has no member named ‘t’
return (t < other.t);
^
user.cpp: In function ‘int main()’:
user.cpp:71:48: error: no match for ‘operator=’ (operand types are ‘query’ and ‘<brace-enclosed initializer list>’)
X[++nr] = i, Y[nr] = j, events[nr] = {{mobile[j].x0 - mobile[i].x0, mobile[i].v - mobile[j].v}, nr};
^
user.cpp:71:48: note: candidates are:
user.cpp:40:8: note: query& query::operator=(const query&)
struct query
^
user.cpp:40:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const query&’
user.cpp:40:8: note: query& query::operator=(query&&)
user.cpp:40:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘query&&’
user.cpp:74:77: error: ‘struct query’ has no member named ‘t’
events[++nr].where = -i, scanf ("%d %d %d", &st[i], &dr[i], &events[nr].t.sus), events[nr].t.jos = 1;
^
user.cpp:74:96: error: ‘struct query’ has no member named ‘t’
events[++nr].where = -i, scanf ("%d %d %d", &st[i], &dr[i], &events[nr].t.sus), events[nr].t.jos = 1;
^
user.cpp:82:49: error: ‘struct query’ has no member named ‘t’
int P = -events[i].where, T = events[i].t.sus, p, u, lr = N + 1, rg = 0;
^
user.cpp:83:9: error: ‘p’ was not declared in this scope
p = 1, u = N;
^
user.cpp:83:16: error: ‘u’ was not declared in this scope
p = 1, u = N;
^
user.cpp:87:47: error: ‘lr’ was not declared in this scope
if (mobile[mij].val (T) >= st[P]) lr = mij, u = mij - 1;
^
user.cpp:94:47: error: ‘rg’ was not declared in this scope
if (mobile[mij].val (T) <= dr[P]) rg = mij, p = mij + 1;
^
user.cpp:97:13: error: ‘lr’ was not declared in this scope
if (lr <= rg) ans[P] = rg - lr + 1;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !