제출 #537415

#제출 시각아이디문제언어결과실행 시간메모리
537415tqbfjotldHop (COCI21_hop)C++14
110 / 110
44 ms1280 KiB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    scanf("%d",&n);
    for (int x = 1; x<n; x++){
        for (int y = 0; y<x; y++){
            printf("%d ",rand()%3+1);
        }
        printf("\n");
    }
}

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

Main.cpp: In function 'int main()':
Main.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...