Submission #717841

#TimeUsernameProblemLanguageResultExecution timeMemory
717841EntityPlanttscanf 함수 5 (BSC_0_7)C++14
0 / 100
1 ms284 KiB
#include<cstdio> main(){float a,b;scanf("%f%f",&a,&b);printf("%f",(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(){float a,b;scanf("%f%f",&a,&b);printf("%f",(a+b)/2.0);}
      | ^~~~
scanf5.cpp: In function 'int main()':
scanf5.cpp:2:23: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    2 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",(a+b)/2.0);}
      |                  ~~~~~^~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...