Borderou de evaluare (job #2249375)

Utilizator TudorCaloianCaloian Tudor-Ioan TudorCaloian Data 29 septembrie 2018 17:47:23
Problema Biscuiti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:27: error: ‘int index’ redeclared as different kind of symbol int n, v[4*NMAX+69], val, index, ind[4*NMAX+69], add, ans, ad[4*NMAX+69]; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:48, from user.cpp:1: /usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’ index (const char *__s, int __c) __THROW ^~~~~ user.cpp: In function ‘void Update(int, int, int, int)’: user.cpp:31:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’ if(index <= mid) ~~~~~~^~~~~~ user.cpp: In function ‘void Querry(int, int, int)’: user.cpp:44:10: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ if(r < index) ~~^~~~~~~ user.cpp:53:10: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ if(l < index) ~~^~~~~~~ user.cpp:55:14: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ if(mid+1 < index) ~~~~~~^~~~~~~ user.cpp: In function ‘int main()’: user.cpp:67:17: error: overloaded function with no contextual type information index = i; ^ user.cpp:74:22: error: overloaded function with no contextual type information index = ind[1]; ^

Ceva nu functioneaza?