[ NrmMyth @ 11.02.2006. 17:03 ] @
Skinite ovo - SOURCE
Zatim iskompajlirajte "source.cpp" na svojoj masini i pokrenite binary, koji bi trebao biti u istom folderu kao i "contact.in" .
Postajte ovdje "contact.out" (ne attachat), podatke o kompajleru i OS-u.

Kod je portabilan i sastoji se samo od source.cpp, nikakve postavke kompajlera nisu potrebne.

Hvala.

[Ovu poruku je menjao NrmMyth dana 11.02.2006. u 18:05 GMT+1]

[Ovu poruku je menjao NrmMyth dana 11.02.2006. u 18:09 GMT+1]
[ X Files @ 11.02.2006. 17:54 ] @
Borland C++ Builder 6

(ne moze se kompajlirati, ali to je sigurno zbog SLABO KOMPATIBILNOG kompajlera)

[C++ Error] Unit1.cpp(53): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
hash.assign( MAXHS, list<string>() );

[C++ Error] Unit1.cpp(82): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
hash[itp->second].push_back( itp->first );

[C++ Error] Unit1.cpp(90): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
if( !((hash[k]).empty()) )

[C++ Error] Unit1.cpp(92): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
hash[k].sort( OrderCmp );

[C++ Error] Unit1.cpp(96): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
fprintf( out, "%s", (*(hash[k].begin()) ).c_str() );

[C++ Error] Unit1.cpp(97): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
it = hash[k].begin();

[C++ Error] Unit1.cpp(99): E2015 Ambiguity between 'hash' and '_STL::hash<_Key>'
for( ; it != hash[k].end(); ++it )


Borland C++ Builder 2006

Rezultat:

1
1
[ Nibble @ 11.02.2006. 18:49 ] @
Rezultat:
1
1
[ dimitar 16 @ 11.02.2006. 19:23 ] @
MinGW Developer Studio, Windows XP

1
1


Isti je rezultat i na Red Hat 9, gcc 3.2.2





[Ovu poruku je menjao dimitar 16 dana 11.02.2006. u 20:49 GMT+1]
[ IDE @ 11.02.2006. 20:29 ] @
nisam mogao iskompajlirati na DevC++-u i MSVS6

1
1
[ NrmMyth @ 11.02.2006. 20:46 ] @
Citat:
fucking voodoo: nisam mogao iskompajlirati na DevC++-u i MSVS6

1
1

Nisi mogao ili nemozes?

Ako tko dobije drugacije rijesenje, molim neka posta.
[ dimitar 16 @ 11.02.2006. 21:07 ] @
Citat:
fucking voodoo: nisam mogao iskompajlirati na DevC++-u i MSVS6

1
1


U DevC++ radi sasvim ok, daje isti rezultat.
[ IDE @ 11.02.2006. 21:18 ] @
Citat:
U DevC++ radi sasvim ok, daje isti rezultat.


e ja nisam mogao...
izbacuje mi 2 greske tu
a u MSVS-u 3...i gomilu upozorenja...

mozda se to moze rijesiti nekako, ali nista nisam htio dirati vec samo pokusati iskomapjlirati...
[ X Files @ 11.02.2006. 21:33 ] @
Evo, sada radi i sa Borland C++ Builder 6.

Samo sam promenio naziv: umesto hash stavio sam hash2

Rezultat je isti:

1
1
[ TraceRT @ 12.02.2006. 14:46 ] @
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documents and Settings\Denis\My Documents\My Setups\source.cpp" -o "C:\Documents and Settings\Denis\My Documents\My Setups\source.exe" -pg -g3 -I"C:\Dev-Cpp\include\c++\3.3.1" -I"C:\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Dev-Cpp\include" -I"C:\Documents and Settings\Denis\Desktop\oracle" -L"C:\Dev-Cpp\lib" -L"C:\Documents and Settings\Denis\Desktop\oracle" -lgmon -pg -g3
Execution terminated
Compilation successful

1
1
[ Ramirez @ 13.02.2006. 14:49 ] @
VS2005 na XP x64
Result:
1
1

[Ovu poruku je menjao Ramirez dana 13.02.2006. u 15:52 GMT+1]
[ NrmMyth @ 15.02.2006. 22:06 ] @
Hvala nije potrebno vise...