Submission #13465

#TimeUsernameProblemLanguageResultExecution timeMemory
13465gs14004scanf 함수 5 (BSC_0_7)C++14
Compilation error
0 ms0 KiB
#include <stdio.h> int main(){ int t,u;scanf("%d %d",&t,&u);printf("%g",0.5*(a+b)); }

Compilation message (stderr)

scanf5.cpp: In function ‘int main()’:
scanf5.cpp:4:49: error: ‘a’ was not declared in this scope
   int t,u;scanf("%d %d",&t,&u);printf("%g",0.5*(a+b));
                                                 ^
scanf5.cpp:4:51: error: ‘b’ was not declared in this scope
   int t,u;scanf("%d %d",&t,&u);printf("%g",0.5*(a+b));
                                                   ^
scanf5.cpp:4:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   int t,u;scanf("%d %d",&t,&u);printf("%g",0.5*(a+b));
                               ^