Borderou de evaluare (job #2581761)

Utilizator vlad082002Ciocoiu Vlad vlad082002 Data 15 martie 2020 19:03:41
Problema Zlego Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: expected initializer before 'long' long long h[250005], frum[250005], d[250005]; ^~~~ main.cpp: In function 'void citire()': main.cpp:11:12: error: 'n' was not declared in this scope fin >> n; ^ main.cpp:13:16: error: 'h' was not declared in this scope fin >> h[i]; ^ main.cpp:15:16: error: 'frum' was not declared in this scope fin >> frum[i]; ^~~~ main.cpp: In function 'void solve()': main.cpp:20:25: error: 'n' was not declared in this scope for(int i = 2; i <= n; i++) { ^ main.cpp:21:25: error: 'h' was not declared in this scope while(q != 0 && h[q+1] != h[i]) ^ main.cpp:22:17: error: 'd' was not declared in this scope q = d[q]; ^ main.cpp:23:12: error: 'h' was not declared in this scope if(h[q+1] == h[i]) q++; ^ main.cpp:24:9: error: 'd' was not declared in this scope d[i] = q; ^ main.cpp:26:17: error: 'n' was not declared in this scope for(int i = n; i >= 2; i--) ^ main.cpp:27:9: error: 'frum' was not declared in this scope frum[d[i]] += frum[i]; ^~~~ main.cpp:27:14: error: 'd' was not declared in this scope frum[d[i]] += frum[i]; ^ main.cpp:28:25: error: 'n' was not declared in this scope for(int i = 1; i <= n; i++) ^ main.cpp:29:17: error: 'frum' was not declared in this scope fout << frum[i] << '\n'; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?