結果
| 問題 |
No.8013 Trigger EPIPE
|
| ユーザー |
|
| 提出日時 | 2020-08-01 09:45:02 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,500 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 718 ms |
| コンパイル使用メモリ | 63,948 KB |
| 最終ジャッジ日時 | 2025-01-12 12:22:37 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
main.cpp: In function ‘void solve()’:
main.cpp:4:17: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | std::freopen("hoge", "r", stdin);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <iostream>
void solve() {
std::freopen("hoge", "r", stdin);
}
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
solve();
return 0;
}