Borderou de evaluare (job #2307883)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 25 decembrie 2018 20:10:04
Problema Pav Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:22: error: 'int index' redeclared as different kind of symbol int pav[nmax][nmax], 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 divide(std::pair<int, int>, int, std::pair<int, int>)': main.cpp:39:10: error: no post-increment operator for type index++; ^~ main.cpp:50:75: error: cannot resolve overloaded function 'index' based on conversion to type 'int' pav[xMid][yMid] = pav[xMid + 1][yMid] = pav[xMid + 1][yMid + 1] = index; ^~~~~ main.cpp:59:71: error: cannot resolve overloaded function 'index' based on conversion to type 'int' pav[xMid][yMid] = pav[xMid + 1][yMid] = pav[xMid][yMid + 1] = index; ^~~~~ main.cpp:68:75: error: cannot resolve overloaded function 'index' based on conversion to type 'int' pav[xMid][yMid] = pav[xMid][yMid + 1] = pav[xMid + 1][yMid + 1] = index; ^~~~~ main.cpp:78:79: error: cannot resolve overloaded function 'index' based on conversion to type 'int' pav[xMid + 1][yMid + 1] = pav[xMid + 1][yMid] = pav[xMid][yMid + 1] = index; ^~~~~ main.cpp: In function 'int main()': main.cpp:101:13: error: overloaded function with no contextual type information index = 0; ^ Non zero exit status: 1

Ceva nu functioneaza?