Submission #1035944

# Submission time Handle Problem Language Result Execution time Memory
1035944 2024-07-26T20:16:22 Z HienTD printf 함수 2 (BSC_0_2) C++11
0 / 100
0 ms 344 KB
#include <bits/stdc++.h>
#define FOR(i, a, b) for(int i = (a), _b = (b); i <= _b; ++ i)
#define FORD(i, b, a) for(int i = (b), _a = (a); i >= _a; -- i)
#define REP(i, n) for(int i = 0, _n = (n); i < _n; ++ i)
#define FORE(i, v) for(__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i)
#define ALL(v) (v).begin(), (v).end()
#define IS_INF(x) (std::isinf(x))
#define IS_NAN(x) (std::isnan(x))
#define fi first
#define se second
#define MASK(i) (1LL << (i))
#define BIT(x, i) (((x) >> (i)) & 1)
#define div ___div
#define prev ___prev
#define left ___left
#define __builtin_popcount __builtin_popcountll
using namespace std;

template<class X, class Y>
    bool minimize(X &x, const Y &y){
        if(x > y){
            x = y;
            return true;
        } else return false;
    }
template<class X, class Y>
    bool maximize(X &x, const Y &y){
        if(x < y){
            x = y;
            return true;
        } else return false;
    }
template<class T>
    T abs(const T &x){
        return (x < 0 ? -x : x);
    }

/** END OF TEMPLATE **/

void init(){
    //
}

void process(){
    printf("...______.~...\n");
    printf("~.///////\\..-.\n");
    printf(".///////_'\\...\n");
    printf("..II%II.+I.,..\n");
    printf("..IIIII.nI.P..\n");
    printf("\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n");
}

int main(){
    init();
    process();

    return 0;
}

Compilation message

printf2.cpp: In function 'void process()':
printf2.cpp:48:19: warning: repeated 'I' flag in format [-Wformat=]
   48 |     printf("..II%II.+I.,..\n");
      |                   ^
printf2.cpp:48:21: warning: unknown conversion type character '+' in format [-Wformat=]
   48 |     printf("..II%II.+I.,..\n");
      |                     ^
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -