Borderou de evaluare (job #2601869)

Utilizator david.teacaDavid Stefan Teaca david.teaca Data 15 aprilie 2020 12:54:02
Problema Panouri 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 ifstream f("panouri.in"); ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type ofstream g("panouri.out"); ^~~~~~~~ main.cpp:7:1: error: 'deque' does not name a type deque <int> deq; ^~~~~ main.cpp: In function 'int main()': main.cpp:9:3: error: invalid operands of types 'int [20002]' and 'int' to binary 'operator>>' {f>>n>>T; ~^~~ main.cpp:11:2: error: invalid operands of types 'int [20002]' and 'int' to binary 'operator>>' f>>v[i]; ~^~~~~~ main.cpp:13:3: error: invalid operands of types 'int [20002]' and 'int' to binary 'operator>>' {f>>x; ~^~~ main.cpp:18:1: error: 'deq' was not declared in this scope deq.push_back (v[i]); ^~~ main.cpp:23:30: error: 'min' was not declared in this scope { sol=min(sol,(int)deq.size()); ^ main.cpp:23:30: note: suggested alternative: In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:243:5: note: 'std::min' min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ main.cpp:32:1: error: 'g' was not declared in this scope g<<-1; ^ main.cpp:34:1: error: 'g' was not declared in this scope g<<sol-1; ^ Non zero exit status: 1

Ceva nu functioneaza?