Borderou de evaluare (job #3201257)

Utilizator PowerPlantNICOLAS ANDREI MANASIA PowerPlant Data 7 februarie 2024 12:00:01
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long int get_end_Hash1(int, int)': main.cpp:23:14: error: 'Hash1' was not declared in this scope 23 | int H = (Hash1[i][s[i].size() - 1] - Hash1[i][s[i].size() - 1 - Poz - 1]) * inv_mod(put(27, s[i].size() - Poz - 1, mod1), mod1); | ^~~~~ main.cpp:23:81: error: 'inv_mod' was not declared in this scope 23 | int H = (Hash1[i][s[i].size() - 1] - Hash1[i][s[i].size() - 1 - Poz - 1]) * inv_mod(put(27, s[i].size() - Poz - 1, mod1), mod1); | ^~~~~~~ main.cpp:23:9: warning: unused variable 'H' [-Wunused-variable] 23 | int H = (Hash1[i][s[i].size() - 1] - Hash1[i][s[i].size() - 1 - Poz - 1]) * inv_mod(put(27, s[i].size() - Poz - 1, mod1), mod1); | ^ main.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type] 24 | } | ^ main.cpp: In function 'int main()': main.cpp:28:12: error: 'n' was not declared in this scope; did you mean 'yn'? 28 | fin >> n; | ^ | yn main.cpp:32:9: error: 'Hash1' was not declared in this scope 32 | Hash1[i][0] = s[0]; | ^~~~~ main.cpp:33:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for(int j = 1; j < s[i].size(); ++j) | ~~^~~~~~~~~~~~~ main.cpp:48:47: error: 'Hash1' was not declared in this scope 48 | if(poz + (1 << p) <= L && Hash1[j][poz + (1 << p)] == get_end_Hash1(i, poz + (1 << p))) | ^~~~~ main.cpp:54:32: error: 'Hash1' was not declared in this scope 54 | if(poz <= L && Hash1[j][poz] == get_end_Hash1(i, poz)) | ^~~~~ main.cpp:56:17: error: 'C' was not declared in this scope 56 | C[i][j] = rez; | ^ Non zero exit status: 1

Ceva nu functioneaza?