Borderou de evaluare (job #2209186)

Utilizator AlexDianaAlexandrescu Diana AlexDiana Data 2 iunie 2018 10:01:47
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:7: error: ‘N’ was not declared in this scope int v[N],n; ^ user.cpp: In function ‘int caut0(int)’: user.cpp:11:20: error: ‘L’ was not declared in this scope int r=0,pas=1<<L; ^ user.cpp:14:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp: In function ‘int caut1(int)’: user.cpp:23:20: error: ‘L’ was not declared in this scope int r=0,pas=1<<L; ^ user.cpp:26:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<=x) ^ user.cpp:30:16: error: ‘v’ was not declared in this scope if(r==0 || v[r]<x) ^ user.cpp: In function ‘int caut2(int)’: user.cpp:37:20: error: ‘L’ was not declared in this scope int r=0,pas=1<<L; ^ user.cpp:40:24: error: ‘v’ was not declared in this scope if(r+pas<=n && v[r+pas]<x) ^ user.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: At global scope: user.cpp:47:5: error: expected unqualified-id before ‘return’ return r; ^~~~~~ user.cpp: In function ‘int main()’: user.cpp:73:17: error: expected ‘(’ before ‘{’ token { ^

Ceva nu functioneaza?