제출 #318452

#제출 시각아이디문제언어결과실행 시간메모리
318452codemaster111scanf 함수 4 (BSC_0_6)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> using namespace std; int main() { int count=0; while(cin>>n) { ++count; } cout<<count; }

컴파일 시 표준 에러 (stderr) 메시지

scanf4.cpp: In function 'int main()':
scanf4.cpp:6:16: error: 'n' was not declared in this scope
    6 |     while(cin>>n) {
      |                ^