Submission #58385
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
./Main.cpp:8:5: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:3:1:
+#include <iostream>
./Main.cpp:8:5:
cin >> n;
^~~
./Main.cpp:13:5: error: ‘cout’ was not declared in this scope
cout << ans << endl;
^~~~
./Main.cpp:13:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:13:20: error: ‘endl’ was not declared in this scope
cout << ans << endl;
^~~~
./Main.cpp:13:20: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:3:1:
+#include <ostream>
./Main.cpp:13:20:
cout << ans << endl;
^~~~
セット
テストケース