Borderou de evaluare (job #1310679)

Utilizator thesvcoolmanLucian Bicsi thesvcoolman Data 7 ianuarie 2015 02:01:04
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:14: error: ‘n’ was not declared in this scope long TREE[17*n], A[n]; ^ user.cpp:9:20: error: ‘n’ was not declared in this scope long TREE[17*n], A[n]; ^ user.cpp: In function ‘void makeTree(int, int, int)’: user.cpp:14:9: error: ‘TREE’ was not declared in this scope TREE[node] = A[cs]; ^ user.cpp:14:22: error: ‘A’ was not declared in this scope TREE[node] = A[cs]; ^ user.cpp:18:9: error: ‘TREE’ was not declared in this scope TREE[node] = TREE[node*2]+TREE[node*2+1]; ^ user.cpp: In function ‘void addTo(int, long int, int, int, int)’: user.cpp:23:5: error: ‘TREE’ was not declared in this scope TREE[node] += val; ^ user.cpp: In function ‘long int getSum(int, int, int, int, int)’: user.cpp:34:31: error: ‘TREE’ was not declared in this scope if(l<=cs && r>=cd) return TREE[node]; ^ user.cpp: In function ‘int firstK(long int, int, int, int)’: user.cpp:43:11: error: ‘TREE’ was not declared in this scope while(TREE[node] > val) { ^ user.cpp:46:16: error: ‘TREE’ was not declared in this scope long sum = TREE[node]; ^ user.cpp:49:14: error: ‘A’ was not declared in this scope sum+=A[cd]; ^ user.cpp: In function ‘int main()’: user.cpp:58:5: error: ‘A’ was not declared in this scope A.push_back(0); ^ user.cpp:64:5: error: ‘TREE’ was not declared in this scope TREE.resize(17*n, 0); ^ user.cpp: In function ‘long int getSum(int, int, int, int, int)’: user.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?