Borderou de evaluare (job #1750073)
Utilizator | Data | 29 august 2016 16:10:04 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:52: error: template argument 2 is invalid
vector< pair<int, int>,vector<pair<int,int>, cmp> mypq;
^
user.cpp:27:17: error: ‘b’ was not declared in this scope
scanf("%d", &b);
^
user.cpp:28:4: error: ‘myheap’ was not declared in this scope
myheap.push(make_pair(b, pos));
^
user.cpp:31:17: error: ‘b’ was not declared in this scope
scanf("%d", &b);
^
user.cpp:35:18: error: ‘mypq’ was not declared in this scope
while (erased[mypq.top().second])
^
user.cpp:37:17: error: ‘mypq’ was not declared in this scope
printf("%d", mypq.top().first);
^
user.cpp:16:35: 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:17:37: 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:21:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:24:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !