Borderou de evaluare (job #3298628)

Utilizator Daniel15022012Daniel Munteanu Daniel15022012 Data 31 mai 2025 19:00:21
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:35: error: 'N' was not declared in this scope 22 | int left = 0, right = N - 1, pos = -1; | ^ main.cpp:26:21: error: 'pos' was not declared in this scope 26 | pos = mid; | ^~~ main.cpp:34:17: error: 'pos' was not declared in this scope 34 | if (pos == -1) | ^~~ main.cpp:40:35: error: 'N' was not declared in this scope 40 | int left = 0, right = N - 1, pos = -1; | ^ main.cpp:44:21: error: 'pos' was not declared in this scope 44 | pos = mid; | ^~~ main.cpp:50:21: error: 'pos' was not declared in this scope 50 | fout << pos + 1 << '\n'; | ^~~ main.cpp:53:35: error: 'N' was not declared in this scope 53 | int left = 0, right = N - 1, pos = -1; | ^ main.cpp:57:21: error: 'pos' was not declared in this scope 57 | pos = mid; | ^~~ main.cpp:63:21: error: 'pos' was not declared in this scope 63 | fout << pos + 1 << '\n'; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?