Borderou de evaluare (job #1263421)

Utilizator atatomirTatomir Alex atatomir Data 14 noiembrie 2014 19:02:49
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:24: error: wrong number of template arguments (1, should be 5) unordered_map<long long> HH; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from user.cpp:4: /usr/include/c++/4.8/bits/unordered_map.h:97:11: error: provided for ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map’ class unordered_map : __check_copy_constructible<_Alloc> ^ user.cpp:14:28: error: invalid type in declaration before ‘;’ token unordered_map<long long> HH; ^ user.cpp: In function ‘bool isGood(long int, long long int)’: user.cpp:43:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(long i=0;i<H[sour].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:58:20: error: request for member ‘insert’ in ‘HH’, which is of non-class type ‘int’ HH.insert(x); ^ user.cpp:56:14: warning: unused variable ‘dest’ [-Wunused-variable] long dest = (1LL*x)%mod; ^ user.cpp:67:15: error: request for member ‘find’ in ‘HH’, which is of non-class type ‘int’ if(HH.find(x)) Ans++; ^ user.cpp:65:14: warning: unused variable ‘dest’ [-Wunused-variable] long dest = (1LL*x) % mod; ^ user.cpp: In function ‘long long int getLong()’: user.cpp:28:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(Buff,1,maxBuf,stdin); ^ user.cpp:36:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(Buff,1,maxBuf,stdin); ^ user.cpp: In function ‘int main()’: user.cpp:50:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dtcsu.in","r",stdin); ^ user.cpp:51:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dtcsu.out","w",stdout); ^ user.cpp:52:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(Buff,1,maxBuf,stdin); ^

Ceva nu functioneaza?