Borderou de evaluare (job #2989484)

Utilizator andrei_C1Andrei Chertes andrei_C1 Data 6 martie 2023 18:06:14
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:17: error: 'int index' redeclared as different kind of entity 16 | int n = Read(), index = 0; | ^~~~~ In file included from /usr/include/string.h:462, from /usr/include/c++/12.2.1/cstring:42, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:48, from main.cpp:1: /usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)' 61 | index (const char *__s, int __c) __THROW | ^~~~~ main.cpp: In function 'int main()': main.cpp:20:14: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator==' 20 | if(index == n) { | ~~~~~~^~~~ main.cpp:27:10: error: invalid types 'int [500001][<unresolved overloaded function type>]' for array subscript 27 | v[index] = Read(); | ^ main.cpp:28:14: error: no post-increment operator for type 28 | index++; | ^~ Non zero exit status: 1

Ceva nu functioneaza?