Borderou de evaluare (job #2466868)

Utilizator alexradu04Radu Alexandru alexradu04 Data 3 octombrie 2019 09:33:49
Problema Bursa Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:5: error: 'int index' redeclared as different kind of symbol int index=1; ^~~~~ 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 decreezeeng()': main.cpp:9:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<=' for(;index<=n;++index) ~~~~~^~~ main.cpp:9:21: error: no pre-increment operator for type for(;index<=n;++index) ^~~~~ main.cpp:11:19: error: invalid types 'int [100005][<unresolved overloaded function type>]' for array subscript if(v[index]<v[index+1]) ^ main.cpp:11:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' if(v[index]<v[index+1]) ~~~~~^~ main.cpp: In function 'void increezeeng()': main.cpp:18:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<=' for(;index<=n;++index) ~~~~~^~~ main.cpp:18:21: error: no pre-increment operator for type for(;index<=n;++index) ^~~~~ main.cpp:20:19: error: invalid types 'int [100005][<unresolved overloaded function type>]' for array subscript if(v[index]>v[index+1]) ^ main.cpp:20:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' if(v[index]>v[index+1]) ~~~~~^~ main.cpp: In function 'int main()': main.cpp:38:11: error: overloaded function with no contextual type information index=1; ^ main.cpp:39:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<=' while(index<=n) ~~~~~^~~ main.cpp:42:22: error: invalid types 'int [100005][<unresolved overloaded function type>]' for array subscript cat=S/v[index]; ^ main.cpp:43:23: error: invalid types 'int [100005][<unresolved overloaded function type>]' for array subscript rest=S%v[index]; ^ main.cpp:44:14: error: no post-increment operator for type index++; Non zero exit status: 1

Ceva nu functioneaza?