Borderou de evaluare (job #1029366)

Utilizator raduiulianRadu Iulian Mihai raduiulian Data 15 noiembrie 2013 14:18:31
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void adaugare(int, int, int, int, int)’: user.cpp:9:9: error: ‘a’ was not declared in this scope a[nod]=val; ^ user.cpp:23:12: error: ‘a’ was not declared in this scope if(a[2*nod]>a[2*nod+1]) ^ user.cpp: In function ‘int maxim_valoare(int, int, int, int, int)’: user.cpp:39:16: error: ‘a’ was not declared in this scope return a[nod]; ^ user.cpp: In function ‘int main()’: user.cpp:49:19: error: ‘n’ was not declared in this scope scanf("%d%d",&n,&m); ^ user.cpp:49:22: error: ‘m’ was not declared in this scope scanf("%d%d",&n,&m); ^ user.cpp:52:21: error: ‘nr’ was not declared in this scope scanf("%d",&nr); ^ user.cpp:57:25: error: ‘tip’ was not declared in this scope scanf("%d%d%d",&tip,&x,&y); ^ user.cpp:57:30: error: ‘x’ was not declared in this scope scanf("%d%d%d",&tip,&x,&y); ^ user.cpp:57:33: error: ‘y’ was not declared in this scope scanf("%d%d%d",&tip,&x,&y); ^ user.cpp:60:13: error: ‘nr’ was not declared in this scope nr=maxim_valoare(1,1,n,x,y); ^ user.cpp: In function ‘int maxim_valoare(int, int, int, int, int)’: user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?