Borderou de evaluare (job #1812178)
Utilizator | Data | 21 noiembrie 2016 21:27:47 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:17: error: size of array ‘A’ is too large
int A[1000000000];
^
user.cpp: In function ‘void sterge_elem(int, std::priority_queue<int, std::vector<int>, std::greater<int> >*)’:
user.cpp:31:13: error: ‘A’ was not declared in this scope
int k = A[pos];
^
user.cpp: In function ‘int main()’:
user.cpp:69:13: error: ‘A’ was not declared in this scope
A[it+1] = k;
^
user.cpp:51: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:52: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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !