Borderou de evaluare (job #2147199)

Utilizator horiainfoTurcuman Horia horiainfo Data 28 februarie 2018 16:06:42
Problema Luffpar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘Node combine(Node, Node)’: user.cpp:15:5: error: could not convert ‘{std::min<int>(l.Node::minL, (l.Node::sum + r.Node::minL)), std::max<int>(l.Node::maxL, (l.Node::sum + r.Node::maxL)), (l.Node::sum + r.Node::sum)}’ from ‘<brace-enclosed initializer list>’ to ‘Node’ }; ^ user.cpp: In function ‘void build()’: user.cpp:23:23: error: no match for ‘operator=’ (operand types are ‘Node’ and ‘<brace-enclosed initializer list>’) t[i + grandN] = {p, p, p}; ^ user.cpp:6:8: note: candidate: Node& Node::operator=(const Node&) struct Node{int minL = 0, maxL = 0, sum = 0, lazy = 0;} t[4 * N]; ^ user.cpp:6:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Node&’ user.cpp:6:8: note: candidate: Node& Node::operator=(Node&&) user.cpp:6:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Node&&’ user.cpp: In function ‘void inverse(int)’: user.cpp:32:13: error: no match for ‘operator=’ (operand types are ‘Node’ and ‘<brace-enclosed initializer list>’) t[node] = {-t[node].maxL, -t[node].minL, -t[node].sum}; ^ user.cpp:6:8: note: candidate: Node& Node::operator=(const Node&) struct Node{int minL = 0, maxL = 0, sum = 0, lazy = 0;} t[4 * N]; ^ user.cpp:6:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Node&’ user.cpp:6:8: note: candidate: Node& Node::operator=(Node&&) user.cpp:6:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Node&&’ user.cpp: In function ‘int main()’: user.cpp:62:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[200002]’ [-Wformat=] scanf("%d%s%d", &n, &s, &m); ^ user.cpp:59:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("luffpar.in", "r", stdin); ^ user.cpp:60:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("luffpar.out", "w", stdout); ^ user.cpp:62:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%s%d", &n, &s, &m); ^ user.cpp:67:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &t, &l, &r); ^

Ceva nu functioneaza?