Borderou de evaluare (job #38432)

Utilizator stef2nStefan Istrate stef2n Data 25 martie 2007 19:42:16
Problema Cerc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:44:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d",&n); ^ user.cpp:46:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d %d %d",&C[i].x,&C[i].y,&C[i].r); ^ user.cpp:46:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:46:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp: In function ‘void init()’: user.cpp:71:7: error: reference to ‘hash’ is ambiguous hash[i]=NULL; ^ user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:8: /usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘long long int cauta_hash(long double, long double)’: user.cpp:129:16: error: reference to ‘hash’ is ambiguous NOD_HASH *b=hash[key]; ^ user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:8: /usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘void adauga_hash(long double&, long double&, long long int&)’: user.cpp:144:11: error: reference to ‘hash’ is ambiguous a->adr=hash[key]; ^ user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52,
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms8kbIncorect0
24ms12kbIncorect0
34ms12kbIncorect0
44ms12kbIncorect0
54ms12kbIncorect0
64ms8kbIncorect0
70ms12kbIncorect0
84ms12kbIncorect0
94ms12kbIncorect0
100ms8kbIncorect0
114ms8kbIncorect0
124ms8kbIncorect0
134ms336kbIncorect0
140ms12kbIncorect0
154ms304kbIncorect0
164ms288kbIncorect0
174ms284kbIncorect0
188ms372kbIncorect0
198ms376kbIncorect0
208ms284kbIncorect0
Punctaj total0

Ceva nu functioneaza?