Borderou de evaluare (job #2602043)

Utilizator Dobricean_IoanDobricean Ionut Dobricean_Ioan Data 15 aprilie 2020 18:06:13
Problema Valea Regilor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'vector' does not name a type vector <pair <int, int>> intervst[100010]; ^~~~~~ main.cpp:4:1: error: 'vector' does not name a type vector <pair <int, int>> intervdr[100010]; ^~~~~~ main.cpp:11:1: error: 'pair' does not name a type pair <int, int> stiva[100010]; ^~~~ main.cpp: In function 'int cbin(int, int)': main.cpp:19:30: error: 'stiva' was not declared in this scope if (p + q <= nmax && stiva[p + q].first > val) ^~~~~ main.cpp: In function 'void divide(int, int)': main.cpp:34:28: error: 'stiva' was not declared in this scope while (cnt >= 2 && stiva[cnt].first > stiva[cnt - 1].first && stiva[cnt].first > v[i]) ^~~~~ main.cpp:36:9: error: 'stiva' was not declared in this scope stiva[++cnt] = { v[i], i }; ^~~~~ main.cpp:45:28: error: 'stiva' was not declared in this scope while (cnt >= 2 && stiva[cnt].first > stiva[cnt - 1].first && stiva[cnt].first > v[i]) ^~~~~ main.cpp:47:9: error: 'stiva' was not declared in this scope stiva[++cnt] = { v[i], i }; ^~~~~ main.cpp:57:28: error: 'stiva' was not declared in this scope while (cnt >= 2 && stiva[cnt].first > stiva[cnt - 1].first && stiva[cnt].first > v[i]) ^~~~~ main.cpp:59:9: error: 'stiva' was not declared in this scope stiva[++cnt] = { v[i], i }; ^~~~~ main.cpp:65:23: error: 'intervst' was not declared in this scope for (auto j : intervst[i]) { ^~~~~~~~ main.cpp:78:28: error: 'stiva' was not declared in this scope while (cnt >= 2 && stiva[cnt].first > stiva[cnt - 1].first && stiva[cnt].first > v[i]) ^~~~~ main.cpp:80:9: error: 'stiva' was not declared in this scope stiva[++cnt] = { v[i], i }; ^~~~~ main.cpp:86:23: error: 'intervdr' was not declared in this scope for (auto j : intervdr[i]) { ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:105:5: error: 'ifstream' was not declared in this scope ifstream in("valearegilor.in"); ^~~~~~~~ main.cpp:106:5: error: 'ofstream' was not declared in this scope ofstream out("valearegilor.out"); Non zero exit status: 1

Ceva nu functioneaza?