Submission #64517
ソースコード
ステータス
項目 |
データ |
問題 |
1426 - X に最も近い値 |
ユーザー名 |
r2031
|
投稿日時 |
2020-10-28 17:13:53 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
247 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:3:1: error: ‘ios’ does not name a type; did you mean ‘cos’?
ios::sync_with_stdio(false);
^~~
cos
./Main.cpp:4:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
cin.tie(nullptr);
^~~
sin
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:68: error: ‘endl’ was not declared in this scope
signed main(){int a,b,c,o;std::cin>>a>>b>>c;if(a<=b) std::cout<<b<<endl;else if(a>=c) std::cout<<c<<endl;else std::cout<<a<<endl;return 0;}
^~~~
./Main.cpp:5:68: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
./Main.cpp:5:101: error: ‘endl’ was not declared in this scope
signed main(){int a,b,c,o;std::cin>>a>>b>>c;if(a<=b) std::cout<<b<<endl;else if(a>=c) std::cout<<c<<endl;else std::cout<<a<<endl;return 0;}
^~~~
./Main.cpp:5:101: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
./Main.cpp:5:125: error: ‘endl’ was not declared in this scope
signed main(){int a,b,c,o;std::cin>>a>>b>>c;if(a<=b) std::cout<<b<<endl;else if(a>=c) std::cout<<c<<endl;else std::cout<<a<<endl;return 0;}
^~~~
./Main.cpp:5:125: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
セット
テストケース