submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s015611027
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string strIn,strOut; cin>>strIn; strOut="Yes" char c=str[0]; int num=0; if(strIn.size()%2==0){ strOut="No"; }else{ sort(strIn.begin(),strIn.end()); for(auto itr = strIn.begin(); itr != strIn.end(); +...
a.cc: In function 'int main()': a.cc:9:15: error: expected ';' before 'char' 9 | strOut="Yes" | ^ | ; 10 | char c=str[0]; | ~~~~ a.cc:18:20: error: 'c' was not declared in this scope 18 | if(c!=*itr){ | ^
s886420804
p04012
C++
include <iostream> #include <string> using namespace std; int main(){ string w; cin >> w; int S = w.size(); for (int i = 0; i < S; i++) { int sum = -1; for (int j=0; j < S; j++ ) { if (w[i] == w[j]) { sum = sum + 1; } } if (sum % 2 == 0) { cout <...
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a typ...
s132736608
p04012
C++
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; int main(){ char w[100]; scanf("%s", &w); int len = strlen(w); int num = 0; for(int i=0; i<len; i++){ if( count(w, w+len, w[i]) % 2 == 0){ num ++; if(num == len) printf('Yes') } else{ pr...
a.cc:16:16: warning: multi-character character constant [-Wmultichar] 16 | printf('Yes') | ^~~~~ a.cc:19:14: warning: multi-character character constant [-Wmultichar] 19 | printf('No') | ^~~~ a.cc: In function 'int main()': a.cc:16:16: error: invalid conversio...
s654722185
p04012
C++
#inclde<cstdio> #inclue<cstring> #include<algorithm> int main(){ char w[100]; scanf("%s", &w); int len = strlen(w); int num = 0; for(int i=0; i<len; i++){ if( count(w, w+len, w+i) % 2 == 0){ num ++; if(num == len) printf('Yes'); } else{ printf('No'); break...
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde<cstdio> | ^~~~~~ | include a.cc:2:2: error: invalid preprocessing directive #inclue; did you mean #include? 2 | #inclue<cstring> | ^~~~~~ | include a.cc:15:16: warning: multi-character charac...
s733258834
p04012
C++
#include<cstdio> #include<cstring> #include<algorithm> int main(){ char w[100]; scanf("%s", &w); int len = strlen(w); int num = 0; for(int i=0; i<len; i++){ if( count(w, w+len, w[i]) % 2 == 0){ num ++; if(num == len) printf('Yes') } else{ printf('No') brea...
a.cc:15:16: warning: multi-character character constant [-Wmultichar] 15 | printf('Yes') | ^~~~~ a.cc:18:14: warning: multi-character character constant [-Wmultichar] 18 | printf('No') | ^~~~ a.cc: In function 'int main()': a.cc:11:9: error: 'count' was not de...
s425725896
p04012
C++
#inclde<cstdio> #inclue<cstring> #include<algorithm> int main(){ char w[100]; scanf("%s", &w); int len = strlen(w); int num = 0; for(int i=0; i<len; i++){ if( count(w, w+len, w[i]) % 2 == 0){ num ++; if(num == len) printf('Yes') } else{ printf('No') break;...
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde<cstdio> | ^~~~~~ | include a.cc:2:2: error: invalid preprocessing directive #inclue; did you mean #include? 2 | #inclue<cstring> | ^~~~~~ | include a.cc:15:16: warning: multi-character charac...
s446782272
p04012
C++
#inclde<cstdio> #inclue<cstring> #include<algorithm> int main(){ char w[100]; scanf("%s", w); int len = strlen(w); int num = 0; for(int i=0; i<len; i++){ if( count(0, len, w[i]) % 2 == 0){ num ++; if(num == len) printf("Yes") } else break; } print("No"); ...
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde<cstdio> | ^~~~~~ | include a.cc:2:2: error: invalid preprocessing directive #inclue; did you mean #include? 2 | #inclue<cstring> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: e...
s543564261
p04012
C++
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <algorithm> #include <utility> #include <functional> #include <cstring> #include <queue> #include <stack> #include <math.h> #include <iterator> #include <vector> #include <string> #include <set> #include <math.h> #include <iostream> #include <random> #include...
a.cc: In function 'int main()': a.cc:37:40: error: no match for 'operator<' (operand types are 'long long int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 37 | #define REP(i,n) for(long long i = 0;i < n;++i) | ^ a.cc:96:9: note: in expansion of macro 'REP'...
s720932821
p04012
C++
#include<iostream> #include<string> using namespace std; int main() { string w; cin>>w; int l = w.length(); int a[26]; memset(a,0,sizeof(a)); for(int i=0;i<l;i++) { int temp = w[i]-97; a[temp]++; } int flag = 0; for(int i=0;i<26;i++) { if(a[i]!=0&& a[i...
a.cc: In function 'int main()': a.cc:10:5: error: 'memset' was not declared in this scope 10 | memset(a,0,sizeof(a)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> 2 |...
s895240185
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(void){ char s[100]; int alpha[26]={0}; cin>>s; for(int i=0;i<strlen(s);i++){ alpha[(int)s[i]-(int)'a']++; } int u=0; for(int i=0;i<26;i++){ if(a[i]%2==1) u=1; } if(u==1) cout<<"No"<<endl; else cout<<"Yes"<<endl; retur...
a.cc: In function 'int main()': a.cc:14:8: error: 'a' was not declared in this scope 14 | if(a[i]%2==1) | ^
s760256254
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string S; char A; int B=0; int C=1; cin>>S; for(int i=0;i<S.size();i++){ A=S.at(i); for(int j=0;j<s.size();j++){ if(A==S.at(j)){ B++; } if(B%2==1){ C=99; cout<<"No"<<endl; break; } B=0; } } if(C==1){...
a.cc: In function 'int main()': a.cc:12:19: error: 's' was not declared in this scope 12 | for(int j=0;j<s.size();j++){ | ^
s419241650
p04012
C++
#include <iostream> #include <sstream> #include <cctype> #include <string> using namespace std; int main() { char chara[100]; cin >> chara; int box[150]={}; for(int i=0;i<strlen(chara);i++){ box[(int)chara[i]] ++; } bool check = true; for(int i=0;i<150;i++){ if(box[i]%2!...
a.cc: In function 'int main()': a.cc:15:19: error: 'strlen' was not declared in this scope 15 | for(int i=0;i<strlen(chara);i++){ | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <cctype> +++ |+#...
s606695042
p04012
C++
#include <iostream> #include <sstream> #include <string> using namespace std; int main() { char chara[100]; cin >> chara; int box[150]={}; for(int i=0;i<strlen(chara);i++){ box[(int)chara[i]] ++; } bool check = true; for(int i=0;i<150;i++){ if(box[i]%2!=0){ c...
a.cc: In function 'int main()': a.cc:14:19: error: 'strlen' was not declared in this scope 14 | for(int i=0;i<strlen(chara);i++){ | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <sstream> +++ |+...
s328893032
p04012
C++
#include <iostream> using namespace std; int main() { char chara[100]; cin >> chara; int box[150]={}; for(int i=0;i<strlen(chara);i++){ box[(int)chara[i]] ++; } bool check = true; for(int i=0;i<150;i++){ if(box[i]%2!=0){ check = false; } } if...
a.cc: In function 'int main()': a.cc:12:19: error: 'strlen' was not declared in this scope 12 | for(int i=0;i<strlen(chara);i++){ | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include <iostream> +++ |...
s696253857
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(void) { string s; int a[26]={0}; cin>>s; for(int i=0;i<s.size();i++){ if(s.at(i)>='a'&&s.at(i)<='z') a[s.size(i)-'a']++; } int count=0; for(int i=0;i<26;i++){ if(a[i]/2!=0) count++; } if(count>0) cout<<"No"<<endl; else ...
a.cc: In function 'int main()': a.cc:11:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 11 | a[s.size(i)-'a']++; | ~~~~~~^~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /...
s341793179
p04012
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cstring> #include <complex> #include <stack> #include <queue> #include <unordered_map> #include <map> using namespace std; int main() { int i; int v[26] = 0; string s; cin >> s; for (i=0;i>s.size();i++) { ...
a.cc: In function 'int main()': a.cc:14:17: error: array must be initialized with a brace-enclosed initializer 14 | int v[26] = 0; | ^
s267387231
p04012
C++
//Keep working hard :) #include <bits/stdc++.h> using namespace std; //#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); const int N = 1e2+5; int a[N]; int main() { IOS; //fileIO(); string s; cin >> s; for(int i = 0; i < s.size();i++) { if(s[i] >= ...
a.cc: In function 'int main()': a.cc:12:9: error: 'IOS' was not declared in this scope 12 | IOS; | ^~~
s073122937
p04012
C++
#include <iostream> #include <string> using namespace std; int main(void) { long c,ans=0,i,j; string s; cin >> s; for(i=0;i<w.size();i++) { c=0; for (j=0;j<w.size();j++) { if (s[i]==s[j]) { c++; } } if (c%2==1){ ans=1; } } if (ans==0) { cout << "Yes" << endl...
a.cc: In function 'int main()': a.cc:9:19: error: 'w' was not declared in this scope 9 | for(i=0;i<w.size();i++) { | ^
s252697345
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; int count = 0; bool flag = true for (int i = 0; i < w.size(); i++) { for (int j = 0; j < w.size(); j++) { if (w[i] == w[j]) { count++; } } if (count % 2 == 1) { flag = false; break; ...
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'for' 10 | for (int i = 0; i < w.size(); i++) { | ^~~ a.cc:10:19: error: 'i' was not declared in this scope 10 | for (int i = 0; i < w.size(); i++) { | ^
s225472651
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; int count = 0; bool flag = ture for (int i = 0; i < w.size(); i++) { for (int j = 0; j < w.size(); j++) { if (w[i] == w[j]) { count++; } } if (count % 2 == 1) { flag = false; break; ...
a.cc: In function 'int main()': a.cc:8:15: error: 'ture' was not declared in this scope 8 | bool flag = ture | ^~~~ a.cc:10:19: error: 'i' was not declared in this scope 10 | for (int i = 0; i < w.size(); i++) { | ^
s013070421
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; sort(w.begin(), w.end()); char pre=" "; int count = 0; for(auto& c : w){ if(c==pre){ count++; }else{ if(count%2==1){ cout << "No" << endl; return 0; }else{ pre = c; count...
a.cc: In function 'int main()': a.cc:8:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 8 | char pre=" "; | ^~~ | | | const char*
s677573834
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ int i; int c[26] = {}; string w; cin >> w; for(i=0; i<w.size; i++){ c[(int)w[i]-'a']++; } for(i=0; i<26; i++){ if(c[i]%2 == 1){ cout << "No"; return 0; } } cout << "Yes"; re...
a.cc: In function 'int main()': a.cc:9:18: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsign...
s629658801
p04012
C++
#include <iostream> #include <string> using namespace std; int main(){ string S; cin>>S; int b=0; for(auto c:S){ b^=(1<<(c-'a')); } cout<<(b?:"No":"Yes")<<endl; }
a.cc: In function 'int main()': a.cc:13:11: error: operands to '?:' have different types 'int' and 'const char*' 13 | cout<<(b?:"No":"Yes")<<endl; | ~^~~~~~ a.cc:13:17: error: expected ')' before ':' token 13 | cout<<(b?:"No":"Yes")<<endl; | ~ ^ | )
s291476916
p04012
C++
#include <iostream> #include <string> using namespace std; int main() { //vars; string w; int sum; cin >> w; if (w.size() % 2 != )cout << "No" << endl; for (int i = 0; i < w.size()/2 ; i+=2) { sum += w[i]; } if (sum % 4 == 0)cout << "Yes" << endl; for (int i = 1; i < w.size() / 2) { } if (sum % 2 ==...
a.cc: In function 'int main()': a.cc:11:29: error: expected primary-expression before ')' token 11 | if (w.size() % 2 != )cout << "No" << endl; | ^ a.cc:18:41: error: expected ';' before ')' token 18 | for (int i = 1; i < w.size() / 2) { | ...
s893528496
p04012
C++
#include <iostream> #include <vector> #include <algorithm> #include <iomanip> #include <cmath> using namespace std; typedef long long unsigned int ll; int main() { string s; int a,b,c,d,i,j,k; cin >> s; vector<int> l(26) for(i=0; i < s.length() ; i++){ l[int(s[i]-'a')]++; } a=0; while(1){ if...
a.cc: In function 'int main()': a.cc:16:3: error: expected ',' or ';' before 'for' 16 | for(i=0; i < s.length() ; i++){ | ^~~ a.cc:16:32: error: expected ';' before ')' token 16 | for(i=0; i < s.length() ; i++){ | ^ | ;
s086557997
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; int a[26] for (int i;i<w.size();i++){ a[s[i]-'a']=1-a[s[i]-'a']; } a.sort(); if (a[25]=0){ cout << "Yes"; } else{ cout << "No"; } }
a.cc: In function 'int main()': a.cc:8:3: error: expected initializer before 'for' 8 | for (int i;i<w.size();i++){ | ^~~ a.cc:8:14: error: 'i' was not declared in this scope 8 | for (int i;i<w.size();i++){ | ^ a.cc:11:3: error: 'a' was not declared in this scope 11 | a.sort()...
s543079745
p04012
C++
#include <iostream> using namespace std; int main() { string s; cin >> s; int cnt, ans = 0; for (char i = 'a'; i <= 'z'; i++) { cnt = count(s.begin(), s.end(), i); if (cnt % 2) ans = 1; } if (ans == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:12:11: error: 'count' was not declared in this scope; did you mean 'cnt'? 12 | cnt = count(s.begin(), s.end(), i); | ^~~~~ | cnt
s674607123
p04012
C
#include<stdio.h> int main(){ char S[111]; S[0] = '\0'; scanf("%s",S); int i,N; while(S[N] != '\0'){ N++; }; for(i=0;i<=N-1;i++) S[i] -= 'a'; int count[30] = {0}; for(i=0;i<=N-1;i++) count[S[i]]++; for(i=0;i<=26;i++) if(count%2 == 1){ printf("No"); goto NO; }; printf("...
main.c: In function 'main': main.c:17:13: error: invalid operands to binary % (have 'int *' and 'int') 17 | if(count%2 == 1){ | ~~~~~^ | | | int *
s328267648
p04012
C
include<stdio.h> int main(){ char S[111]; S[0] = '\0'; scanf("%s",S); int i,N; while(S[N] != '\0'){ N++; }; for(i=0;i<=N-1;i++) S[i] -= 'a'; int count[30] = {0}; for(i=0;i<=N-1;i++) count[S[i]]++; for(i=0;i<=26;i++) if(count%2 == 1){ printf("No"); goto NO; }; printf("Y...
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s857333324
p04012
C
include<stdio.h> int main(){ char S[111]; S[0] = '\0'; scanf("%s",S); int i,N; while(S[N]){ N++; }; for(i=0;i<=N-1;i++) S[i] -= 'a'; int count[30] = {0}; for(i=0;i<=N-1;i++) count[S[i]]++; for(i=0;i<=26;i++) if(count%2 == 1){ printf("No"); goto NO; }; printf("Yes"); ...
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s687963814
p04012
C++
#include <bits/stdc++.h> using namespace std; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef long long int ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) #d...
a.cc: In function 'int main()': a.cc:26:42: error: expected ']' before '[' token 26 | for(int i=0;i<w.size();i++) map[w[i]]++; | ^ | ] a.cc:26:46: error: expected initializer before '++' token 26 | for(in...
s070535885
p04012
C++
#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <algorithm> #include <cstdio> #include <cstring> #include <stack> #include <math.h> using namespace std; template<class T> inline bool chmax(T& a, T b){ if(a < b) { a=b; return 1; }return 0;} template<class T> inline bool chmin(T& a, T...
a.cc: In function 'int main()': a.cc:44:24: error: '\U000000e5' was not declared in this scope 44 | counter[chr]++;å | ^ a.cc:46:9: error: 'else' without a previous 'if' 46 | else flag = true; | ^~~~
s520682130
p04012
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string s; cin >> s; int alphb[26]; fill_n(alphab, 26, 0); if(s.size() % 2 != 0){ cout << "No" << endl; return 0; } for(int i = 0; i < s.size(); i++){ alphab[s[i] - '0']++; } for(int i = 0;...
a.cc: In function 'int main()': a.cc:11:10: error: 'alphab' was not declared in this scope; did you mean 'alphb'? 11 | fill_n(alphab, 26, 0); | ^~~~~~ | alphb
s734921814
p04012
C
√#include <stdio.h> #include <string.h> int main(){ char s[101] = {0}; char cmp[101] = {0}; int num[101] = {0}; scanf("%s", s); for(int cnt = 0; cnt < strlen(s); cnt++){ for(int n = 0; n < strlen(cmp) - 1 ; n++){ if(cmp[n] == s[cnt]){ num[n]++; } else if(n == strlen(cmp)){ cmp[n] = s...
main.c:1:1: error: stray '\342' in program 1 | <U+221A>#include <stdio.h> | ^~~~~~~~ main.c:1:2: error: stray '#' in program 1 | √#include <stdio.h> | ^ main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | √#include <stdio.h> | ^ In file incl...
s960081117
p04012
C++
#include<iostream> #include<string> using namespace std; int main(){ string s; cin>>s; int i,j,count=1; if(s.size()%2!=0){ cout<<"No"<<endl; return 0; } for(i=0;i<s.size();++i){ for(j=0;j<s.size()-i;++j){ if(s[i]==s[i+j]){ count++; s.erase(s.begin...
a.cc: In function 'int main()': a.cc:25:2: error: expected '}' at end of input 25 | } | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s910142302
p04012
C
#include<stdio.h> int main(void) { char w[100], test; int i, j, beau=0; for(i=0;i<100;i++) scanf(%c, &w[i]); i = 0; while(w[i] = '\n'){ test = w[i]; for(j=0;j=100;j++){ if(w[j] == test) beau = beau + 1; } if(beau % 2 == 1) printf("No\n"); return 0; ...
main.c: In function 'main': main.c:7:11: error: expected expression before '%' token 7 | scanf(%c, &w[i]); | ^
s301703762
p04012
C
#include<stdio.h> int main(void) { char w[100], test; int i, j, beau=0; for(i=0;i<100;i++) scanf(%c, &w[i]); i = 0; while(w[i] = '\n'){ test = w[i]; for(j=0;j=100,j++){ if(w[j] == test) beau = beau + 1; } if(beau % 2 == 1) printf("No\n"); return 0; ...
main.c: In function 'main': main.c:7:11: error: expected expression before '%' token 7 | scanf(%c, &w[i]); | ^ main.c:13:22: error: expected ';' before ')' token 13 | for(j=0;j=100,j++){ | ^ | ; main.c:22:8: error: expected ';' before ...
s842777553
p04012
C
#include<stdio.h> int main(void) { char w[100], test; int i, j, beau=0; for(i=0;i<100;i++) scanf(%c, &w[i]); i = 0 while(w[i] = '\n'){ test = w[i]; for(j=0;j=100,j++){ if(w[j] == test) beau = beau + 1; } if(beau % 2 == 1) printf("No\n"); return 0; ...
main.c: In function 'main': main.c:7:11: error: expected expression before '%' token 7 | scanf(%c, &w[i]); | ^ main.c:8:8: error: expected ';' before 'while' 8 | i = 0 | ^ | ; 9 | while(w[i] = '\n'){ | ~~~~~
s075683490
p04012
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) //#define int long long typedef long long ll; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; using namespace std; const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,...
a.cc: In function 'int main()': a.cc:17:8: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char') 17 | a[w-'a']++; | ~^~~~ | | | | | char | std::string {aka std::__cxx11::basic_string<char>} In file inc...
s792066524
p04012
C++
#include "pch.h" #include<iostream> #include<string> #include<algorithm> #include<functional> #include<vector> #include<cmath> #include<iomanip> using namespace std; int main() { string s; int count = 0; int a[30]; cin >> s; for (int num = 0;num< 30;num++) { a[num] = 0; } for (int i = 0;i < s.size();i++) { ...
a.cc:1:10: fatal error: pch.h: No such file or directory 1 | #include "pch.h" | ^~~~~~~ compilation terminated.
s060143890
p04012
C++
#include<iostream> #include<vector> #include<string> #include<math.h> #include<algorithm> #include<numeric> using namespace std; typedef long long LL; typedef unsigned long long ULL; typedef vector<LL> VLL; typedef vector<ULL> VULL; class MYCP { public: //数値を区切って文字列にする static string MakeString_LongLong(vector<lon...
a.cc: In function 'int main()': a.cc:222:34: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsi...
s620175811
p04012
C++
#include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define ll long long using namespace std; char a[105]; int main() { cnt=1; scanf("%s",a); if(strlen(a)<2) { printf("No\n"); } else { sort(a,a+strlen(a)); for(int i=1;i<strlen(a);i+=2) { if(a[i]!=a[i-1]) ...
a.cc: In function 'int main()': a.cc:11:9: error: 'cnt' was not declared in this scope; did you mean 'int'? 11 | cnt=1; | ^~~ | int
s022548396
p04012
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main() { string s; cin >> s; vector<string, int> ans; for (int i = 0; i < s.length(); i++) { ans[s[i]] += 1; } for (vector<string,int>::iterator i = ans.begin(); i != ans.end(); i++) { if (ans[i] % 2) { cout << "No" << endl; ...
In file included from /usr/include/c++/14/vector:66, from a.cc:2: /usr/include/c++/14/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<std::__cxx11::basic_string<char>, int>': /usr/include/c++/14/bits/stl_vector.h:428:11: required from 'class std::vector<std::__cxx11::basic_string<cha...
s121810146
p04012
C++
# Your code here! s=gets.chomp n=s.length flag=true for c in 'a'..'z' do cnt=0 for i in 0..n-1 do if(s[i]==c) cnt+=1 end end if(cnt%2==1) flag=false break end end puts (flag ? "Yes":"No")
a.cc:1:3: error: invalid preprocessing directive #Your 1 | # Your code here! | ^~~~ a.cc:10:14: error: too many decimal points in number 10 | for i in 0..n-1 do | ^~~~ a.cc:3:1: error: 's' does not name a type 3 | s=gets.chomp | ^
s714684319
p04012
C++
#include<stdio.h> #include<string.h> char a[101]; int b[101]; int main() { int i,len,t,n,c,j; c=0; n=-1; gets(a); len = strlen(a); if(len % 2 == 0) { for(i=0 ; i<len-1 ; i=i+t) { n++; for(j=i+1 ; j<len ; j++) { if(a[i] == a[j]) { b[n]++; } else t=j...
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s626048532
p04012
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int a,count[26],i; strin...
a.cc: In function 'int main(int, const char**)': a.cc:15:8: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type...
s884432349
p04012
C++
#include <bits/stdc++.h> #define FOR(i, n) for(int i = 0;i <n;i++) #define RFOR(i, n) for(int i = n;i >= 0;i--) #define REP(i, m, n) for(int i = m;i < n;i++) #define RREP(i, m, n) for(int i = m;i >= n;i--) #define INF 999999999 using namespace std; int main(int argc, char const *argv[]) { int a; string s; a = s....
a.cc: In function 'int main(int, const char**)': a.cc:13:14: error: expected ';' before 'if' 13 | a = s.size() | ^ | ; 14 | if(a%2 != 0) | ~~
s594969846
p04012
C
#include<stdio.h> int main(void) { int i[26],flag = 0; char n; for(;;) { scanf("%c",&n); if(n == '\n'){break;} i[n - 97] += 1; } for(int j = 0;i <= 26; i++) { if(i[j] % 2 != 0){flag = 1;} } if(flag == 0){printf("Yes");}else{printf("No");} return 0; }
main.c: In function 'main': main.c:14:19: warning: comparison between pointer and integer 14 | for(int j = 0;i <= 26; i++) | ^~ main.c:14:27: error: lvalue required as increment operand 14 | for(int j = 0;i <= 26; i++) | ^~
s166301992
p04012
C++
#include <iostream> #include <fstream> #include <stdio.h> #include <math.h> #include <time.h> #include <string> #include <tuple> #include <vector> #include <map> #include <list> #include <set> #include <stack> #include <queue> #include <cstdlib> #include <algorithm> #include <random> #include <cassert> using namespace ...
a.cc: In function 'int main()': a.cc:41:23: error: expected primary-expression before '=' token 41 | if(kai[i]%2 === 1){ | ^
s371952291
p04012
C
#include<stdio.h> #include<string.h> using namespace std; int v[105]; int main() {char w[105]; int len,cnt,value; scanf("%s",w); len=strlen(w); for(int i=0;i<len;i++) {value=w[i]-'a'; v[value]++; } for(int j=0;j<26;j++) { if(v[j]%2==1) cnt=0; else if(v[j]%2==0) cnt=1; } if(cnt==1) printf("Yes"); e...
main.c:3:1: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~
s033956629
p04012
C
#include<stdio.h> int main(){ int count[30]={0}; int i; char s[101]; scanf("%s",s); for(i=0;s[i]!=0;i++){ count[s[i]-'a']++; } for(i=0;i<30;i++){ if(count[i]%2==1){ puts("No"); return 0; } } puts("Yes""); return 0; }
main.c: In function 'main': main.c:17:11: warning: missing terminating " character 17 | puts("Yes""); | ^ main.c:17:11: error: missing terminating " character 17 | puts("Yes""); | ^~~ main.c:17:11: error: expected ')' before 'return' 17 | puts("Yes""); | ~ ^ ...
s189862885
p04012
C++
#include<stdio.h> #include<string.h> #include<stdlib.h> int num[30]; int main() { char s[103]; gets(s); int l = strlen(s); for(int i=0;i<l;i++) { num[ s[i]-'a' ]++; } bool flag = 0; for(int i=0;i<26;i++) if(num[i]&1) { flag = 1; break; } if(fla...
a.cc: In function 'int main()': a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(s); | ^~~~ | getw
s504729597
p04012
C++
#include<stdio.h> #include<string.h> int num[30]; int main() { int s[103]; gets(s); int l = strlen(s); for(int i=0;i<l;i++) { num[ s[i]-'a' ]++; } bool flag = 0; for(int i=0;i<26;i++) if(num[i]&1) { flag = 1; break; } if(flag) cout<<"No...
a.cc: In function 'int main()': a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(s); | ^~~~ | getw a.cc:8:20: error: cannot convert 'int*' to 'const char*' 8 | int l = strlen(s); | ^ | | | ...
s801775470
p04012
C++
#include <iostream> #include <string> #include <cstring> #include <algorithm> #include <ostream> #include <fstream> #include <cstdio> #include <vector> #include <queue> #include <stack> #include <map> #include <set> #include <math.h> using namespace std; const int maxn = 3e2+3; typedef long long ll; const ll mod = 1e9 ...
a.cc: In function 'int main()': a.cc:22:8: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [303]') 22 | cin>>s; | ~~~^~~ | | | | | int [303] | std::istream {aka std::basic_istream<char>} In file included fr...
s082377712
p04012
C++
#include <iostream> #include <string> #include <cstring> #include <algorithm> #include <ostream> #include <fstream> #include <cstdio> #include <vector> #include <queue> #include <stack> #include <map> #include <set> #include <math.h> using namespace std; const int maxn = 3e2+3; typedef long long ll; const ll mod = 1e9 ...
a.cc: In function 'int main()': a.cc:22:8: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [303]') 22 | cin>>s; | ~~~^~~ | | | | | int [303] | std::istream {aka std::basic_istream<char>} In file included fr...
s496117671
p04012
C++
char w[105]; int flag[27]; int k; int main() { scanf("%s",w); int len = strlen(w); for(int i = 0;i < len; i++){ flag[w[i] - 'a']++; } for(int i = 0;i < 26;i++){ if(flag[i]%2 != 0) { printf("NO\n");return 0; } } printf("YES\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'scanf' was not declared in this scope 7 | scanf("%s",w); | ^~~~~ a.cc:8:19: error: 'strlen' was not declared in this scope 8 | int len = strlen(w); | ^~~~~~ a.cc:1:1: note: 'strlen' is defined in header '<cst...
s444361835
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { string w; cin >> w; vector<int> word(30); for (int i = 0; i < w.size(); i++) { word[w[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (word[i]%2 != 0) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0: }
a.cc: In function 'int main()': a.cc:17:17: error: expected ';' before ':' token 17 | return 0: | ^ | ; a.cc:17:17: error: expected primary-expression before ':' token
s714117333
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { string w; cin >> w; vector<int> word(30); for (int i = 0; i < w.size(); i++) { word[w[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (word[i]%2 != 0) { cout << "No" << endl; return 0; } } cout << "Yes" < endl; return 0: }
a.cc: In function 'int main()': a.cc:16:23: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 16 | cout << "Yes" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from /usr...
s519900771
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { string w; cin >> w; vector<int> word(30); for (int i = 0; i < w.size(); i++) { word[w[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (word[i]52 != 0) { cout << "No" << endl; return 0; } } cout << "Yes" < endl; return 0: }
a.cc: In function 'int main()': a.cc:11:28: error: expected ')' before numeric constant 11 | if (word[i]52 != 0) { | ~ ^~ | ) a.cc:16:23: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved over...
s390148021
p04012
C++
#include<cstdio> #include<string.h> int main(){ char a[100]; int i=0; gets(a); while(a[i]!='\0'){ i++; } if(i%2==0){printf("YES\n");} else {printf("NO\n");} return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s519239700
p04012
C++
#include<stdio.h> #include<string.h> int main(){ char a[100]; int i=0,b; gets(a); while(a[i]!='\0'){ i++; } if(i%2==0){printf("YES\n");} else {printf("NO\n");} return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a); | ^~~~ | getw
s137713609
p04012
C++
#include<iostream> #include<string> #include<vector> #include<stdio.h> #include<algorithm> #include<stdlib.h> #define _USE_MATH_DEFINES #include<math.h> #include<numeric> #include<iomanip> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); int count = 1; int tmp = 0; //cout << s << ...
a.cc: In function 'int main()': a.cc:21:15: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsig...
s407701850
p04012
C++
#include<stdio.h> int strlng(char a[]) { int i; for(i=1; a[i]!='\0'; i++) { } return i; } int main() { char w[1000]; int i, j, ln, count, flag=0; scanf("%s", w); ln = strlng(w); for(i=0; i<ln; i++) { count = 0; for(j=0; j<ln; j++) { if(w[j...
a.cc: In function 'int main()': a.cc:31:27: error: expected ';' before '{' token 31 | else(count%2 != 0) | ^ | ; 32 | { | ~
s489144296
p04012
C
#include <stdio.h> main() { char w[99],c; int i = 0,j = 0,k = 0,n[25]; for(i = 0;i <= 25;i++) { n[i] = 0; } while(scanf("%c",&c),c!='\n') { n[c-97]++; w[i++] = c; } w[i] = '\0'; for(i = 0;i <=25;i++) { if(n[i] != 1 && n%2 != 1) { j++; } else if(n[i] == 0) { k++; } else { break; } } if(j+k == 26 && k!= 26) printf("Yes\n...
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main() | ^~~~ main.c: In function 'main': main.c:18:18: error: invalid operands to binary % (have 'int *' and 'int') 18 | if(n[i] != 1 && n%2 != 1) | ~~ ^ | | | int *
s069426238
p04012
C
#include <stdio.h> main() { char w[99],c; int i = 0,j = 0,k = 0,n[25]; for(i = 0;i <= 25;i++) { n[i] = 0; } while(scanf("%c",&c),c!='\n') { n[c-97]++; w[i++] = c; } w[i] = '\0'; for(i = 0;i <=25;i++) { if(n[i] != 1 && n%2 != 1) { j++; } else if(n[i] == 0) { k++; } else { break; } } if(m+k == 26 && k!= 26) printf("Yes\n...
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main() | ^~~~ main.c: In function 'main': main.c:18:18: error: invalid operands to binary % (have 'int *' and 'int') 18 | if(n[i] != 1 && n%2 != 1) | ~~ ^ | | | int * main.c:31:4:...
s513894243
p04012
C++
#include <iostream> using namespace std; int a[26]; int main() { string a; int i; bool flag=true; cin>>a; for(i=0;i<a.size();i++) { switch(a[i]) case a: a[0]++; break; case b: a[1]++; break; case c: a[2]++; break; case d: a[3]++; break; case e: a[4]++; break; ...
a.cc: In function 'int main()': a.cc:12:14: error: the value of 'a' is not usable in a constant expression 12 | case a: a[0]++; break; | ^ a.cc:5:12: note: 'a' was not declared 'constexpr' 5 | string a; | ^ a.cc:12:14: error: could not convert 'a' from 'std::string...
s319030649
p04012
C++
#include<bits/stdc++.h> using namespace std; int hash[26]; int main(){ int i; string s; cin>>s; for(i=0;i<s.size();i++){ hash[s[i]-'a']++; } for(i=1;i<=26;i++){ if(hash[i]%2!=0){ cout<<"No"; return 0; } } cout<<"Yes"; }
a.cc: In function 'int main()': a.cc:9:17: error: reference to 'hash' is ambiguous 9 | hash[s[i]-'a']++; | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/...
s710693417
p04012
C++
#include <stdio.h> #include <string.h> int main(void) { char w[1000]; int i,a[26]={0},d,l; gets(w); l=strlen(w); for(i=0;i<l;i++){ d=w[i]-97; a[d]++; } for(i=0;i<26;i++){ if(a[i]%2!=0){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets(w); | ^~~~ | getw
s274214577
p04012
Java
import java.util.Scanner; class Main public static void main(String[] args) { Scanner sc=new Scanner(System.in); String a=sc.next(); int[] cmj=new int[26]; for(int i=0; i<a.length(); i++) { cmj[a.charAt(i)-97]++; } for(int i=0; i<26; i++) { if(cmj[i]%2==1) { System.out.println("No"); Sys...
Main.java:3: error: '{' expected class Main ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:23: error: class, interface, enum, or record expected } ^...
s600815488
p04012
C++
Problem Status Contest User Group Forum Article Logout riyad_045 Begin: 2018-07-02 10:00 BST Long Contest One: 02 July 2018 End: 2018-07-08 09:00 BST 143:00:00 Ended Overview Problem Status Rank (143:00:00) 0 Comments Previous12345…Next Username Prob Result Time (ms) Mem (MB) Lang Submit Time riyad_045 I Runtim...
a.cc:13:14: error: invalid digit "8" in octal constant 13 | End: 2018-07-08 09:00 BST | ^~ a.cc:13:17: error: invalid digit "9" in octal constant 13 | End: 2018-07-08 09:00 BST | ^~ a.cc:21:1: error: extended character … is not valid in an identifier 21 | Previous12345…...
s693695576
p04012
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef pair<int,int> P; typedef pair<ll,ll> PL; #define INF 1<<30 #define LINF 1ll<<60ll #define MOD 1000000007 #define pb(a) push_back(a) #defi...
a.cc: In function 'int main()': a.cc:48:20: error: no match for 'operator^=' (operand types are 'std::vector<bool>::reference' and 'int') 48 | x[s[i]-'a']^=1; | ~~~~~~~~~~~^~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include...
s404782908
p04012
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef pair<int,int> P; typedef pair<ll,ll> PL; #define INF 1<<30 #define LINF 1ll<<60ll #define MOD 1000000007 #define pb(a) push_back(a) #defi...
a.cc: In function 'int main()': a.cc:48:20: error: no match for 'operator^=' (operand types are 'std::vector<bool>::reference' and 'int') 48 | x[s[i]-'a']^=1; | ~~~~~~~~~~~^~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include...
s772743830
p04012
Java
import java.math.BigDecimal; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.next(); String res = "Yes"; for (char c='a'; c<='z'; c++){ int count = 0; for (int ...
Main.java:22: error: cannot find symbol if (count%2 == 1){ ^ symbol: variable count location: class Main 1 error
s542258029
p04012
C++
#include <iostream> #include <string> using namespace std; int main(){ string w; cin >> w; string v = w; sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end()); char t; int count; int flag; for (int i = 0; i < v.size(); i++){ t = v[i]; count = 0; for (int j = 0; j < w...
a.cc: In function 'int main()': a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(v.begin(), v.end()); | ^~~~ | short a.cc:13:11: error: 'unique' was not declared in this scope 13 | v.erase(unique(v.begin(), v.end()), v.end()); | ^~~~~~
s076601035
p04012
C++
#include <stdio.h> #include<stdlib.h> int main(void) { // your code goes here char s[110]; scanf("%s", s); int l=strlen(s); int arr[26]={0}; int i; for(i=0; i<l; ++i){ ++arr[s[i]-97]; } for(i=0; i<26; ++i){ if(arr[i]%2!=0){ break; } } if(i==26) printf("Yes"); else printf("No"); }
a.cc: In function 'int main()': a.cc:8:15: error: 'strlen' was not declared in this scope 8 | int l=strlen(s); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<stdlib.h> +++ |+#include <cstring>...
s434234577
p04012
C++
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char s[110]; int c[26],i,t; memset(c, 0, 26*sizeof(c[0])); gets(s); i=0; while(s[i]!='\0') { t=s[i] - 'a'; c[t]++; i++; } for(i=0;i<26;i++) { if(c[i]%2!=0) { ...
a.cc: In function 'int main()': a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 12 | gets(s); | ^~~~ | getw
s640805578
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; sort(s.begin(),s.end()); if(w.size()%2 == 0) { for(int i=1;i<s.size();i+=2) { if(s[i] != s[i-1]) { cout << "No" << endl; return 0; } ...
a.cc: In function 'int main()': a.cc:12:8: error: 'w' was not declared in this scope 12 | if(w.size()%2 == 0) | ^
s252546685
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; sort(w.begin(),w.end()); if(w.size()%2 == 0) { for(int i=1;i<s.size();i+=2) { if(s[i] != s[i-1]) { cout << "No" << endl; return 0; } ...
a.cc: In function 'int main()': a.cc:14:23: error: 's' was not declared in this scope 14 | for(int i=1;i<s.size();i+=2) | ^
s693385813
p04012
C++
#include <iostream> #include <Cstring> using namespace std; int main() { char string[100]; int stringlong,n,s; n = 1; s = 0; cin >> string; stringlong = strlen(string); for (int i = 0; i < stringlong; ++i) { for (int j = 0; j < stringlong; ++j) { if (string[i] == string[j...
a.cc:2:10: fatal error: Cstring: No such file or directory 2 | #include <Cstring> | ^~~~~~~~~ compilation terminated.
s084722853
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin >> a; int arr[1000]; memset(arr,0,sizeof(arr)); for(int i=0;i<a.size();i++){ arr[(int)a[i]]++; } int c=0; for (int i="a";i<="z",i++){ if(arr[i]%2!=0) c++; } if (c!=0) cout << "No" <<endl; ...
a.cc: In function 'int main()': a.cc:13:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 13 | for (int i="a";i<="z",i++){ | ^~~ | | | const char* a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fper...
s509614937
p04012
Java
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Main main=new Main(); main.run...
Main.java:177: error: cannot find symbol public List<Entry<String, Integer>> sortValuesAsc() { ^ symbol: class Entry location: class MapUtilStringInt Main.java:191: error: cannot find symbol public List<Entry<String, Integer>> sortValuesDsc() { ^ symbol: class Entry location: cla...
s690702951
p04012
C++
#include <iostream> #include <algorithm> #include <cmath> #include <limits> #include <vector> using namespace std; using ll =long long; int main (void) { int A[26]={0},s,x; int main (void) { while(cin >> s) ++A[s-'a']; for (i=0;i<26;i++) A[i]%2?x=1:0; cout <<(x?"No":"Yes"); }
a.cc: In function 'int main()': a.cc:11:19: error: a function-definition is not allowed here before '{' token 11 | int main (void) { | ^ a.cc:15:4: error: expected '}' at end of input 15 | } | ^ a.cc:9:17: note: to match this '{' 9 | int main (void) { | ...
s637306736
p04012
C++
hthth
a.cc:1:1: error: 'hthth' does not name a type 1 | hthth | ^~~~~
s881285539
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; string a; cin >> a; vector<char> vector (a.size()); for(int i = 0;i < a.size();i++){ vec.at(i) = a.at(i); } sort(vec.begin(),vec.end()); for(int i = 0;i < vec.size();i = i + 2){ if(vec.at(i) == vec.at(i + 1)){ x++;} } if (x...
a.cc: In function 'int main()': a.cc:10:5: error: 'vec' was not declared in this scope 10 | vec.at(i) = a.at(i); | ^~~ a.cc:12:8: error: 'vec' was not declared in this scope 12 | sort(vec.begin(),vec.end()); | ^~~
s033505424
p04012
C++
#include <stdio.h> #include <algorithm> #include<string.h> using namespace std ; #define N 110 int main() { int i,j,m,flag=1; char x[N]; gets(x); m=strlen(x); int y[26]; memset(y,0,sizeof(y)); for(i=0;i<m;i++) { y[x[i]-'a']++; } for(j=0;j<26;j++) ...
a.cc: In function 'int main()': a.cc:10:7: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(x); | ^~~~ | getw
s341161046
p04012
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; #define MAX_N 105 char str[MAX_N]; int len,t; bool ok; int main(){ scanf("%s",str); ok = true; t = 1; len=(int)strlen(str); if(len == 1){ ok = false; } sort(str,str+len); for(int i...
a.cc: In function 'int main()': a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'? 21 | sort(str,str+len); | ^~~~ | short
s696033804
p04012
C++
#include <iostream> #include <cstdio> using namespace std; #define MAX_N 105 char str[MAX_N]; int len,t; bool ok; int main(){ scanf("%s",str); ok = true; t = 1; len=(int)strlen(str); if(len == 1){ ok = false; } sort(str,str+len); for(int i = 0;i < len;i++){ if(str[i] =...
a.cc: In function 'int main()': a.cc:15:14: error: 'strlen' was not declared in this scope 15 | len=(int)strlen(str); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <cstdio> +++ |+#include <cstring>...
s364395860
p04012
C++
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); auto ary = str.c_str(); bool ret = true; for (char c = 'a'; c <= 'z'; ++c) { ret &= (count(ary, ary + str.size(), c) % 2 == 0); if (!ret) { bre...
a.cc: In function 'int main()': a.cc:15:14: error: 'count' was not declared in this scope 15 | (count(ary, ary + str.size(), c) % 2 == 0); | ^~~~~
s566551174
p04012
C++
#include <iostream> #include <string> #include <map> #include <vector> using name space std; string w; bool f=true; vector <char> s; map <char,int> a; int main(){ cin>>w; for(int i=0;i<w.length();i++){ if(a[w[i]]==0){ s.push_back(w[i]); } a[w[i]]++; } for(int i=0;i<s.size();i++){ if(a[s[i...
a.cc:5:7: error: expected nested-name-specifier before 'name' 5 | using name space std; | ^~~~ a.cc:6:1: error: 'string' does not name a type; did you mean 'stdin'? 6 | string w; | ^~~~~~ | stdin a.cc:8:1: error: 'vector' does not name a type 8 | vector <char> s; | ^~~~~~ a.cc:...
s922417422
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; for(int i=0;i<w.size();i++) ch[w[i]]++; } bool can=true; map<char,int>::iterator it; for(it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can)cout<...
a.cc:15:3: error: expected unqualified-id before 'for' 15 | for(it=ch.begin();it!=ch.end();++it) | ^~~ a.cc:15:21: error: 'it' does not name a type; did you mean 'int'? 15 | for(it=ch.begin();it!=ch.end();++it) | ^~ | int a.cc:15:34: error: expected ...
s158256706
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; for(int i=0;i<w.size();i++) ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can)cout<<"Yes"...
a.cc:14:3: error: expected unqualified-id before 'for' 14 | for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) | ^~~ a.cc:14:45: error: 'it' does not name a type; did you mean 'int'? 14 | for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) | ...
s325539668
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; for(int i=0;i<strlen(w);i++) ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can)cout<<"Yes...
a.cc: In function 'int main()': a.cc:10:17: error: 'strlen' was not declared in this scope 10 | for(int i=0;i<strlen(w);i++) | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include<map> +++ |+#include <cstr...
s633421536
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; for(int i=0;i<w.strlen();i++) ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can)cout<<"Ye...
a.cc: In function 'int main()': a.cc:10:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'strlen' 10 | for(int i=0;i<w.strlen();i++) | ^~~~~~ a.cc: At global scope: a.cc:14:3: error: expected unqualified-id before 'for' 14 | for(map<char,int>:...
s580931309
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; while(true){ if(w[i].empty())break; ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can...
a.cc: In function 'int main()': a.cc:11:13: error: request for member 'empty' in 'w.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 11 | if(w[i].empty())bre...
s185614322
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; while(true){ if(w[i]==null)break; ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it) if(it->second%2!=0)can=false; if(can)c...
a.cc: In function 'int main()': a.cc:11:14: error: 'null' was not declared in this scope 11 | if(w[i]==null)break; | ^~~~
s576646909
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map<char,int> ch; string w; cin>>w; int i=0; while(true){ ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it) if(it->second%2!=0)can=false; if(can)cout<<"Yes"<<endl; else ...
a.cc: In function 'int main()': a.cc:14:57: error: could not convert '(((void)std::operator!=(it, ch.std::map<char, int>::end())), it.std::_Rb_tree_iterator<std::pair<const char, int> >::operator++())' from 'std::_Rb_tree_iterator<std::pair<const char, int> >::_Self' to 'bool' 14 | for(map<char,int>::iterator it=c...
s422776455
p04012
C++
#include<iostream> #include<string> #include<map> using namespace std; int main(){ map ch<char,int>; string w; cin>>w; int i=0; while(true){ ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it) if(it->second%2!=0)can=false; if(can)cout<<"Yes"<<endl; else ...
a.cc: In function 'int main()': a.cc:6:9: error: expected initializer before '<' token 6 | map ch<char,int>; | ^ a.cc:11:5: error: 'ch' was not declared in this scope 11 | ch[w[i]]++; | ^~ a.cc:14:34: error: 'ch' was not declared in this scope 14 | for(map<char,int>::iterator i...
s221775222
p04012
C++
#include<iostream> #include<string> using namespace std; int main(){ map ch<char,int>; string w; cin>>w; int i=0; while(true){ ch[w[i]]++; } bool can=true; for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it) if(it->second%2!=0)can=false; if(can)cout<<"Yes"<<endl; else cout<<"No"<<en...
a.cc: In function 'int main()': a.cc:5:3: error: 'map' was not declared in this scope 5 | map ch<char,int>; | ^~~ a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>' 1 | #include<iostream> +++ |+#include <map> 2 | #include<string> a.cc:10:...
s902896474
p04012
C++
#include<iostream> #include<map> #include<string> using namespace std; int main(){ map<char,int> mp; string s; cin>>s; for(int i=0;i<s.size;i++){ mp[s[i]]++; } int total=0; for(auto itr = mp.begin(); itr != mp.end(); ++itr) { total+=itr->second; } if(total%2==0)cout<<"Yes"<<endl; else cout...
a.cc: In function 'int main()': a.cc:9:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsign...
s305453610
p04012
C++
#include<iostream> #include<map> #include<string> using namespace std; int main(){ map<char,int> mp; string s; cin>>s; for(int i=0;i<s.size;i++){ mp[char(s.substr(i,1))]++; } int total=0; for(auto itr = mp.begin(); itr != mp.end(); ++itr) { total+=itr->second; } if(total%2==0)cout<<"Yes"<<en...
a.cc: In function 'int main()': a.cc:9:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsign...