Submission #834647

#TimeUsernameProblemLanguageResultExecution timeMemory
834647dugersurenscanf 함수 5 (BSC_0_7)C++14
100 / 100
1 ms212 KiB
#include<cstdio> main(){int a,b; scanf("%d%d",&a,&b); printf("%.*f",(a+b)%2!=0,(a+b)/2.0); }

Compilation message (stderr)

scanf5.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int a,b;
      | ^~~~
scanf5.cpp: In function 'int main()':
scanf5.cpp:3:6: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    3 | scanf("%d%d",&a,&b);
      | ~~~~~^~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...