Borderou de evaluare (job #2699854)

Utilizator SoulSnorterPetre Robert Cristian SoulSnorter Data 26 ianuarie 2021 00:06:49
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'int MinHeap::extractMin()': main.cpp:110:16: error: 'INT_MAX' was not declared in this scope return INT_MAX; ^~~~~~~ main.cpp: In member function 'void MinHeap::deleteKey(int)': main.cpp:128:20: error: 'INT_MIN' was not declared in this scope decreaseKey(i, INT_MIN); ^~~~~~~ main.cpp: In function 'int main()': main.cpp:141: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); ^ main.cpp:142: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); ^ main.cpp:145:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ main.cpp:151:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ main.cpp:155:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^ main.cpp:162:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^ Non zero exit status: 1

Ceva nu functioneaza?