Borderou de evaluare (job #2118126)
Utilizator | Data | 30 ianuarie 2018 08:49:50 | |
---|---|---|---|
Problema | Qxy | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:10: error: ‘n’ was not declared in this scope
f >> n;
^
user.cpp:31:10: error: ‘i’ was not declared in this scope
for (i = 1; i <= n; i++) {
^
user.cpp:33:20: error: no match for ‘operator=’ (operand types are ‘qry’ and ‘<brace-enclosed initializer list>’)
even[++ne] = {0, 0, 0, 0, 0, i};
^
user.cpp:13:8: note: candidate: qry& qry::operator=(const qry&)
struct qry {
^
user.cpp:13:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const qry&’
user.cpp:13:8: note: candidate: qry& qry::operator=(qry&&)
user.cpp:13:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘qry&&’
user.cpp:35:10: error: ‘t’ was not declared in this scope
f >> t;
^
user.cpp:37:14: error: ‘i’ was not declared in this scope
f >> i >> j >> x >> y;
^
user.cpp:37:19: error: ‘j’ was not declared in this scope
f >> i >> j >> x >> y;
^
user.cpp:37:24: error: ‘x’ was not declared in this scope
f >> i >> j >> x >> y;
^
user.cpp:37:29: error: ‘y’ was not declared in this scope
f >> i >> j >> x >> y;
^
user.cpp:38:20: error: no match for ‘operator=’ (operand types are ‘qry’ and ‘<brace-enclosed initializer list>’)
even[++ne] = {w, 1, i, j, x, y};
^
user.cpp:13:8: note: candidate: qry& qry::operator=(const qry&)
struct qry {
^
user.cpp:13:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const qry&’
user.cpp:13:8: note: candidate: qry& qry::operator=(qry&&)
user.cpp:13:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘qry&&’
user.cpp:40:10: error: ‘i’ was not declared in this scope
for (i = 1; i <= n)
^
user.cpp:40:23: error: expected ‘;’ before ‘)’ token
for (i = 1; i <= n)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !