結果
| 問題 | 
                            No.8013 Trigger EPIPE
                             | 
                    
| ユーザー | 
                             184
                         | 
                    
| 提出日時 | 2015-09-07 01:07:29 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 26 ms / 1,500 ms | 
| コード長 | 182 bytes | 
| コンパイル時間 | 128 ms | 
| コンパイル使用メモリ | 23,040 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 1.00 | 
| 最終ジャッジ日時 | 2024-07-16 21:16:08 | 
| 合計ジャッジ時間 | 670 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
| 外部呼び出し有り | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:11: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |     fscanf(fp,"%d",&a);
      |     ~~~~~~^~~~~~~~~~~~
            
            ソースコード
#include <cstdio>
#include <cstdlib>
using namespace std;
//namaega184
int main(){
    FILE *fp=popen("abc","r");
    pclose(fp); 
    int a;
    fscanf(fp,"%d",&a);
    return 0;
}
            
            
            
        
            
184