Borderou de evaluare (job #1960375)

Utilizator bureaalexalex burea gariel bureaalex Data 10 aprilie 2017 13:14:46
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:1: error: expected initializer before ‘ifstream’ ifstream in ("cautbin.in"); ^ user.cpp:6:14: error: variable ‘std::ofstream out’ has initializer but incomplete type ofstream out ("cautbin.out"); ^ user.cpp: In function ‘int cout0(int)’: user.cpp:12:19: error: ‘n’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp:12:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp: In function ‘int cout2(int)’: user.cpp:26:19: error: ‘n’ was not declared in this scope if(r+pas<=n && v[r+pas]<x) ^ user.cpp:26:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<x) ^ user.cpp: In function ‘int cout1(int)’: user.cpp:40:19: error: ‘n’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp:40:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp:46:8: error: ‘v’ was not declared in this scope if(v[r]!=x) ^ user.cpp: At global scope: user.cpp:52:1: error: expected declaration before ‘}’ token } ^

Ceva nu functioneaza?