Borderou de evaluare (job #3141569)

Utilizator iulia_morariuIulia Morariu iulia_morariu Data 14 iulie 2023 16:15:14
Problema Smin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:2: error: invalid preprocessing directive #inclde; did you mean #include? 3 | #inclde <bits/stdc++.h> | ^~~~~~ | include main.cpp:10:1: error: 'ifstream' does not name a type 10 | ifstream fin("smin.in"); | ^~~~~~~~ main.cpp:11:1: error: 'ofstream' does not name a type 11 | ofstream fout("smin.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:27:5: error: 'fin' was not declared in this scope 27 | fin >> n; | ^~~ main.cpp:29:5: error: 'pair' was not declared in this scope 29 | pair <int, int> v[n]; | ^~~~ main.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'? +++ |+#include <utility> 1 | //#include </Library/Developer/CommandLineTools/usr/include/c++/v1/bits/stdc++.h> main.cpp:29:11: error: expected primary-expression before 'int' 29 | pair <int, int> v[n]; | ^~~ main.cpp:37:16: error: 'v' was not declared in this scope 37 | fin >> v[i].first >> v[i].second; | ^ main.cpp:52:9: error: 'vector' was not declared in this scope 52 | vector<int> b; | ^~~~~~ main.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? +++ |+#include <vector> 1 | //#include </Library/Developer/CommandLineTools/usr/include/c++/v1/bits/stdc++.h> main.cpp:52:16: error: expected primary-expression before 'int' 52 | vector<int> b; | ^~~ main.cpp:57:29: error: 'b' was not declared in this scope 57 | if(st % 2 == 1) b.insert(b.begin(), cnt); | ^ main.cpp:67:12: error: 'b' was not declared in this scope 67 | if(b.size() < 3){ | ^ main.cpp:73:12: error: 'b' was not declared in this scope 73 | if(b.size() == 3){ | ^ main.cpp:74:27: error: 'v' was not declared in this scope 74 | d[st] = arie( v[ b[0] ].first, v[ b[0] ].second, | ^ main.cpp:82:30: error: 'b' was not declared in this scope 82 | for(int i1 = 0; i1 < b.size() - 2; i1++){ | ^ Non zero exit status: 1

Ceva nu functioneaza?