Borderou de evaluare (job #38414)

Utilizator stef2nStefan Istrate stef2n Data 25 martie 2007 19:30:08
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
20ms8kbIncorect0
30ms8kbIncorect0
40ms8kbIncorect0
50ms12kbIncorect0
60ms12kbIncorect0
70ms8kbIncorect0
80ms8kbIncorect0
94ms12kbIncorect0
104ms12kbIncorect0
114ms8kbIncorect0
124ms8kbIncorect0
134ms332kbIncorect0
144ms8kbIncorect0
154ms284kbIncorect0
168ms288kbIncorect0
178ms284kbIncorect0
1812ms372kbIncorect0
1912ms376kbIncorect0
204ms284kbIncorect0
Punctaj total0

Ceva nu functioneaza?