Borderou de evaluare (job #2939566)

Utilizator AztecaVlad Tutunaru 2 Azteca Data 13 noiembrie 2022 21:53:06
Problema Oracol Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream fin( "oracol.in" ); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream fout( "oracol.out" ); | ^~~~~~~~ main.cpp:13:1: error: 'vector' does not name a type 13 | vector<edge> e; | ^~~~~~ main.cpp: In function 'void join(int, int)': main.cpp:23:26: error: 'swap' was not declared in this scope 23 | if ( sz[ru] < sz[rv] ) swap(ru, rv); | ^~~~ main.cpp: In function 'int main()': main.cpp:32:3: error: 'fin' was not declared in this scope 32 | fin >> n; | ^~~ main.cpp:40:4: error: 'e' was not declared in this scope 40 | e.push_back( {i - 1, j, c} ); | ^ main.cpp:43:9: error: 'e' was not declared in this scope 43 | sort( e.begin(), e.end(), []( const edge &a, const edge &b ) { return a.c < b.c; } ); | ^ main.cpp:43:3: error: 'sort' was not declared in this scope; did you mean 'short'? 43 | sort( e.begin(), e.end(), []( const edge &a, const edge &b ) { return a.c < b.c; } ); | ^~~~ | short main.cpp:51:3: error: 'fout' was not declared in this scope 51 | fout << res; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?