Borderou de evaluare (job #2140610)
Utilizator | Data | 23 februarie 2018 18:12:51 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int peekMin(MinHeap*)’:
user.cpp:5:15: error: ‘INT_MAX’ was not declared in this scope
#define ERROR INT_MAX
^
user.cpp:88:9: note: in expansion of macro ‘ERROR’
return ERROR;
^
user.cpp: In function ‘void deleteKey(MinHeap*, int)’:
user.cpp:115:25: error: ‘INT_MIN’ was not declared in this scope
decreaseKey(heap, ind, INT_MIN);
^
user.cpp: In function ‘int main()’:
user.cpp:166:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &N);
^
user.cpp:171:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &op);
^
user.cpp:179:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !