35行目と43行目に
main.cpp:35: error: 'cout' was not declared in this scope
main.cpp:35: error: 'endl' was not declared in this scope
main.cpp:43: error: 'cout' was not declared in this scope
main.cpp:43: error: 'endl' was not declared in this scope
というエラーが出ます。よろしくお願いします。



[3] 環境
 [3.1] OS: Mac OS X 10.4.8
 [3.2] コンパイラ名とバージョン: Xcode 2.0
 [3.3] 言語:C++
[4] 期限: 今日中がうれしいです
[5] その他の制限:長いので分割させていただきました。全部つながっています。みにくくて申し訳ありません。