Borderou de evaluare (job #3293250)

Utilizator Manolea_Teodor_StefanManolea Teodor Stefan Manolea_Teodor_Stefan Data 11 aprilie 2025 02:26:27
Problema Concurs Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:25:5: error: 'int index' redeclared as different kind of entity 25 | int index = 1; | ^~~~~ 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 'void exec(int, int)': main.cpp:27:10: error: invalid types 'std::pair<int, int> [200002][<unresolved overloaded function type>]' for array subscript 27 | depth[index] = {_depth,x}; | ^ main.cpp:28:20: error: no post-increment operator for type 28 | last[x] = index++; | ^~ main.cpp: In function 'int main()': main.cpp:71:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' 71 | for (int i = 1; i < index; i++) | ~~^~~~~~~ main.cpp:73:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' 73 | for (int p = 1; (1 << p) < index; p++) { | ~~~~~~~~~^~~~~~~ main.cpp:74:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' 74 | for (int i = 1; i < index; i++) { | ~~^~~~~~~ main.cpp:76:30: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' 76 | int j = min(index-1, i + len); | ~~~~~^~ Non zero exit status: 1

Ceva nu functioneaza?