Borderou de evaluare (job #3145404)

Utilizator ioanabaduIoana Badu ioanabadu Data 15 august 2023 13:38:19
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:67: error: 'int index' redeclared as different kind of entity 10 | int n, m, p, row1, col1, row2, col2, result, x = 2, y = 2, new_n, index; | ^~~~~ 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:3: /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 input()': main.cpp:47:17: error: no pre-increment operator for type 47 | X[++index] = row1; | ^~~~~ main.cpp:48:14: error: invalid types 'int [210][<unresolved overloaded function type>]' for array subscript 48 | Y[index] = col1; | ^ main.cpp:49:17: error: no pre-increment operator for type 49 | X[++index] = row2; | ^~~~~ main.cpp:50:14: error: invalid types 'int [210][<unresolved overloaded function type>]' for array subscript 50 | Y[index] = col2; | ^ main.cpp: In function 'void completing_arr()': main.cpp:72:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' 72 | for (int j=1; j<=index; j++) | ~^~~~~~~ main.cpp: In function 'int main()': main.cpp:152:16: error: invalid operands of types 'int [210]' and '<unresolved overloaded function type>' to binary 'operator+' 152 | sort(X+1, X+index+1); | ~^~~~~~ main.cpp:153:16: error: invalid operands of types 'int [210]' and '<unresolved overloaded function type>' to binary 'operator+' 153 | sort(Y+1, Y+index+1); | ~^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?