답안 #117224

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
117224 2019-06-15T11:33:23 Z maho04 scanf 함수 1 (BSC_0_3) C++14
컴파일 오류
0 ms 0 KB
using namespace std;
int main(){
  int d;
  cin>>d;
  cout<<d;
}

Compilation message

scanf1.cpp: In function 'int main()':
scanf1.cpp:4:3: error: 'cin' was not declared in this scope
   cin>>d;
   ^~~
scanf1.cpp:4:3: note: suggested alternative: 'main'
   cin>>d;
   ^~~
   main
scanf1.cpp:5:3: error: 'cout' was not declared in this scope
   cout<<d;
   ^~~~