Submission #854770


Source Code Expand

Copy
#include <iostream> 
#include <string> 
#include <vector> 
#include <cmath> 
#include <algorithm> 
#include <cstdlib> 
#include <ctime> 
#include <cstdio> 
#include <functional> 
#include <set> 
#include <sstream> 
#include <cctype>
#include <stack>
#include <queue>
#include <cstring>
#include <map>
#include <list>
#include <cassert>
 
using namespace std; 


int main(){

	string s;
	cin>>s;

	int cnt[26]={};
	for(int i=0;i<n;i++){
		cnt[s[i]-'a']++;
	}

	for(int i=0;i<26;i++){
		if(cnt[i]%2){
			cout<<"No"<<endl;
			return 0;
		}
	}

	cout<<"Yes"<<endl;

}

Submission Info

Submission Time
Task B - 美しい文字列 / Beautiful Strings
User lay20114
Language C++14 (GCC 5.4.1)
Score 0
Code Size 604 Byte
Status

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:29:16: error: ‘n’ was not declared in this scope
  for(int i=0;i<n;i++){
                ^