Borderou de evaluare (job #3003977)
Utilizator | Data | 16 martie 2023 02:15:44 | |
---|---|---|---|
Problema | Numar2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:17: error: 'sd' is not a namespace-name
4 | using namespace sd;
| ^~
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream p("numar2.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream j("numar2.out");
| ^~~~~~~~
main.cpp:7:1: error: 'set' does not name a type
7 | set<long long>s;
| ^~~
main.cpp:8:1: error: 'priority_queue' does not name a type
8 | priority_queue <pair<long long,int> >pq;
| ^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'p' was not declared in this scope
12 | p>>n>>k;
| ^
main.cpp:13:28: error: 'pq' was not declared in this scope
13 | for(i=1;i<=n;i++){p>>x;pq.push({-x,x});}
| ^~
main.cpp:14:11: error: 's' was not declared in this scope
14 | while(s.size()<k){x=pq.top().first,v=pq.top().second,s.insert(x),pq.pop(),pq.push({x-v,v});}
| ^
main.cpp:14:25: error: 'pq' was not declared in this scope
14 | while(s.size()<k){x=pq.top().first,v=pq.top().second,s.insert(x),pq.pop(),pq.push({x-v,v});}
| ^~
main.cpp:15:5: error: 'j' was not declared in this scope
15 | j<<-*s.begin();
| ^
main.cpp:15:10: error: 's' was not declared in this scope
15 | j<<-*s.begin();
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !