Borderou de evaluare (job #3325010)
| Utilizator | Data | 24 noiembrie 2025 15:15:34 | |
|---|---|---|---|
| Problema | Mine | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'ifstream' does not name a type
9 | ifstream f("mine.in");
| ^~~~~~~~
main.cpp:10:1: error: 'ofstream' does not name a type
10 | ofstream g("mine.out");
| ^~~~~~~~
main.cpp:15:9: error: 'pair' was not declared in this scope
15 | vector <pair <int,int> > gr[nmax];
| ^~~~
main.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
+++ |+#include <utility>
1 | #pragma GCC optimize("O3")
main.cpp:15:9: error: 'pair' was not declared in this scope
15 | vector <pair <int,int> > gr[nmax];
| ^~~~
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:9: error: 'pair' was not declared in this scope
main.cpp:15:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:15:1: error: 'vector' does not name a type
15 | vector <pair <int,int> > gr[nmax];
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:24:5: error: 'f' was not declared in this scope
24 | f >> n >> m;
| ^
main.cpp:29:9: error: 'gr' was not declared in this scope
29 | gr[x].push_back({c,y});
| ^~
main.cpp:37:21: error: 'pair' was not declared in this scope
37 | priority_queue <pair <int,int>, vector <pair <int,int> >, greater <pair <int,int> > > pq;
| ^~~~
main.cpp:37:21: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
main.cpp:37:5: error: 'priority_queue' was not declared in this scope
37 | priority_queue <pair <int,int>, vector <pair <int,int> >, greater <pair <int,int> > > pq;
| ^~~~~~~~~~~~~~
main.cpp:1:1: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
+++ |+#include <queue>
1 | #pragma GCC optimize("O3")
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
