제출 #1360790

#제출 시각아이디문제언어결과실행 시간메모리
1360790ezzzayDolls (NOI23_dolls)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
#define int long long
const int N=3e5+5;
signed main(){
	cin>>n;
	set<int>st;
	for(int i=1;i<=n;i++){
		int a;
		cin>>a;
		st.insert(a);
		cout<<st.size()<<" ";
	}
}

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

Main.cpp: In function 'int main()':
Main.cpp:9:14: error: 'n' was not declared in this scope
    9 |         cin>>n;
      |              ^