Borderou de evaluare (job #3365357)

Utilizator prodsevenStefan Albu prodseven Data 20 septembrie 2026 09:59:36
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:5: error: 'vector' does not name a type 12 | vector<int> v, b; | ^~~~~~ main.cpp: In constructor 'SqrtDecomp::SqrtDecomp(int)': main.cpp:17:9: error: 'v' was not declared in this scope 17 | v.assign(size + 2, 0); | ^ main.cpp:18:9: error: 'b' was not declared in this scope 18 | b.assign(BLOCK_SIZE, 0); | ^ main.cpp: In member function 'void SqrtDecomp::set(int, int)': main.cpp:21:9: error: 'v' was not declared in this scope 21 | v[pos] = val; | ^ main.cpp: In member function 'void SqrtDecomp::preprocess()': main.cpp:25:13: error: 'b' was not declared in this scope 25 | b[i / BLOCK_SIZE] = max(b[i / BLOCK_SIZE], v[i]); | ^ main.cpp:25:56: error: 'v' was not declared in this scope 25 | b[i / BLOCK_SIZE] = max(b[i / BLOCK_SIZE], v[i]); | ^ main.cpp: In member function 'void SqrtDecomp::update(int, int)': main.cpp:31:13: error: 'b' was not declared in this scope 31 | if (b[pos_block] == v[pos] && val < v[pos]) { | ^ main.cpp:31:29: error: 'v' was not declared in this scope 31 | if (b[pos_block] == v[pos] && val < v[pos]) { | ^ main.cpp: In member function 'int SqrtDecomp::query(int, int)': main.cpp:47:30: error: 'v' was not declared in this scope 47 | mx = max(mx, v[i]); | ^ main.cpp:52:30: error: 'v' was not declared in this scope 52 | mx = max(mx, v[i]); | ^ main.cpp:56:30: error: 'b' was not declared in this scope 56 | mx = max(mx, b[i]); | ^ main.cpp:60:30: error: 'v' was not declared in this scope 60 | mx = max(mx, v[i]); | ^ Non zero exit status: 1

Ceva nu functioneaza?