Borderou de evaluare (job #1630996)
Utilizator | Data | 5 martie 2016 12:34:19 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:13: error: ‘n’ was not declared in this scope
int st=1,dr=n,m,poz;
^
user.cpp:10:5: error: ‘poz’ was not declared in this scope
poz=-1;
^
user.cpp:13:9: error: ‘m’ was not declared in this scope
m=st + (dr-st) /2 ;
^
user.cpp:14:12: error: ‘a’ was not declared in this scope
if(a[m]==b)poz=m;
^
user.cpp:14:18: error: ‘b’ was not declared in this scope
if(a[m]==b)poz=m;
^
user.cpp:15:12: error: ‘a’ was not declared in this scope
if(a[m]<b)
^
user.cpp:15:17: error: ‘b’ was not declared in this scope
if(a[m]<b)
^
user.cpp: In function ‘int CautBina2(int)’:
user.cpp:23:17: error: ‘n’ was not declared in this scope
int st=1,dr=n,m,poz;
^
user.cpp:24:5: error: ‘poz’ was not declared in this scope
poz=0;
^
user.cpp:27:9: error: ‘m’ was not declared in this scope
m=st + (dr-st) /2 ;
^
user.cpp:28:12: error: ‘a’ was not declared in this scope
if(a[m]<=b)
^
user.cpp: In function ‘int CautBina3(int)’:
user.cpp:39:17: error: ‘n’ was not declared in this scope
int st=1,dr=n,m,poz;
^
user.cpp:40:5: error: ‘poz’ was not declared in this scope
poz=0;
^
user.cpp:43:9: error: ‘m’ was not declared in this scope
m=st + (dr-st) /2 ;
^
user.cpp:44:12: error: ‘a’ was not declared in this scope
if(a[m]>=b)
^
user.cpp: In function ‘int main()’:
user.cpp:53:5: error: redefinition of ‘int main()’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !