Submission #16354

#TimeUsernameProblemLanguageResultExecution timeMemory
16354eaststarscanf 함수 5 (BSC_0_7)C++14
Compilation error
0 ms0 KiB
main(){int a,b;scanf("%d%d",&a,&b);printf("%g",double(a+b)/2);}

Compilation message (stderr)

scanf5.cpp:1:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main(){int a,b;scanf("%d%d",&a,&b);printf("%g",double(a+b)/2);}
      ^
scanf5.cpp: In function ‘int main()’:
scanf5.cpp:1:34: error: ‘scanf’ was not declared in this scope
 main(){int a,b;scanf("%d%d",&a,&b);printf("%g",double(a+b)/2);}
                                  ^
scanf5.cpp:1:61: error: ‘printf’ was not declared in this scope
 main(){int a,b;scanf("%d%d",&a,&b);printf("%g",double(a+b)/2);}
                                                             ^