Submission #00044


ソースコード

ステータス

項目 データ
問題 0002 - FizzBuzz - easy
ユーザー名 卒業済みr1807
投稿日時 2019-05-07 16:49:13
言語 C++
状態 Compile Error
得点 0
ソースコード長 360 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:3: error: ‘cin’ was not declared in this scope
   cin >> a;
   ^~~
./Main.cpp:8:3: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:3:1:
+#include <iostream>
 using namespace std;
./Main.cpp:8:3:
   cin >> a;
   ^~~
./Main.cpp:10:5: error: ‘cout’ was not declared in this scope
     cout << "FizzBuzz" << endl;
     ^~~~
./Main.cpp:10:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:10:27: error: ‘endl’ was not declared in this scope
     cout << "FizzBuzz" << endl;
                           ^~~~
./Main.cpp:10:27: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:3:1:
+#include <ostream>
 using namespace std;
./Main.cpp:10:27:
     cout << "FizzBuzz" << endl;
                           ^~~~
./Main.cpp:12:5: error: ‘cout’ was not declared in this scope
     cout << "Fizz" << endl;
     ^~~~
./Main.cpp:12:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:12:23: error: ‘endl’ was not declared in this scope
     cout << "Fizz" << endl;
                       ^~~~
./Main.cpp:12:23: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:14:5: error: ‘cout’ was not declared in this scope
     cout << "Buzz" << endl;
     ^~~~
./Main.cpp:14:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:14:23: error: ‘endl’ was not declared in this scope
     cout << "Buzz" << endl;
                       ^~~~
./Main.cpp:14:23: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:16:5: error: ‘cout’ was not declared in this scope
     cout << a << endl;
     ^~~~
./Main.cpp:16:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:16:18: error: ‘endl’ was not declared in this scope
     cout << a << endl;
                  ^~~~
./Main.cpp:16:18: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #