Borderou de evaluare (job #1868206)
| Utilizator | Data | 4 februarie 2017 17:59:09 | |
|---|---|---|---|
| Problema | Heapuri | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘void HEAP::pop(int)’:
user.cpp:31:36: error: ‘swap’ was not declared in this scope
swap(Heap[heap_len], Heap[cord]);
^
user.cpp: In member function ‘void HEAP::up(int)’:
user.cpp:41:34: error: ‘swap’ was not declared in this scope
swap(Heap[x], Heap[x / 2]);
^
user.cpp: In member function ‘void HEAP::down(int)’:
user.cpp:57:37: error: ‘swap’ was not declared in this scope
swap(Heap[x], Heap[next]);
^
user.cpp: In function ‘int main()’:
user.cpp:69:38: 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:70:40: 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:72:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:74:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
user.cpp:76:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &e);
^
user.cpp:80:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &e);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
