Borderou de evaluare (job #1026358)

Utilizator vlcmodanModan Valentin vlcmodan Data 11 noiembrie 2013 15:46:08
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:14: error: expected initializer before ‘n’ int a[100001]n,i,j,x,y,t; ^ user.cpp: In function ‘void citire()’: user.cpp:7:14: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:8:14: error: ‘a’ was not declared in this scope scanf("%d",&a[1]); ^ user.cpp:10:6: error: ‘i’ was not declared in this scope for(i=2;i<=n;i++) ^ user.cpp: In function ‘int main()’: user.cpp:19:14: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:20:6: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:22:18: error: ‘t’ was not declared in this scope scanf("%d %d",&t,&x); ^ user.cpp:22:21: error: ‘x’ was not declared in this scope scanf("%d %d",&t,&x); ^ user.cpp:25:6: error: ‘y’ was not declared in this scope y=upper_bound(a,a+n+1,x)-a-1; ^ user.cpp:25:20: error: ‘a’ was not declared in this scope y=upper_bound(a,a+n+1,x)-a-1; ^ user.cpp:33:13: error: ‘y’ was not declared in this scope y = lower_bound(a,a+n+1,x+1)-a; ^ user.cpp:33:29: error: ‘a’ was not declared in this scope y = lower_bound(a,a+n+1,x+1)-a; ^ user.cpp:36:13: error: ‘y’ was not declared in this scope y = upper_bound(a,a+n+1,x-1)-a; ^ user.cpp:36:29: error: ‘a’ was not declared in this scope y = upper_bound(a,a+n+1,x-1)-a; ^

Ceva nu functioneaza?