Borderou de evaluare (job #1524180)
Utilizator | Data | 13 noiembrie 2015 16:52:14 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void up_heap(int)’:
user.cpp:11:35: error: ‘swap’ was not declared in this scope
swap(heap[nod],heap[nod/2]);
^
user.cpp: In function ‘void down_heap(int)’:
user.cpp:22:39: error: ‘swap’ was not declared in this scope
swap(heap[nod],heap[nod*2]);
^
user.cpp:28:41: error: ‘swap’ was not declared in this scope
swap(heap[nod],heap[nod*2+1]);
^
user.cpp: In function ‘int main()’:
user.cpp:42:21: error: ‘t’ was not declared in this scope
scanf("%d",&t);
^
user.cpp:38:15: warning: unused variable ‘tip’ [-Wunused-variable]
int n,j=0,tip,x;
^
user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.in","r",stdin);
^
user.cpp:37:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.out","w",stdout);
^
user.cpp:39:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !