제출 #64398

#제출 시각아이디문제언어결과실행 시간메모리
64398TAMREFGreat Pow! (kriii1_G)C++11
1 / 1
4 ms812 KiB
#include <cstdio> int main(){ int a, k; scanf("%d%d",&a,&k); if(k == 0) printf("%d\n",a); else printf("%d\n",a&1?a:1); }

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

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