Borderou de evaluare (job #2937905)

Utilizator EdgarPaun Andrei Edgar Data 11 noiembrie 2022 12:31:58
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:5: error: 'int index' redeclared as different kind of entity 11 | int index; | ^~~~~ In file included from /usr/include/string.h:432, from /usr/include/c++/10/cstring:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48, from main.cpp:2: /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 'void DFS2(int, std::vector<int>&, std::vector<std::vector<int> >&)': main.cpp:26:13: error: invalid types 'int [10000][<unresolved overloaded function type>]' for array subscript 26 | arrayNoduri[index]=i; // i-ul primit ca parametru este chiar nodul pe care trebuie sa il afisam | ^ main.cpp:29:7: error: no post-increment operator for type 29 | index++; | ^~ main.cpp: In function 'void cautareCTC(std::vector<std::vector<int> >&, std::vector<std::vector<int> >&, int)': main.cpp:58:20: error: invalid types 'int [10000][<unresolved overloaded function type>]' for array subscript 58 | pozitiiDeNewline[index]=1; //unde va aparea valoarea 1 in acest array, acolo o sa dam newLine la afisare | ^ main.cpp: In function 'int main()': main.cpp:97:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' 97 | for(int i=0;i<index;i++) | ~^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?