Compile error help again!

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
donatello
New poster
Posts: 8
Joined: Tue Mar 07, 2006 3:08 pm

Compile error help again!

Post by donatello » Tue Mar 07, 2006 3:10 pm

Please see and tell me my compile error:

Code: Select all

//snip
Last edited by donatello on Tue Mar 07, 2006 5:00 pm, edited 1 time in total.

chunyi81
A great helper
Posts: 293
Joined: Sat Jun 21, 2003 4:19 am
Location: Singapore

Post by chunyi81 » Tue Mar 07, 2006 4:22 pm

Change typeof to __typeof.

And try not to mix cin and scanf. It's not very good programming practice.

donatello
New poster
Posts: 8
Joined: Tue Mar 07, 2006 3:08 pm

Post by donatello » Tue Mar 07, 2006 4:59 pm

Thank you very much! I got AC!

donatello
New poster
Posts: 8
Joined: Tue Mar 07, 2006 3:08 pm

Post by donatello » Wed Mar 08, 2006 5:51 pm

I have another compile error problem. Please help. It's definitely not typeof this time!

Code: Select all

snip
Last edited by donatello on Wed Mar 08, 2006 6:51 pm, edited 1 time in total.

User avatar
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba » Wed Mar 08, 2006 6:20 pm

Include <string> if you want to use std::string.

Are you going to post your code here every time you have a compilation problem? Get gcc 2.95 and test it yourself. Or just read the code carefully again and again - CEs don't happen without a reason.
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...

donatello
New poster
Posts: 8
Joined: Tue Mar 07, 2006 3:08 pm

Post by donatello » Wed Mar 08, 2006 6:54 pm

Yes Sir!! ;-)

Post Reply

Return to “C++”