제출 #1347498

#제출 시각아이디문제언어결과실행 시간메모리
1347498msb.83Monster-Go (EGOI25_monstergo)C++20
0 / 100
683 ms344 KiB
//Rahman ve Rahim olan Allah'ın adıyla
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define int long long
#define pb push_back
#define fi first
#define se second
#define mid (st+end)/2
using namespace std;
int32_t main(){
    ios_base::sync_with_stdio(false);cin.tie(0);
    freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
    int n,k=0;cin>>n;
    for(int j=0;j<n;j++){
        for(int i=0;i<=12;i++){
            if(i==j) continue;
            cout<<i<<" ";
        }cout<<"\n";
    }
}

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp: In function 'int32_t main()':
Main.cpp:12:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:12:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
      |                                    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...