Borderou de evaluare (job #2962390)

Utilizator AntoniaPopoviciAntonia-Adelina Popovici AntoniaPopovici Data 8 ianuarie 2023 15:03:22
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:1:4: error: stray '#' in program 1 | #include <bits/stdc++.h> | ^ main.cpp:1:1: error: '\U0000feff' does not name a type 1 | #include <bits/stdc++.h> | main.cpp:5:1: error: 'ifstream' does not name a type 5 | ifstream fin("cuplaj.in"); | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type 6 | ofstream fout("cuplaj.out"); | ^~~~~~~~ main.cpp:31:1: error: 'vector' does not name a type 31 | vector<int> stanga[N], dreapta[N]; | ^~~~~~ main.cpp: In function 'void citire()': main.cpp:37:2: error: 'fin' was not declared in this scope 37 | fin >> n >> m >> e; | ^~~ main.cpp:41:3: error: 'dreapta' was not declared in this scope 41 | dreapta[x].push_back(y); | ^~~~~~~ main.cpp:42:3: error: 'stanga' was not declared in this scope 42 | stanga[y].push_back(x); | ^~~~~~ main.cpp: In function 'bool cupleaza(int)': main.cpp:52:7: error: 'size_t' was not declared in this scope 52 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^~~~~~ main.cpp:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'? +++ |+#include <cstddef> 1 | #include <bits/stdc++.h> main.cpp:52:21: error: 'i' was not declared in this scope 52 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^ main.cpp:52:25: error: 'dreapta' was not declared in this scope 52 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^~~~~~~ main.cpp:62:7: error: 'size_t' was not declared in this scope 62 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^~~~~~ main.cpp:62:7: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'? main.cpp:62:21: error: 'i' was not declared in this scope 62 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^ main.cpp:62:25: error: 'dreapta' was not declared in this scope 62 | for (size_t i = 0; i < dreapta[x].size(); ++i) | ^~~~~~~ main.cpp: In function 'void cuplaj()': main.cpp:81:3: error: 'memset' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?