Borderou de evaluare (job #2885130)

Utilizator Mircea_DonciuDonciu Mircea Mircea_Donciu Data 5 aprilie 2022 15:45:02
Problema Progr Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: 'unordered_set' does not name a type 6 | unordered_set<int> mp; | ^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:9:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 9 | ifstream cin("progr.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:10:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 10 | ofstream cout("progr.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:11:5: error: 'cin' was not declared in this scope 11 | cin>>t; | ^~~ main.cpp:15:9: error: 'mp' was not declared in this scope 15 | mp.clear(); | ^~ main.cpp:23:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'? 23 | sort(v+1, v+n+1); | ^~~~ | std::sort In file included from /usr/include/c++/10/algorithm:62, from main.cpp:2: /usr/include/c++/10/bits/stl_algo.h:4882:5: note: 'std::sort' declared here 4882 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~ main.cpp:25:21: error: 'N' was not declared in this scope 25 | for(i=1; i<=N; i++) | ^ main.cpp:28:33: error: 'A' was not declared in this scope 28 | int d=(v[i]<<1)-A[j]; | ^ main.cpp:29:38: error: 'H' was not declared in this scope 29 | if(d<=0||mp.find(d)==H.end()) s++; | ^ Non zero exit status: 1

Ceva nu functioneaza?