Borderou de evaluare (job #3141316)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 13 iulie 2023 16:52:44
Problema Cuplaj maxim in graf bipartit Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: 'vector' does not name a type 7 | vector <int> edges[NMAX * 2 + 1]; | ^~~~~~ main.cpp: In function 'bool repair(int)': main.cpp:13:26: error: 'edges' was not declared in this scope 13 | for ( auto vec : edges[node] ) { | ^~~~~ main.cpp: In function 'int main()': main.cpp:27:9: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 27 | ifstream fin( "cuplaj.in" ); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/12.2.1/ios:38, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:28:9: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 28 | ofstream fout( "cuplaj.out" ); | ^~~~~~~~ | std::ofstream /usr/include/c++/12.2.1/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:30:9: error: 'fin' was not declared in this scope 30 | fin >> n >> m >> e; | ^~~ main.cpp:33:17: error: 'edges' was not declared in this scope 33 | edges[a].push_back( b + n ); | ^~~~~ main.cpp:47:9: error: 'fout' was not declared in this scope 47 | fout << cuplaj; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?