제출 #170316

#제출 시각아이디문제언어결과실행 시간메모리
170316ngmhProsjecni (COCI16_prosjecni)C++11
24 / 120
2 ms384 KiB
#include "stdio.h" int n; int main(){ scanf("%d",&n); if(n%2==1){ for(int i = 0; i < n; i++){ for(int j = 1; j <= n; j++){ printf("%d ",n*i+j); } printf("\n"); } }else printf("-1\n"); }

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

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