Borderou de evaluare (job #2413908)

Utilizator PatrickCplusplusPatrick Kristian Ondreovici PatrickCplusplus Data 23 aprilie 2019 19:56:56
Problema Cabana2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:16: error: 'int index' redeclared as different kind of symbol int n, xx, yy, index; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48, from main.cpp:1: /usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)' index (const char *__s, int __c) __THROW ^~~~~ main.cpp: In function 'void FindPoint(int, int, int&, int&, bool&)': main.cpp:25:14: error: overloaded function with no contextual type information index = -1; ^ main.cpp:42:25: error: overloaded function with no contextual type information index = mid; ^~~ main.cpp:51:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' if (v2[index - 1].y == y) ~~~~~~^~~ main.cpp:54:23: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' x2 = v2[index - 1].x; ~~~~~~^~~ main.cpp:55:23: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' y2 = v2[index - 1].y; ~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?