Submission #64398

#TimeUsernameProblemLanguageResultExecution timeMemory
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); }

Compilation message (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...