Borderou de evaluare (job #1482498)

Utilizator tiby10Tibi P tiby10 Data 7 septembrie 2015 12:34:04
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: ‘var’ does not name a type var V[MAXN], n, MAX; ^ user.cpp:9:1: error: ‘var’ does not name a type var rez_0(var val) { ^ user.cpp:14:1: error: ‘var’ does not name a type var rez_1(var val) { ^ user.cpp:23:1: error: ‘var’ does not name a type var rez_2(var val) { ^ user.cpp: In function ‘int main()’: user.cpp:29:5: error: ‘var’ was not declared in this scope var m, type, val; ^ user.cpp:29:9: error: expected ‘;’ before ‘m’ var m, type, val; ^ user.cpp:30:10: error: ‘n’ was not declared in this scope fin>>n; ^ user.cpp:31:13: error: expected ‘;’ before ‘i’ for(var i=1; i<=n; i++) ^ user.cpp:31:18: error: ‘i’ was not declared in this scope for(var i=1; i<=n; i++) ^ user.cpp:32:14: error: ‘V’ was not declared in this scope fin>>V[i]; ^ user.cpp:34:9: error: ‘MAX’ was not declared in this scope for(MAX=1; MAX<=n; MAX<<=1); ^ user.cpp:35:5: error: ‘MAX’ was not declared in this scope MAX>>=1; ^ user.cpp:37:10: error: ‘m’ was not declared in this scope fin>>m; ^ user.cpp:39:14: error: ‘type’ was not declared in this scope fin>>type>>val; ^ user.cpp:39:20: error: ‘val’ was not declared in this scope fin>>type>>val; ^ user.cpp:41:36: error: ‘rez_0’ was not declared in this scope case 0: fout<<rez_0(val)<<'\n';break; ^ user.cpp:42:36: error: ‘rez_1’ was not declared in this scope

Ceva nu functioneaza?