Borderou de evaluare (job #2540071)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 6 februarie 2020 18:35:37
Problema ABPerm Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: expected ',' or ';' before 'const' const int DIM = 1e5 + 7; ^~~~~ main.cpp:13:9: error: 'DIM' was not declared in this scope int inv[DIM]; ^~~ main.cpp:14:10: error: 'DIM' was not declared in this scope int fact[DIM]; ^~~ main.cpp:16:8: error: 'DIM' was not declared in this scope int v1[DIM]; ^~~ main.cpp:17:8: error: 'DIM' was not declared in this scope int v2[DIM]; ^~~ main.cpp:19:10: error: 'DIM' was not declared in this scope int pos1[DIM]; ^~~ main.cpp:20:10: error: 'DIM' was not declared in this scope int pos2[DIM]; ^~~ main.cpp:22:11: error: 'DIM' was not declared in this scope int pow10[DIM]; ^~~ main.cpp:24:11: error: 'DIM' was not declared in this scope int hash1[DIM]; ^~~ main.cpp:25:11: error: 'DIM' was not declared in this scope int hash2[DIM]; ^~~ main.cpp: In function 'long long int comb(long long int, long long int)': main.cpp:29:11: error: 'fact' was not declared in this scope return ((fact[n] * inv[k]) % mod * inv[n - k]) % mod; ^~~~ main.cpp:29:21: error: 'inv' was not declared in this scope return ((fact[n] * inv[k]) % mod * inv[n - k]) % mod; ^~~ main.cpp: In function 'void solve1(long long int)': main.cpp:59:18: error: 'pos2' was not declared in this scope low = min(low, pos2[v1[i]]); ^~~~ main.cpp:59:23: error: 'v1' was not declared in this scope low = min(low, pos2[v1[i]]); ^~ main.cpp: In function 'bool match(long long int, long long int, long long int, long long int)': main.cpp:75:13: error: 'hash1' was not declared in this scope int cod1 = hash1[r] - hash1[l - 1]; ^~~~~ main.cpp:76:13: error: 'hash2' was not declared in this scope int cod2 = hash2[y] - hash2[x - 1]; Non zero exit status: 1

Ceva nu functioneaza?