結果
| 問題 | No.304 鍵(1) |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-02-25 14:30:17 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 402 ms |
| コンパイル使用メモリ | 60,012 KB |
| 最終ジャッジ日時 | 2026-05-10 04:21:31 |
| 合計ジャッジ時間 | 2,751 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:10:23: error: no match for 'operator==' (operand types are 'std::basic_istream<char>' and 'const char [9]')
10 | if(cin >> input == "unlocled") break;
| ~~~~~~~~~~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::basic_istream<char>
main.cpp:10:23: note: there are 15 candidates
10 | if(cin >> input == "unlocled") break;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/iosfwd:44,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/ios:42,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/ostream.h:43,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/ostream:42,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/iostream:43,
from main.cpp:1:
/home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/postypes.h:197:5: note: candidate 1: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
197 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/postypes.h:197:5: note: template argument deduction/substitution failed:
main.cpp:10:26: note: 'std::basic_istream<char>' is not derived from 'const std::fpos<_StateT>'
10 | if(cin >> input == "unlocled") break;
| ^~~~~~~~~~
In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/string:45,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/locale_classes.h:42,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/ios_base.h:43,
from /ho
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string input;
for(int i = 0;i < 1000;i++){
if(i < 100) cout << "00";
cout << i << endl;
if(cin >> input == "unlocled") break;
}
}
ldsyb