Borderou de evaluare (job #2421420)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 15 mai 2019 07:47:51
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:27:25: error: 'stdin' was not declared in this scope freopen("cmlsc.in","r",stdin); ^~~~~ main.cpp:27:30: error: 'freopen' was not declared in this scope freopen("cmlsc.in","r",stdin); ^ main.cpp:28:26: error: 'stdout' was not declared in this scope freopen("cmlsc.out","w",stdout); ^~~~~~ main.cpp:30:20: error: 'scanf' was not declared in this scope scanf("%d%d",&n,&m); ^ main.cpp:37:3: error: reference to 'hash' is ambiguous hash[b[i]].push_back(i); ^~~~ main.cpp:8:14: note: candidates are: std::vector<int> hash [260] vector <int> hash[260]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from main.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ main.cpp:41:8: error: reference to 'hash' is ambiguous sort(hash[i].begin(),hash[i].end(),cmp()); ^~~~ main.cpp:8:14: note: candidates are: std::vector<int> hash [260] vector <int> hash[260]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from main.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ main.cpp:41:24: error: reference to 'hash' is ambiguous sort(hash[i].begin(),hash[i].end(),cmp()); ^~~~ main.cpp:8:14: note: candidates are: std::vector<int> hash [260] vector <int> hash[260]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from main.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ main.cpp:44:10: error: reference to 'hash' is ambiguous Non zero exit status: 1

Ceva nu functioneaza?