-3

コンパイルしようとするたびに、次の行に沿ってエラーメッセージが表示されます

"exercise3.cpp:10:49: エラー: 予想される ';' 「endl」の前」

エラーメッセージが表示さ;れる前に追加するとendl

"exercise3.cpp:8:71: エラー: ステートメントはオーバーロードされた関数のアドレスを解決できません"

これで何が問題なのかわからないので、助けていただければ幸いです。

コード: (正しく並べられていないことを申し訳ありませんが、正しいことを保証します。)

#include "iostream"
using namespace std;

 int main()
 {
    cout << "hello there!\n";
    cout << "here is 5: "<< 5 << "\n";
    cout << "the manipulator end1 wrotes a new line to the screen."; endl;
    cout << "here is a very bug number:\t" << 70000 endl;
    cout << "here is the sum of 8 and 5:\t" << 8+5 endl;
    cout << "heres a fraction:\t\t" << (float) 5/8 endl;
    cout << "and a very big number:\t" << (double) 70000*70000 endl;
    cout << "you really dont have to type this line XD\n";
    cout << "or this one :P cause its not really needed!\n";
    return 0;
 }
4

3 に答える 3