submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s169566299
p04011
C
#include<stdio.h> #include <string.h> #include <stdlib.h> int main() { int n; int k; int x; int y; int sum; int i; // 個数のの入力 sum = 0; scanf("%d %d %d %d",&n,&k,&x,&y); for (i = 0,i < n, i++) { if (i < k ) { sum = sum + x; ...
main.c: In function 'main': main.c:19:30: error: expected ';' before ')' token 19 | for (i = 0,i < n, i++) { | ^ | ; main.c:19:30: error: expected expression before ')' token main.c: At top level: main.c:29:9: error: expected identifier or...
s904374843
p04011
C
#include<stdio.h> #include <string.h> #include <stdlib.h> int main() { int n; int k; int x; int y; int sum; int i; // 個数のの入力 sum = 0; scanf("%d %d %d %d",&n,&k,&x,&y); for (i = 0,i < n, i;;) { if (i < k ) { sum = sum + x; ...
main.c:29:9: error: expected identifier or '(' before 'return' 29 | return 0; | ^~~~~~ main.c:30:1: error: expected identifier or '(' before '}' token 30 | } | ^
s228720036
p04011
C
#include<stdio.h> #include <string.h> #include <stdlib.h> int main() { int n; int k; int x; int y; int sum; int i; // 個数のの入力 sum = 0; scanf("%d %d %d %d",&n,&k,&x,&y); for (i = 0,i < n, i;;) { if (i < k ) { sum = sum + x; ...
main.c:29:9: error: expected identifier or '(' before 'return' 29 | return 0; | ^~~~~~ main.c:30:1: error: expected identifier or '(' before '}' token 30 | } | ^
s662590753
p04011
C
#include<stdio.h> #include <string.h> #include <stdlib.h> int main() { int n; int k; int x; int y; int sum; int i; // 個数のの入力 sum = 0; scanf("%d %d %d %d",&n,&k,&x,&y); for (i = 0,i < n, i;;) { if (i < k ) { sum = sum + x; ...
main.c:29:9: error: expected identifier or '(' before 'return' 29 | return 0; | ^~~~~~ main.c:30:1: error: expected identifier or '(' before '}' token 30 | } | ^
s998244549
p04011
C++
#include<cstdio> 2 #include<functional> 3 #include<algorithm> 4 using namespace std; 5 6 int main(){ 7 8 int x,y,n,k,ans=0; 9 scanf("%d", &n); 10...
a.cc:2:5: error: stray '#' in program 2 | 2 #include<functional> | ^ a.cc:3:5: error: stray '#' in program 3 | 3 #include<algorithm> | ^ a.cc:2:3: error: expected unqualified-id before numeric constant 2 | 2 #include<functional> | ^ a.cc:5:3: error: expected unqualified-id ...
s611023695
p04011
C++
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; scanf("%d %d %d %d", &n, &k, &x, &y); int ans = k * x; ans = min(n, k) * x return 0; }
a.cc: In function 'int main()': a.cc:8:28: error: expected ';' before 'return' 8 | ans = min(n, k) * x | ^ | ; 9 | 10 | return 0; | ~~~~~~
s753922624
p04011
Java
/* Filename: ABC044A.java * Author: Mushiyo */ import java.util.Scanner; public class ABC044A { public static void main(String[] args) { Scanner input = new Scanner(System.in); while (input.hasNext()) { int N = input.nextInt(); int K = input.nextInt(); int X = input.nextInt(); int Y = input.nextI...
Main.java:7: error: class ABC044A is public, should be declared in a file named ABC044A.java public class ABC044A { ^ 1 error
s892534514
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; sort(w.begin(), w.end()) for (int i = 0; i < N; i++){ if(w.at(i)=w.at(i+1)){ int k=0; k++; } if(k%==0){cout<<"Yes"<<endl;} cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:10:27: error: expected ';' before 'for' 10 | sort(w.begin(), w.end()) | ^ | ; 11 | for (int i = 0; i < N; i++){ | ~~~ a.cc:11:18: error: 'i' was not declared in this scope 11 | ...
s523365642
p04012
C++
/*https://atcoder.jp/contests/abc044/tasks/abc044_b*/ #include<bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); #ifndef ONLINE_JUDGE // for getting input from input.txt freopen("input.txt", "r", stdin); // for writing output to output.txt freopen("output.txt", "w",...
a.cc: In function 'int main()': a.cc:19:36: error: 'hthth' was not declared in this scope 19 | for (int j = 0; j <hthth w.size(); j++) | ^~~~~ a.cc:19:41: error: expected ';' before 'w' 19 | for (int j = 0; j <hthth w.size(); j++) | ...
s833787074
p04012
C++
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::...
a.cc:1:3: error: expected id-expression before '::' token 1 | ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::...
s109280338
p04012
C++
#include <bits/stdc++.h> #define pb push_back #define speed ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0) #define ll long long #define fr first #define sc second using namespace std; ll ar[26] ; int main() { ///freopen("input.txt" , "r" , stdin ); ///freopen("output.txt", "w" , stdout ); ///Murtaz...
a.cc: In function 'int main()': a.cc:24:17: error: 's' was not declared in this scope 24 | if (s[j] == al[i]) | ^
s301713745
p04012
C++
#include <bits\stdc++.h> using namespace std; int main() { int cnt=0; bool b=false; string s; cin>>s; sort(s.begin(),s.end()); if(s.size()%2!=0){ cout<<"NO"; } else{ for(int i=0;i<s.size()-1;i++){ if(s[i]==s[i+1]){ cnt++; } ...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s003298850
p04012
C++
#include <bits/stdc++.h> #include <regex> using namespace std; //type typedef long long int ll; typedef pair<int, int> P; //定数 #define INF 1000000000000 //10^12:∞ #define MOD 1000000007 //10^9+7:合同式の法 #define MAXR 100000 //10^5:配列の最大のrange //略記 #define PB push_back //挿入 #define MP make_pair //pairのコンストラクタ #de...
a.cc: In function 'int main()': a.cc:173:12: error: 's' was not declared in this scope 173 | rep(i, s.size()) | ^ a.cc:122:39: note: in definition of macro 'rep' 122 | #define rep(i, n) for (ll i = 0; i < (n); i++) | ^ a.cc:174:9: error: 'a' was not d...
s841885112
p04012
C++
#include<iostream> #include<vector> #include<string> void yn(bool ok) { if(ok) cout<<"Yes"<<endl; else cout<<"No"<<endl; } using namespace std; int main(){ string s; cin>>s; vector<int> a(26,0); for(int i=0;i<s.size();i++) a[i-'a']++; bool ok=1; for(int i=0;i<26;i++) if(a[i]%2==1) ok=0; yn(ok); }
a.cc: In function 'void yn(bool)': a.cc:5:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 5 | if(ok) cout<<"Yes"<<endl; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern os...
s832390634
p04012
C++
#include <iostream> using namespace std; int main() { string s; cin>>s; vector<int> v(26, 0); for(char ch:s) { v[ch-'a']++; } for(int i = 0; i < 26; i++) { if(v[i]%2 == 1) { cout<<"Yes"; return 0; } } cout<<"No"; }
a.cc: In function 'int main()': a.cc:8:3: error: 'vector' was not declared in this scope 8 | vector<int> v(26, 0); | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <iostream> +++ |+#include <vector> 2 | us...
s635809685
p04012
C
#include<stdio.h> #include<string.h> int main(){ char w[101]; scanf("%s",w); int len=strlen(w); int alpha[26]={0}; for(int k=0;k<len;k++){ alpha[s[k]-'a']++; } int t=0; for(int k=0;k<26;k++){ if(alpha[k]%2!=0){ t++; } } if(t>0){ printf("No\n"); }else{ printf("Yes\...
main.c: In function 'main': main.c:11:11: error: 's' undeclared (first use in this function) 11 | alpha[s[k]-'a']++; | ^ main.c:11:11: note: each undeclared identifier is reported only once for each function it appears in
s701857364
p04012
C
#include<stdio.h> #include<string.h> int main(){ char w[101]; scanf("%s",w); int len=strlen(s); int alpha[26]={0}; for(int k=0;k<len;k++){ alpha[s[k]-'a']++; } int t=0; for(int k=0;k<26;k++){ if(alpha[k]%2!=0){ t++; } } if(t>0){ printf("No\n"); }else{ printf("Yes\...
main.c: In function 'main': main.c:7:18: error: 's' undeclared (first use in this function) 7 | int len=strlen(s); | ^ main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
s407111509
p04012
C
#include<stdio.h> #include<string.h> int main(){ char w[101]; scanf("%s",w); int len=strlen(s); int alpha[26]={0}; for(int k=0;k<len;k++){ alpha[s[k]-'a']++; } int t=0; for(int k=0;k<26;k++){ if(alpha[k]%2!=0){ t++; } } if(t>0){ printf("No\n"): }else{ printf("Yes\n...
main.c: In function 'main': main.c:7:18: error: 's' undeclared (first use in this function) 7 | int len=strlen(s); | ^ main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in main.c:21:19: error: expected ';' before ':' token 21 | printf("N...
s373214295
p04012
C
#include<stdio.h> #include<string.h> int count_of(char c,char* str,int length){ int count=0,i; for(i=0;i<length;i++){ if(c==str[i]) count++; } return count; } int main(){ char str[101]; scanf("%[^\n]%*c",str); int d = strlen(str); char seen[d]; int i,j,k; seen[0]=str[0]; k=1; for(i=1;i<d;i++...
main.c: In function 'main': main.c:21:10: error: 'arr' undeclared (first use in this function) 21 | if(arr[j]==arr[i]){ | ^~~ main.c:21:10: note: each undeclared identifier is reported only once for each function it appears in main.c:35:31: error: passing argument 2 of 'count_of' from incompatib...
s100661265
p04012
C++
#include <bits/stdc++.h> using namespace std; #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数 int lcm(int ...
a.cc: In function 'int main()': a.cc:70:12: error: request for member 'size' in 'w', which is of non-class type 'int' 70 | forn(i,w.size()){ | ^~~~ a.cc:47:41: note: in definition of macro 'forr' 47 | #define forr(i,a,b) ; for(int i=(a); i<(b); i++) | ...
s767276017
p04012
C++
#include <bits/stdc++.h> using namespace std; #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数 int lcm(int ...
a.cc:66:1: error: expected ',' or ';' before 'int' 66 | int main() { | ^~~
s630250902
p04012
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); if(s.length%2==1){ System.out.println("No"); }else{ Arrays.sort(list); String x = list[...
Main.java:8: error: cannot find symbol if(s.length%2==1){ ^ symbol: variable length location: variable s of type String 1 error
s708489089
p04012
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); Arrays.sort(list); String x = list[0]; int count = 0; for(int i=0;i<s.length;i++){ if(x.e...
Main.java:11: error: cannot find symbol for(int i=0;i<s.length;i++){ ^ symbol: variable length location: variable s of type String 1 error
s282026259
p04012
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); Arrays.sort(list); String x = list[0]; int count = 0; for(int i=0;i<s.length;i++){ if(x.e...
Main.java:23: error: reached end of file while parsing } ^ 1 error
s826207814
p04012
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); Arrays.sort(list); int[] a = new int[s.length()]; for(int i=0; i<s.length(); i++) a[i] = 0; int j=0; ...
Main.java:14: error: int cannot be dereferenced if(a[i].equals(a[i-1])) a[j]++; ^ 1 error
s791569872
p04012
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); Arrays.sort(list); int[] a = new int[s.length()]; for(int i=0; i<s.length(); i++) a[i] = 0; for(int i=...
Main.java:12: error: '.class' expected while(int j=0; j<s.length()){ ^ Main.java:12: error: > or ',' expected while(int j=0; j<s.length()){ ^ Main.java:12: error: not a statement while(int j=0; j<s.length()){ ^ 3 er...
s723547446
p04012
C++
#include<bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; using ull = unsigned long long; template<class T, class U> using P = pair<T,U>; template<class T> using Heap = priority_queue<T>; template<class T> using heaP...
a.cc: In function 'int main()': a.cc:47:5: error: 'bs' was not declared in this scope; did you mean 'bt'? 47 | bs ^= (1<<(e-'a')); | ^~ | bt a.cc:49:12: error: 'bs' was not declared in this scope; did you mean 'bt'? 49 | cout << (bs == 0 ? "Yes" : "No") << endl; | ^~ ...
s437463675
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; vector<int> vec(26); for(int i = 0; i < s.size(); i++){ vec[w[i]-'a'] += 1; } for(int i = 0; i < 26; i++){ if(a[i] % 2 != 0){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; }
a.cc: In function 'int main()': a.cc:8:22: error: 's' was not declared in this scope 8 | for(int i = 0; i < s.size(); i++){ | ^ a.cc:12:8: error: 'a' was not declared in this scope 12 | if(a[i] % 2 != 0){ | ^
s027681026
p04012
C++
#include <bits/stdc++.h> using namespace std; #define ll long long #define FOR(i, a, b) for(int i=(a);i<(b);++i) #define rep(i, n) FOR(i, 0, n) #define rep1(i, n) FOR(i, 1, n+1) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; --i) #define whole(x) (x).begin(),(x).end() #define rwhole(x) (x).rbegin(), (x).rend() #...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s544633183
p04012
C++
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) #define VL vector<ll> #define VS vector<string> int main(){ string w; cin >> w; map<char,int> ma; rep(i,0,w.size()){ ma[w[i]...
a.cc: In function 'int main()': a.cc:19:20: error: expression cannot be used as a function 19 | if(x.second()%2!=0) flg = false; | ~~~~~~~~^~
s876252892
p04012
Java
import java.util.Arrays; import java.util.Scanner; public class NewClass { public static void main(String[] args) { Scanner input = new Scanner (System.in); String s = input.next(); char arr [] = s.toCharArray(); Arrays.sort(arr); char x = arr[0]; int c = 0...
Main.java:3: error: class NewClass is public, should be declared in a file named NewClass.java public class NewClass { ^ 1 error
s518106088
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; int i,j; cin>>s; l=s.size(); int count=0; for(i=0;i<l;i++) { for(j=0;j<l;j++) { if(s[i]==s[j]) { count++; } } } if(count%2==0) { cout<<"YES"; ...
a.cc: In function 'int main()': a.cc:8:3: error: 'l' was not declared in this scope 8 | l=s.size(); | ^
s337623169
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; int i,j; cin>>s; l=v.size(); int count=0; for(i=0;i<l;i++) { for(j=0;j<l;j++) { if(a[i]==a[j] { count++; } } } if(count%2==0) { cout<<"YES"; ...
a.cc: In function 'int main()': a.cc:8:3: error: 'l' was not declared in this scope 8 | l=v.size(); | ^ a.cc:8:5: error: 'v' was not declared in this scope 8 | l=v.size(); | ^ a.cc:14:10: error: 'a' was not declared in this scope 14 | if(a[i]==a[j] | ^ a.cc:14:20: e...
s722836613
p04012
C++
#include<stdio.h> int main() { char c1,a1[101]; int a,b,d,i,l; gets(a1); l=strlen(a1); for(c1='a';c1<=122;c1++) { d=0; for(i=0;i<l;i++) { if (c1==a1[i]) d=d+1; } if(d%2 != 0) { printf("No"); brea...
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a1); | ^~~~ | getw a.cc:7:7: error: 'strlen' was not declared in this scope 7 | l=strlen(a1); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cst...
s744640893
p04012
C++
#include<stdio.h> int main() { char c1,a1[101]; int a,b,d,i,l; gets(a1); l=strlen(a1); for(c1='a';c1<=122;c1++) { d=0; for(i=0;i<l;i++) { if (c1==a1[i]) d=d+1; } if(d%2 != 0) { printf("No"); brea...
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(a1); | ^~~~ | getw a.cc:7:7: error: 'strlen' was not declared in this scope 7 | l=strlen(a1); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cst...
s485494131
p04012
C++
#include<bits/stdc++.h> using namespace std; #define MAX_SIZE 100 // Maximum string size int main() { char str[MAX_SIZE]; int i, len, status; int freq[26]; gets(str); len = strlen(str); /* Initialize frequency of each character to 0 */ for(i=0; i<26; i++) { freq[i] = 0; }...
a.cc: In function 'int main()': a.cc:11:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(str); | ^~~~ | getw
s611351965
p04012
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; signed main() { string w; cin >> w; vector<int> a(26); int n = w.size(); rep(i, n) { a[w[i] - 'a']++; } bool isok = true; rep(i, 26) { if(a[i] != 2|| a[i] != 0) { isok = false; } if...
a.cc: In function 'int main()': a.cc:21:2: error: expected '}' at end of input 21 | } | ^ a.cc:6:15: note: to match this '{' 6 | signed main() { | ^
s589867129
p04012
Java
#include<bits/stdc++.h> using namespace std; int main() { int ar[26],i; string s; cin>>s; for(i=0;i<26;i++){ ar[i]=0; // a=0, b=1 ,z=26 ; } //counting sort for(i=0;i<s.size();i++){ int p=s[i]-97; ar[p]++; } string ans = "Yes"; for (int i = 0;i < 26;i++){...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:5: error: not a statement int ar[26],i; ^ Main.java:7: error: not a statement cin>>s; ^ Main.java:29: error: not a...
s305355007
p04012
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const long long INF=1e9+5; const string alp="abcdefghijklmnopqrstuvwxyg"; //26 const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYG"; typedef long long ll; int main() { ...
a.cc: In function 'int main()': a.cc:33:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 33 | cout<<ans<<endl; | ^~~ | abs
s702029866
p04012
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const long long INF=1e9+5; const string alp="abcdefghijklmnopqrstuvwxyz"; const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; typedef long long ll; int main() { str...
a.cc: In function 'int main()': a.cc:17:9: error: 'judje' was not declared in this scope; did you mean 'judge'? 17 | judje[j]++; | ^~~~~ | judge
s967772600
p04012
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const long long INF=1e9+5; const string alp=“abcdefghijklmnopqrstuvwxyg”; //26 const string ALP=“ABCDEFGHIJKLMNOPQRSTUVWXYG”; typedef long long ll; int main() { ...
a.cc:6:18: error: extended character “ is not valid in an identifier 6 | const string alp=“abcdefghijklmnopqrstuvwxyg”; //26 | ^ a.cc:6:18: error: extended character ” is not valid in an identifier a.cc:7:18: error: extended character “ is not valid in an identifier 7 | const string ALP=“...
s284451672
p04012
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const long long INF=1e9+5; const string alp=“abcdefghijklmnopqrstuvwxyg” //26; const string ALP=“ABCDEFGHIJKLMNOPQRSTUVWXYG”; typedef long long ll; int main() { ...
a.cc:6:18: error: extended character “ is not valid in an identifier 6 | const string alp=“abcdefghijklmnopqrstuvwxyg” //26; | ^ a.cc:6:18: error: extended character ” is not valid in an identifier a.cc:7:18: error: extended character “ is not valid in an identifier 7 | const string ALP=“...
s254920465
p04012
C++
#include<iostream> using namespace std; int main() { char ar[1000]; ar['a']=0;ar['b']=0;ar['c']=0;ar['d']=0;ar['e']=0;ar['f']=0;ar['g']=0;ar['h']=0;ar['i']=0; ar['j']=0;ar['k']=0;ar['l']=0;ar['m']=0;ar['n']=0;ar['o']=0;ar['p']=0;ar['q']=0;ar['r']=0; ar['s']=0;ar['t']=0;ar['u']=0;ar['v']=0;ar['w']=0;ar['...
a.cc: In function 'int main()': a.cc:27:41: error: unable to find numeric literal operator 'operator""aba' 27 | &&(ar['y']==0||ar['y']%2==0)&&(ar['z']==0aba||ar['z']%2==0)) | ^~~~
s784260871
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin >> str; int sz; sz = str.size(); vector<int> alp(26,0); for(int i=0; i<sz; i++){ int tmp; tmp = stoi(str[i]); alp[tmp]++; } for(int i=0; i<26; i++){ if(alp[i]%2==1){ cout ...
a.cc: In function 'int main()': a.cc:11:19: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 11 | tmp = stoi(str[i]); | ~~~~^~~~~~~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c+...
s191931507
p04012
C++
#include <bits/stdc++.h> using namespace std; int nain(){ string w; cin >>w; //ASCII文字集合を作る。 int alp[27]={}; for(int i=0;i<w.size();i++){ //ASCII文字の知識 alp[w[i]-'a']++; } for(int i=0;i<26;i++){ //一つでも奇数回があれば、終了する。 if(alp[i]%2 != 0){ cout << "No" << endl; return 0; } } //奇数以外は偶...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s065883795
p04012
C++
#include<bits/stdc++.h> using namespace std; int nain(){ string w; cin >>w; //ASCII文字集合を作る。 int alp[26]={}; for(int i=0;i<w.length();i++){ //ASCII文字の知識 alp[w[i]-'a']++; } for(int i=0;i<26;i++){ //一つでも奇数回があれば、終了する。 if(alp[i]%2 != 0){ cout << "No" << endl; return 0; } } //奇数以外は偶...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s865068037
p04012
C++
#include <bits/stdc++.h> #include<cmath> #define N 100005 #define A 1000005 #define MOD 998244353 //1000000007 // //100000000 #define INF 1000000000000000000 #define ll int //long long //#define M_PI 3.141592653589793238463 using namespace std; #define pii pair<ll, ll> #define piii pair<ll, pii> #define ft first #def...
a.cc: In function 'void solve()': a.cc:43:19: error: conflicting declaration 'std::map<char, int> s' 43 | map<char, ll> s; | ^ a.cc:41:12: note: previous declaration as 'std::string s' 41 | string s; | ^ a.cc:44:20: error: 'mp' was not declared in this scope 44 ...
s313139955
p04012
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main() { string w; cin >> w; int s = w.size(); vector<int> a(26); for (int i = 0; i < s; i ++) { a.at((int)(s.at(i)) - 97) ++; } for (int i = 0; i < 26; i ++) { if (a.at(i) % 2 != 0) { cout << "No...
a.cc: In function 'int main()': a.cc:16:18: error: request for member 'at' in 's', which is of non-class type 'int' 16 | a.at((int)(s.at(i)) - 97) ++; | ^~
s181696874
p04012
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main() { string w; cin >> w; int s = w.size(); vector<int> a(26); for (int i = 0; i < s; i ++) { a.at((int)s.at(i) - 97) ++; } for (int i = 0; i < 26; i ++) { if (a.at(i) % 2 != 0) { cout << "No";...
a.cc: In function 'int main()': a.cc:16:17: error: request for member 'at' in 's', which is of non-class type 'int' 16 | a.at((int)s.at(i) - 97) ++; | ^~
s892924252
p04012
C++
#include <bits/stdc++.h> #define repl(i, l, r) for (int i = l; i < r; i++) #define rep(i, n) repl(i, 0, n) using namespace std; using ll = long long; using Graph = vector<vector<int>>; using P = pair<int, int>; int a[26]; int a[26]; int main() { string w; cin >> w; rep(i, w.size()) a[w[i] - 'a']++; s...
a.cc:11:5: error: redefinition of 'int a [26]' 11 | int a[26]; | ^ a.cc:9:5: note: 'int a [26]' previously declared here 9 | int a[26]; | ^
s826816713
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s,sum=0; cin >> s; int alpha[26]; for(int i=0;i<26;i++){ alpha[i] = 0; } for(int i=0;i<s.size();i++){ alpha[s[i]-'a']++; } for(int i=0;i<26;i++){ if(alpha[i]%2==1){ sum++; } } if(sum>0){ cout << "No" << endl; ...
a.cc: In function 'int main()': a.cc:16:10: error: no 'operator++(int)' declared for postfix '++' [-fpermissive] 16 | sum++; | ~~~^~ a.cc:19:9: error: no match for 'operator>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 19 | if(sum>0){ | ~~~^...
s664163997
p04012
C++
#include <iostream> #include <vector> #include <string> using namespace std; int main() { string w = ""; cin >> w; bool test = true; vector <char> tested; for (int i = 0; i < w.size()-1; i++) { if (find(tested.begin(), tested.end(), w[i]) == tested.end()) { int...
a.cc: In function 'int main()': a.cc:15:17: error: no matching function for call to 'find(std::vector<char>::iterator, std::vector<char>::iterator, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)' 15 | if (find(tested.begin(), tested.end(), w[i]) == tested.end()) | ~~~~^...
s495022139
p04012
C++
#include <iostream> #include <vector> #include <string> using namespace std; int main() { string w = ""; cin >> w; sort(w.begin(), w.end()); bool test = true; vector <char> tested; for (int i = 0; i < w.size()-1; i++) { if (find(tested.begin(), tested.end(), w[i]) == tested.end()) ...
a.cc: In function 'int main()': a.cc:11:5: error: 'sort' was not declared in this scope; did you mean 'short'? 11 | sort(w.begin(), w.end()); | ^~~~ | short a.cc:16:17: error: no matching function for call to 'find(std::vector<char>::iterator, std::vector<char>::iterator, __gnu_cxx::__alloc_t...
s152705978
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; vector<bool> c(26, true); bool flag = true; cin << s; for (int i = 0; i < s.size(); i++) c[s[i] - 'a'] = !c[s[i] - 'a']; for (int i = 0; i < 26; i++) { if (!c[i]) { flag = false; break; } } cout << (flag...
a.cc: In function 'int main()': a.cc:10:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 10 | cin << s; | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_strin...
s956206298
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; int s=0; for(int i=0;i<w.size();i++){ int r=0; for(int j=0;j<w.size();j++){ if(w.at(i) == w.at(j)){ r++; } if(r%2 != 0){ s++; } } if(s == 0){ cout << "Yes" <<endl; } el...
a.cc: In function 'int main()': a.cc:26:2: error: expected '}' at end of input 26 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s003922164
p04012
C++
#include <bits/stdc++.h> using namespace std; #define mem(a, b) memset(a, (b), sizeof(a)) #define fore(i,a) for(int i=0;i<a;i++) #define fore1(i,j,a) for(int i=j;i<a;i++) #define print(ar) for(int i=0;i<ar.size();i++)cout<<ar[i]<<" "; #define END cout<<'\n' const double pi=acos(-1.0); typedef pair<int, int> PII; ty...
a.cc: In function 'int main()': a.cc:74:15: error: expected primary-expression before '.' token 74 | break;}. | ^ a.cc:75:7: error: expected unqualified-id before '}' token 75 | } | ^ a.cc:77:6: error: 'flag' was not declared in this scope 77 | if(flag)cout<<"Yes"...
s761715878
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ bool even=true; string A; cin >> A; for (char c='a'; c<='z';c++){ int cnt=0; for (int i=0; i<A.length();i++){ if(A.at(i)=='c'){ cnt++; } } if (cnt%2==1){ even=false; } } cout << (even?"Yes"; "No") << end...
a.cc: In function 'int main()': a.cc:19:22: error: expected ':' before ';' token 19 | cout << (even?"Yes"; "No") << endl; | ^ | : a.cc:19:22: error: expected primary-expression before ';' token a.cc:19:22: error: expected ')' before ';' token 19 | cout << ...
s793712381
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; map<char,int>Map; for(int i = 0; i < w.size(); i++) { Map[w[i]]++; } for(int i = 0; i < w.size(); i++) { if(map[w[i]]%2 == 1) { cout << "No" << endl; return 0; } } ...
a.cc: In function 'int main()': a.cc:12:15: error: expected unqualified-id before '[' token 12 | if(map[w[i]]%2 == 1) { | ^
s663188566
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ int ad[26]; string s; cin>>s; for(int i=0;i<26;i++){ ad[i]=0; } for(int i=0;i<s.size();i++){ ad[s[i]-'a']++; } bool ad=false; for(int i=0;i<26;i++){ if(ad[i]%2!=0){ ad=true; break; } } if(ad) cout<<"No"<<endl; ...
a.cc: In function 'int main()': a.cc:14:8: error: conflicting declaration 'bool ad' 14 | bool ad=false; | ^~ a.cc:5:8: note: previous declaration as 'int ad [26]' 5 | int ad[26]; | ^~ a.cc:17:9: error: incompatible types in assignment of 'bool' to 'int [26]' 17 | ad=true; ...
s953927562
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; for(int i=0;i<w.size();i++){ int index=0; for(int j=0;j<w.size();j++){ if(w.at(j)==w.at(i)){ index++: } } if(index%2==1){ break+ } } if(index%2==1){ cout << "No" << endl; ...
a.cc: In function 'int main()': a.cc:13:16: error: expected ';' before ':' token 13 | index++: | ^ | ; a.cc:17:12: error: expected ';' before '+' token 17 | break+ | ^ | ; a.cc:18:5: error: expected primary-expression before...
s883947440
p04012
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string word; cin>>word; int counter=0; for(int i=0;i<word.end();i++) { counter=count(word.begin(),word.end(),word[i]); if(counter%2!=0) { cout<<"No"; exit(0); }...
a.cc: In function 'int main()': a.cc:10:18: error: no match for 'operator<' (operand types are 'int' and 'std::__cxx11::basic_string<char>::iterator') 10 | for(int i=0;i<word.end();i++) | ~^~~~~~~~~~~ | | | | int std::__cxx11::basic_...
s457180236
p04012
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string word; cin>>word; int counter=0; for(int i=0;i<word.end();i++) { counter=count(word.begin(),word.end(),word[i]); if(counter%2!=0) cout<<"No"; } cout<<"Yes"; return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: no match for 'operator<' (operand types are 'int' and 'std::__cxx11::basic_string<char>::iterator') 10 | for(int i=0;i<word.end();i++) | ~^~~~~~~~~~~ | | | | int std::__cxx11::basic_...
s788206160
p04012
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int ctoi(const char c) { if ('0' <= c && c <= '9') return (c - '0'); return -1; } vector<int> input(int n) { vector<int> vec(n); for (int i = 0; i < n; i++) { cin >> vec.at(i); } return vec...
a.cc: In function 'int main()': a.cc:102:40: error: expected ';' before ')' token 102 | for (int i = 1; i <= w.size(), i+=2) { | ^ | ;
s661705173
p04012
C++
int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; char str=' '; cout<<data.size(); for(int i=0;i<data.size();i++){ if(str==data[i]){ count+=1; } else{ if(count%2!=0){ cout<<"No"; break; } str=data[i]; count+=1...
a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string data; | ^~~~~~ a.cc:3:11: error: 'cin' was not declared in this scope 3 | getline(cin,data); | ^~~ a.cc:3:15: error: 'data' was not declared in this scope 3 | getline(cin,data); ...
s263574435
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; char str="asd"; for(int i=0;i<data.size();i++){ if(str!=data[i]){ if(count%2!=0){ cout<<"No"; break; } ...
a.cc: In function 'int main()': a.cc:11:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | char str="asd"; | ^~~~~ | | | const char*
s086486993
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; string str="asd"; for(int i=0;i<data.size();i++){ if(str!=data[i]){ if(count%2!=0){ cout<<"No"; break; } ...
a.cc: In function 'int main()': a.cc:13:11: error: no match for 'operator!=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 13 | if(str!=data[i]){ In file included from /usr/include/c++/14/iosfwd:42, ...
s674290635
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; string str="asd" for(int i=0;i<data.size();i++){ if(str!=data[i]){ if(count%2!=0){ cout<<"No"; break; } ...
a.cc: In function 'int main()': a.cc:12:3: error: expected ',' or ';' before 'for' 12 | for(int i=0;i<data.size();i++){ | ^~~ a.cc:12:15: error: 'i' was not declared in this scope 12 | for(int i=0;i<data.size();i++){ | ^
s837418994
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; char s="sd"; for(int i=0;i<data.size();i++){ if(s!=data[i]){ if(count%2!=0){ cout<<"No"; break; } s=dat...
a.cc: In function 'int main()': a.cc:11:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | char s="sd"; | ^~~~ | | | const char*
s982168275
p04012
C++
#include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string data; getline(cin,data); sort(data.begin(),data.end()); int count; char s="sd"; for(int i=0;i<data.size(),i++){ if(s!=data[i]){ if(count%2!=0){ cout<<"No"; break; } s=dat...
a.cc: In function 'int main()': a.cc:11:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | char s="sd"; | ^~~~ | | | const char* a.cc:12:32: error: expected ';' before ')' token 12 | for(int i=0;i<data.size(),i++){ | ...
s591675516
p04012
C++
#include <bits/stdc++.h> #define rep(i,n) for (int (i) = 0; (i) < (n); i++) #define ll long long using namespace std; int main() { string w; cin >> w; string nomal="abcdefghijklmnopqrstuvwxyz"; for (int i=0 ;i<nomal.size();i++) { int ans=0; for (int j=0 ; j < nomal.size(); j++) { if (nomal.at(i)=...
a.cc: In function 'int main()': a.cc:24:2: error: expected '}' at end of input 24 | } | ^ a.cc:6:12: note: to match this '{' 6 | int main() { | ^
s030741361
p04012
C++
#include <bits/stdc++.h> #define rep(i,n) for (int (i) = 0; (i) < (n); i++) #define ll long long using namespace std; int main() { string w; cin >> w; string nomal="abcdefghijklmnopqrstuvwxyz"; for (int i=0 ;i<nomal.size();i++) { int ans=0; for (int j=0 ; j < nomal.size(); j++) { if (nomal.at(i)=...
a.cc: In function 'int main()': a.cc:24:2: error: expected '}' at end of input 24 | } | ^ a.cc:6:12: note: to match this '{' 6 | int main() { | ^
s758657342
p04012
C++
#include <bits/stdc++.h> #define rep(i,n) for (int (i) = 0; (i) < (n); i++) #define ll long long using namespace std; int main() { string w; cin >> w; string nomal="abcdefghijklmnopqrstuvwxyz"; for (int i=0 ;i<nomal.size();i++) { int ans=0; for (int j=0 ; j < nomal.size(); j++) { if (nomal.at(i)=...
a.cc: In function 'int main()': a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:10:37: note: to match this '{' 10 | for (int i=0 ;i<nomal.size();i++) { | ^ a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:6:12: note: to matc...
s649225607
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { stirng s; cin>>s; for(int i=0;i<s.size();i++){ int a=0; for(int j=0;j<s.size();j++){ if(s.at(i)==s.at(j)){ a++; } } if(a%2==1){ cout<<"No"<< endl; return 0; } } cout<<"Yes"<<endl; }
a.cc: In function 'int main()': a.cc:5:3: error: 'stirng' was not declared in this scope 5 | stirng s; | ^~~~~~ a.cc:6:8: error: 's' was not declared in this scope 6 | cin>>s; | ^
s588377294
p04012
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF 1e9 #define PI 3.14159265359 #define MOD 1000000007 #define ALL(v) v.begin(),v.end() #define ALLR(v) v.rbegin(),v.rend() typedef long long ll; const int dx[4] = {1,0,-1,0}; const int dy[4] = {0,1,0,-1}; //isPr...
a.cc: In function 'int main()': a.cc:25:11: error: 'class std::map<char, int>' has no member named 'second' 25 | if(mp.second%2!=0){ | ^~~~~~
s308461538
p04012
C
#include <stdio.h> int main() { char w[100],a; bool bf = 0; int c = 0; scanf("%s", w, 100); //アルファベット順 for (int i = 0;w[i] != '\0';i++) { for (int ii = i + 1;w[ii] != '\0';ii++) { if (w[i] > w[ii]) { a = w[i]; w[i] = w[ii]; w[ii] = a; } } } //カウント for (int i = 0;w[i] != '\0';i++) { fo...
main.c: In function 'main': main.c:4:9: error: unknown type name 'bool' 4 | bool bf = 0; | ^~~~ main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 1 | #include <stdio.h> +++ |+#include <stdbool.h> 2 | int main() {
s157073037
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; vector<char> A = {a, b, c, d, e, f, g, h, i, j, k, l, m, o, p, q, r, s, t, u, v, w, x, y, z}; bool x = true; for(int i = 0; i < 26; i++){ if(count(s.begin(), s.end(), A[i]) % 2 == 1){ x = false; ...
a.cc: In function 'int main()': a.cc:8:21: error: 'a' was not declared in this scope 8 | vector<char> A = {a, b, c, d, e, f, g, h, i, j, k, l, m, o, p, q, r, s, t, | ^ a.cc:8:24: error: 'b' was not declared in this scope 8 | vector<char> A = {a, b, c, d, e, f, g, h, i, j, k, l, m, ...
s625804449
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; vector<char> s_vec(s.size()); for(int i = 0; i < s.size(); i++){ cin >> s[i]; } sort(s_vec.begin(), s_vec.end()); bool x = true; int n = 0; int m; while(n < s.size()){ m = count(s_vec.begin(), s_vec.end(), ...
a.cc: In function 'int main()': a.cc:23:14: error: expected ';' before '}' token 23 | n = n + m | ^ | ; 24 | } | ~ a.cc:30:5: error: 'cour' was not declared in this scope 30 | cour << "No" << endl; | ^~~~
s078240918
p04012
C++
#include<bits/stdc++.h> using namespace std; int main(){ int s; cin >> s; vector<char> s_vec(s.size()); for(int i = 0; i < s.size(); i++){ cin >> s[i]; } sort(s_vec.begin(), s_vec.end()); bool x = true; int n = 0; int m; while(n < s.size()){ m = count(s_vec.begin(), s_vec.end(), s[n...
a.cc: In function 'int main()': a.cc:7:24: error: request for member 'size' in 's', which is of non-class type 'int' 7 | vector<char> s_vec(s.size()); | ^~~~ a.cc:8:24: error: request for member 'size' in 's', which is of non-class type 'int' 8 | for(int i = 0; i < s.size(); i++...
s484112327
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; sort(s.begin(),s.end()); for(char c:s){ if(c=='I') x++; else x--; ans = max(ans,x); } cout << s << endl; }
a.cc: In function 'int main()': a.cc:9:16: error: 'x' was not declared in this scope 9 | if(c=='I') x++; | ^ a.cc:10:10: error: 'x' was not declared in this scope 10 | else x--; | ^ a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'? 11 | ...
s079773786
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; map<char, int>count; for(char c : s)count[c]++; for(auto v : count) { if(v->second%2 != 0){ puts("No"); exit(0); } } puts("Yes");...
a.cc: In function 'int main()': a.cc:12:11: error: base operand of '->' has non-pointer type 'std::pair<const char, int>' 12 | if(v->second%2 != 0){ | ^~
s582767584
p04012
C++
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define OP ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define F first #define S second #define sz(x) (int)x.size() #define all(x) (x).begin(), (x).end() #define rep(i, n) for(int i = 0; i < n; ++i) #define repr(i,n) for(int i = n - 1; i >= 0; ...
a.cc: In function 'void solve()': a.cc:46:25: error: no match for 'operator[]' (operand types are 'std::unordered_map<char, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 46 | for(char c: s) m[s]++; | ^ In file included from /usr/include/c++/14/unordered_map:4...
s479332417
p04012
C++
// When you are hungry for something and you're determined and you're focused // and you're committed to something it's hard to surrender, isn't it? #include<bits/stdc++.h> using namespace std; #define int ll #define endl "\n" #define ff first #define ss ...
a.cc: In function 'int32_t main()': a.cc:174:11: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, long long int>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 174 | ma[str[i]]++; | ^ In file included from /...
s717560905
p04012
C++
// When you are hungry for something and you're determined and you're focused // and you're committed to something it's hard to surrender, isn't it? #include<bits/stdc++.h> using namespace std; #define int ll #define endl "\n" #define ff first #define ss ...
a.cc: In function 'int32_t main()': a.cc:177:12: error: 'm' was not declared in this scope 177 | if(m[i]%2==1) { | ^
s028155741
p04012
C++
#include <cstdio> #include <cmath> #include <cstring> #include <iostream> #include <algorithm> #include <string> #include <set> #include <map> using namespace std; typedef long long ll; typedef unsigned long long ull; const double pi = acos(-1); const int maxn = 2e6 + 10; const double eps = 1e-8; const ll mod = 1e9 + ...
a.cc: In function 'int main()': a.cc:38:17: error: expected ';' at end of input 38 | return 0 | ^ | ; a.cc:38:17: error: expected '}' at end of input a.cc:25:1: note: to match this '{' 25 | { | ^
s519264221
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; for (int i=0;i<w.length();++i){ for (int j=i+1;j<w.length();++j){ int cnt=0; if (w[i]==w[j]) cnt++; } } int ans; int ans=cnt; if (ans%2==0) puts("Yes"); else puts("No"); }
a.cc: In function 'int main()': a.cc:16:7: error: redeclaration of 'int ans' 16 | int ans=cnt; | ^~~ a.cc:15:7: note: 'int ans' previously declared here 15 | int ans; | ^~~ a.cc:16:11: error: 'cnt' was not declared in this scope; did you mean 'int'? 16 | int ans=cnt; | ...
s407095352
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; for (int i=0;i<w.length();++i){ for (int j=i+1;j<w.length();++j){ int cnt=0; if (w[i]==w[j]) cnt++; } } int cnt=ans; if (ans%2==0) puts("Yes"); else puts("No"); }
a.cc: In function 'int main()': a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'? 15 | int cnt=ans; | ^~~ | abs
s543276494
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; for (int i=0;i<w.length();++i){ for (int j=i+1;j<w.length();++j){ int cnt=0; if (w[i]==w[j]) cnt++; } } cout << cnt << endl; if (cnt%2==0) puts("Yes"); else puts("No"); }
a.cc: In function 'int main()': a.cc:15:11: error: 'cnt' was not declared in this scope; did you mean 'int'? 15 | cout << cnt << endl; | ^~~ | int
s655208692
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; for (int i=0;i<w.length();++i){ for (int j=i+1;j<w.length();++j){ int cnt=0; if (w[i]==w[j]) cnt++; } } if (cnt%2==0) puts("Yes"); else puts("No"); }
a.cc: In function 'int main()': a.cc:15:7: error: 'cnt' was not declared in this scope; did you mean 'int'? 15 | if (cnt%2==0) puts("Yes"); | ^~~ | int
s751092339
p04012
C++
# from math import factorial,sqrt,ceil,gcd # from itertools import permutations as permus from collections import deque,Counter # import re # from decimal import Decimal, getcontext # # getcontext().prec = 1000 # # eps = Decimal(10) ** (-100) import numpy as np # from scipy.sparse.csgraph import shortest_path, dijkstr...
a.cc:1:3: error: invalid preprocessing directive #from 1 | # from math import factorial,sqrt,ceil,gcd | ^~~~ a.cc:2:3: error: invalid preprocessing directive #from 2 | # from itertools import permutations as permus | ^~~~ a.cc:4:3: warning: #import is a deprecated GCC extension [-Wdeprecated] ...
s174203942
p04012
C++
#include <string> #include <iostream> #include <map> using namespace std; int main(){ string s; cin >> s; map<char,int> c; for(int i=0;i<s.length();i++){ c[s[i]]++; } string ans="Yes"; for(auto a:c) { if(c.second%2!=0) ans="No"; } cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:10: error: 'class std::map<char, int>' has no member named 'second' 13 | if(c.second%2!=0) ans="No"; | ^~~~~~
s165335514
p04012
C++
#include <bits/stdc++.h> using namespace std; int main() { string w; cin >> w; int length = w.size(); vector<char> ww(length); for (int i = 0; i < length; i++) { ww[i] = w[i]; } sort(ww.begin(), ww.end()); bool can = true; for (int i = 0; i < length-1; i++) { if (ww[i] == ww[i+1]) { can...
a.cc: In function 'int main()': a.cc:20:26: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 20 | if (can) cout << "Yes" << end; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, ...
s182136136
p04012
C++
#include<iostream> using namespace std; int main(){ string w; cin >> w; int l = (int)w.length(); int count[24] = {0}; string ret = "Yes"; for(int i=0; i<l; i++) count[ w[i] - 'a' ]++; for(int i=0; i<24; i++) if(cout[i]%2 == 1) ...
a.cc: In function 'int main()': a.cc:15:16: error: no match for 'operator[]' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 15 | if(cout[i]%2 == 1) | ^
s645066171
p04012
C++
#include<iostream> using namespace std; int main(){ string w; cin >> w; int l = (int)w.length(); int count[24] = {0}; string ret = "Yes"; for(int i=0; i<w; i++) count[ w[i] - 'a' ]++; for(int i=0; i<24; i++) if(cout[i]%2 == 1) ret = "No"; cout << ret << endl; }
a.cc: In function 'int main()': a.cc:12:17: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 12 | for(int i=0; i<w; i++) | ~^~ | | | | | std::string {aka std::__cxx11::basic_string<cha...
s649414961
p04012
C++
#include <bits/stdc++.h> using namespace std; #define ll long long #define l long #define pb push_back #define mp make_pair #define mt make_tuple int main() { // your code goes here //ifstream cin("input.txt"); //ofstream cout("output.txt"); ios_base::sync_with_stdio(false); cin.tie(NULL); mp<char,int> m...
a.cc: In function 'int main()': a.cc:17:21: error: expected ';' before 'make_pair' 17 | mp<char,int> mp; | ^ | ; a.cc:22:15: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka c...
s711182805
p04012
C++
#include <bits/stdc++.h> using namespace std; int main(){ string w; cin >> w; bool res = true; sort(begin(w),end(w)); if(w.size()%2 == 1) { res = false; cout << "No" << endl; } elsa{ for(int i =0;i < w.size();i++){ if(w[i-1] == w[i] && w[i] != w[i+1]){ ...
a.cc: In function 'int main()': a.cc:13:9: error: 'elsa' was not declared in this scope 13 | elsa{ | ^~~~
s717526005
p04012
C++
Source Code Copy Copy #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; vector<int> a(26, 0); for(auto el : s){ ++a[el-'a']; } bool res = true; for(in...
a.cc:1:1: error: 'Source' does not name a type 1 | Source Code | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:5: /usr/incl...
s295715329
p04012
C++
#include"bits/stdc++.h" using namespace std; int main() { string w; cin >> w; int count = 0; char c; bool ok = false; for (int i = 0; i < 26; i++) { c++; for (int i = 0; i < w.size(); i++) { if (w[i] == c) { count++; } if (count % 2 == 0) { ok = true; } } if (ok) { cout << "Yes" ...
a.cc: In function 'int main()': a.cc:28:10: error: expected '}' at end of input 28 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s383200203
p04012
C++
#include<bits/stdc++.h> #include<string.h> #include"stdio.h" using namespace std; int main() { char a[105]; gets(a); int n=strlen(a); sort(a,a+n); char z=a[0]; int flag=0; //puts(a); int count=1; for(int i =1;i<n;i++){ if(z==a[i]) {count++; z=a[i];} else if (z!=a[i]){ // cout<<...
a.cc: In function 'int main()': a.cc:10:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s460763963
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { char a[105]; gets(a); int n=strlen(a); sort(a,a+n); char z=a[0]; int flag=0; //puts(a); int count=1; for(int i =1;i<n;i++){ if(z==a[i]) {count++; z=a[i];} else if (z!=a[i]){ // cout<<count; if(count%2!=0){flag=1;br...
a.cc: In function 'int main()': a.cc:8:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(a); | ^~~~ | getw
s883480478
p04012
C++
#include<bits/stdc++.h> using namespace std; int main() { char a[105]; gets(a); int n=strlen(a); sort(a,a+n); char z=a[0]; int flag=0; //puts(a); int count=1; for(int i =1;i<n;i++){ if(z==a[i]) {count++; z=a[i];} else if (z!=a[i]){ // cout<<count; if(count%2!=0){flag=1;br...
a.cc: In function 'int main()': a.cc:8:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | gets(a); | ^~~~ | getw