Submission #00044
ソースコード
ステータス
コンパイルメッセージ
./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>’?
セット
テストケース