Borderou de evaluare (job #2710069)

Utilizator Alex_tz307Lorintz Alexandru Alex_tz307 Data 21 februarie 2021 19:17:13
Problema Gheizere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:23:20: error: 'int index' redeclared as different kind of symbol int N, M, P, w, e, index; ^~~~~ 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 Lee()': main.cpp:38:53: error: overloaded function with no contextual type information for(int time = 2; time < 1024; ++time, index ^= 1) { ^ main.cpp:41:25: error: invalid types 'bool [2][252][252][<unresolved overloaded function type>]' for array subscript dp[index][i][j] = false; ^ main.cpp:44:24: error: cannot resolve overloaded function 'index' based on conversion to type 'bool' if(dp[!index][i][j]) ^~~~~ main.cpp:44:24: error: in argument to unary ! main.cpp:48:37: error: invalid types 'bool [2][252][252][<unresolved overloaded function type>]' for array subscript if(!dp[index][iv][jv]) ^ main.cpp:50:41: error: invalid types 'bool [2][252][252][<unresolved overloaded function type>]' for array subscript dp[index][iv][jv] = true; ^ Non zero exit status: 1

Ceva nu functioneaza?