criyle/codenet-compile-errors huggingface dataset:
Language: C++

program prob1
    implicit none
    character(19) :: s, t, u, v
    read(*,*) s, t, u
    v = trim(adjustl(s)) // ' ' // trim(adjustl(t)) // ' ' // trim(adjustl(u))
    write(*,'(a)') v

    stop
contains
end program prob1

Compiler output:
a.cc:6:13: warning: multi-character character constant [-Wmultichar]
    6 |     write(*,'(a)') v
      |             ^~~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program prob1
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;

int main() {
  string s;
  cin >> s;
  s.at(5)=" ";
  s.at(12)=" ";
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   s.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:11:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   s.at(12)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include<stdio.h>
int main()
{
    int i;
    char st[25];
    gets(st);
    st[5]=' ';
    st[13]=' ';
    printf("%s\n",st);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |     gets(st);
      |     ^~~~
      |     getw
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    System.out.println(s.replace(",", " ");
  }
}


Compiler output:
Main.java:7: error: ')' or ',' expected
    System.out.println(s.replace(",", " ");
                                          ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s[] = sc.next().split(",");
    System.out.println(s.join(" "));
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    System.out.println(s.join(" "));
                        ^
  symbol:   method join(String)
  location: variable s of type String[]
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(void){
 string S;
 cin >> S;
 S[5]= ’ ’,S[13]=’ ’;
 cout << S << endl;
}

Compiler output:
a.cc:7:8: error: extended character ’ is not valid in an identifier
    7 |  S[5]= ’ ’,S[13]=’ ’;
      |        ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
    7 |  S[5]= ’ ’,S[13]=’ ’;
      |          ^
a.cc:7:18: error: extended character ’ is not valid in an identifier
    7 |  S[5]= ’ ’,S[13]=’ ’;
      |                  ^
a.cc:7:20: error: extended character ’ is not valid in an identifier
    7 |  S[5]= ’ ’,S[13]=’ ’;
      |                    ^
a.cc: In function 'int main()':
a.cc:7:8: error: '\U00002019' was not declared in this scope
    7 |  S[5]= ’ ’,S[13]=’ ’;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string S;
  cin >> S;
  S[5] == " "; S[13] == " "; S[19] == " ";
  cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   S[5] == " "; S[13] == " "; S[19] == " ";
a.cc:7:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   S[5] == " "; S[13] == " "; S[19] == " ";
a.cc:7:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   S[5] == " "; S[13] == " "; S[19] == " ";
Language: 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;
using P = pair<int, int>; 
using ll = long long;
 
int main()
{
  string s;
  cin >> s;
  rep(i,s.size()){
    if(s[i] == ",") cout << " " << endl;
    else cout << s[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(s[i] == ",") cout << " " << endl;
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  string S;cin>>S;
  S[5]=" ";
  S[13]=" ";
  
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   S[5]=" ";
      |        ^~~
      |        |
      |        const char*
a.cc:8:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   S[13]=" ";
      |         ^~~
      |         |
      |         const char*
Language: C++

 string s;
    cout<<"Enter your string"<<endl;;
  cin>>s;
  s[5]=' ';
 s[13]=' ';
cout<<s;

Compiler output:
a.cc:1:2: error: 'string' does not name a type
    1 |  string s;
      |  ^~~~~~
a.cc:2:5: error: 'cout' does not name a type
    2 |     cout<<"Enter your string"<<endl;;
      |     ^~~~
a.cc:3:3: error: 'cin' does not name a type
    3 |   cin>>s;
      |   ^~~
a.cc:4:3: error: 's' does not name a type
    4 |   s[5]=' ';
      |   ^
a.cc:5:2: error: 's' does not name a type
    5 |  s[13]=' ';
      |  ^
a.cc:6:1: error: 'cout' does not name a type
    6 | cout<<s;
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;
  cin >> s;
  s.at(6)=" ";
  s.at(14)=" ";
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   s.at(6)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:8:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   s.at(14)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
  string s;
  cin>>s;
  for(i=0;i<s.length();i++)
  {
    if(s[i]==',')
      s[i]=' ';
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<s.length();i++)
      |       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define pb push_back
#define vi vector<int>
#define inf 1000000100

int main()
{
    string s;
    cin >> s;
    for(int i = 0; s[i]; i++)
    {
        if(s[i] == ',')happy,newyear,enjoy
           {
               s[i] = ' ';
           }
    }
    cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: 'happy' was not declared in this scope
   15 |         if(s[i] == ',')happy,newyear,enjoy
      |                        ^~~~~
a.cc:15:30: error: 'newyear' was not declared in this scope
   15 |         if(s[i] == ',')happy,newyear,enjoy
      |                              ^~~~~~~
a.cc:15:38: error: 'enjoy' was not declared in this scope
   15 |         if(s[i] == ',')happy,newyear,enjoy
      |                                      ^~~~~
Language: C++

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iterator>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>

#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(obj) (obj).begin(), (obj).end()
#define bit(n) (1LL << (n))

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  
  string s;
  
  cin >> s;
  s[5]=' '
  s[13]=' ';
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:11: error: expected ';' before 's'
   29 |   s[5]=' '
      |           ^
      |           ;
   30 |   s[13]=' ';
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  s.at(5)=" ";
  s.at(13)=" ";
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 |   s.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:7:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   s.at(13)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;

    cin >> s;

    s.at(5) = " ";
    s.at(13) = " ";

    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |     s.at(5) = " ";
      |               ^~~
      |               |
      |               const char*
a.cc:10:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |     s.at(13) = " ";
      |                ^~~
      |                |
      |                const char*
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;

int main() {
  string S;cin>>S;
  S[5]= " ";
  S[13]=" ";
  cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   S[5]= " ";
      |         ^~~
      |         |
      |         const char*
a.cc:9:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |   S[13]=" ";
      |         ^~~
      |         |
      |         const char*
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  string s;
  cin >> s;
  
  int n = s.size();
  rep(i,n){
    if(s[i] == ',') cout << " ";
    else cout << s[i];
  }
  cout << endl;
  return 0;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
   14 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    string s;
    cin >> s;

    replace(s.begin(), s.end(), ',', ' ' );
    cout << s << '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'replace' was not declared in this scope
   12 |     replace(s.begin(), s.end(), ',', ' ' );
      |     ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespae std;

int main(){
  string S;
  cin >> S;
  for(int i=0; i<S.size(); i++){
    if(i==5 || i==13){
      cout << " " ;
    }
    else{
      cout << S.at(i) ;
    }
  }
cout << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> S;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout << " " ;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |       cout << S.at(i) ;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | cout << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 | cout << endl;
      |         ^~~~
      |         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  string s;
  cin>>s;
  for(int i=0;i<string.length();i++){
    if(s[i]==',')s[i]=' ';
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected primary-expression before '.' token
    7 |   for(int i=0;i<string.length();i++){
      |                       ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  string s;
  cin>>s;
  for(int i=0;i<string.length;i++){
    if(s[i]==',')s[i]=' ';
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected primary-expression before '.' token
    7 |   for(int i=0;i<string.length;i++){
      |                       ^
Language: C++

#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>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()
 
int main(){
	string s;
    cin>>c;
    s[5]=' ';
    s[13]=' ';
    cout<<s<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'c' was not declared in this scope
   16 |     cin>>c;
      |          ^
Language: C++

#include<bis/stdc++.h>
using namespace std;
int main(void){
  string s;
  cin>>s;
  s[5]=' ';
  s[13]=' ';
  cout<s<<endl;
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: bis/stdc++.h: No such file or directory
    1 | #include<bis/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;
int main()
{
	string s;
	cin>>s;
	for(int i=0;i<19;i++){
		if(s[i]=',')
		{
			cout<<" ";
		}
		else
		{
			cout<<s[i];
		}
	}
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

ort java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.next();
      	String ans = "";
      	for (int i = 0; i < x.length(); i++){
        	if (x.charAt(i)==',') ans+=" ";
          	else ans+=x.substring(i,i+1);
        }
      	System.out.println(ans);
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

public class SumOfThreeIntegersBC51Q2 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.next();
      	String ans = "";
      	for (int i = 0; i < x.length(); i++){
        	if (x.charAt(i)==',') ans+=" ";
          	else ans+=x.substring(i,i+1);
        }
      	System.out.println(ans);
	}
}

Compiler output:
Main.java:3: error: class SumOfThreeIntegersBC51Q2 is public, should be declared in a file named SumOfThreeIntegersBC51Q2.java
public class SumOfThreeIntegersBC51Q2 {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string h;
  cin >> h;
  h.at(5) = " ";
  h.at(13) = " ";
  cout << h << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   h.at(5) = " ";
      |             ^~~
      |             |
      |             const char*
a.cc:8:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   h.at(13) = " ";
      |              ^~~
      |              |
      |              const char*
Language: C++

#include <string>
#include <fstream>
#include <sstream>
using namespace std;

int main(){
  string data;
  string ss;
  cin>>ss;
  istringstream s(ss);
  while(getline(s,data,',')){
    cout<<data<<' ';
  }
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>ss;
      |   ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <sstream>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<data<<' ';
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include <string>
using namespace std;

int main(){
  string data;
  string s;
  cin>>s;
  stringstream ss(s);
  while( getline(ss,data,',') ){
    cout<<data<<' ';
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: variable 'std::stringstream ss' has initializer but incomplete type
    9 |   stringstream ss(s);
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod = 1e9+7;

int main(){
    string s;
    cin >> s;
    int n = s.szie();
    for(int i = 0; i < n; i++){
        if(s[i] == ',') cout << " ";
        else cout << s[i];
    }    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'szie'; did you mean 'size'?
    9 |     int n = s.szie();
      |               ^~~~
      |               size
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i=0;i < (int)(n);i++
int main(){
   string s;
   cin >> s;
   rep(i,s.size()){
      if(s[i] == ',' ) s[i] = ' ';
   }
   cout << s << endl;
   return 0;
   
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ')' before '{' token
   12 |    rep(i,s.size()){
      |                   ^
a.cc:8:23: note: to match this '('
    8 | #define rep(i, n) for (int i=0;i < (int)(n);i++
      |                       ^
a.cc:12:4: note: in expansion of macro 'rep'
   12 |    rep(i,s.size()){
      |    ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  int N=S.size();
  for(int i=0;i<N;i++){
    if(S.at(i)==","){
      cout<<" ";
    }
    else{
      cout<<S.at(i);
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S.at(i)==","){
      |        ~~~~~~~^~~~~
Language: C++

#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
#define YesorNo(a) printf(a?"Yes\n":"No\n")
#define _LIBCPP_DEBUG 0
using namespace std;
int64_t MOD = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  REP(i,19) {
    char c;
    cin >> c;
    if(c == ',') cout << " ";
    else rcout << c;
  }
  cout << endl;
  return 0;
}
//templete by private_yusuke

Compiler output:
a.cc: In function 'int main()':
a.cc:67:10: error: 'rcout' was not declared in this scope
   67 |     else rcout << c;
      |          ^~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String line = sc.nextLine().split(",");
    System.out.println(line);
  }
}

Compiler output:
Main.java:6: error: incompatible types: String[] cannot be converted to String
    	String line = sc.nextLine().split(",");
    	                                 ^
1 error
Language: C++

int main(void){
int K,S;
cin >> K >> S;
int ans = 0;

for(int x = 0; x <= K; ++x){
	for(int y = 0; y <= K; ++y){
		int z = S - x - y;
		if(0 <= z and z <= K){
			ans = ans + 1;
		}
	}
}

cout << ans << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin >> K >> S;
      | ^~~
a.cc:15:1: error: 'cout' was not declared in this scope
   15 | cout << ans << endl;
      | ^~~~
a.cc:15:16: error: 'endl' was not declared in this scope
   15 | cout << ans << endl;
      |                ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  s.size() == 19
  s.at(6) == ' ';
  s.at(14) == ' ';

  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 's'
    6 |   s.size() == 19
      |                 ^
      |                 ;
    7 |   s.at(6) == ' ';
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  s.size() = 19
  s.at(6) == " ";
  s.at(14) == " ";

  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: lvalue required as left operand of assignment
    6 |   s.size() = 19
      |   ~~~~~~^~
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   s.at(14) == " ";
      |   ~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == ",") {
      s[i] = " ";
    }
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if (s[i] == ",") {
a.cc:9:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |       s[i] = " ";
      |              ^~~
      |              |
      |              const char*
Language: Java

import java.util.*;
 
class Main{
  public static void main(Stinrg[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    int s = sc.nextInt();
    
    int count = 0;
    for(int x = 0;x<=k;x++){
      for(int y=0;y<=k;y++){
        int z = s-x-y;
        if((z<=k)&&(z>=0)){
          count ++;
        }
      }
    }
    System.out.println(count);
  }
}
           


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Stinrg[] args){
                          ^
  symbol:   class Stinrg
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
  if(s.at(i)==',';
  s.at(i)=' ';
  }
  }
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ')' before ';' token
    8 |   s.at(i)=' ';
      |              ^
      |              )
a.cc:7:5: note: to match this '('
    7 |   if(s.at(i)==',';
      |     ^
a.cc: At global scope:
a.cc:11:3: error: 'cout' does not name a type
   11 |   cout<<s<<endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
  if(s.at(i)==',';
  s.at(i)=" ";
  }
  }
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   s.at(i)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:8:14: error: expected ')' before ';' token
    8 |   s.at(i)=" ";
      |              ^
      |              )
a.cc:7:5: note: to match this '('
    7 |   if(s.at(i)==',';
      |     ^
a.cc: At global scope:
a.cc:11:3: error: 'cout' does not name a type
   11 |   cout<<s<<endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
  if(s.at(i)==','){
  s.at(i)="";
  }
  }
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   s.at(i)="";
      |           ^~
      |           |
      |           const char*
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
  if(s.at(i)==','){
  s.at(i)='';
  }
  }
  cout<<s<<endl;
}


Compiler output:
a.cc:8:11: error: empty character constant
    8 |   s.at(i)='';
      |           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin >> s;
    s[5] = ' ';
    s[13] = ' ';
    for (int i = 0; i < s.size(); i++){
            continue;
        }
        cout << s[i];
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'i' was not declared in this scope
   12 |         cout << s[i];
      |                   ^
a.cc: At global scope:
a.cc:14:5: error: 'cout' does not name a type
   14 |     cout << endl;
      |     ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin >> s;
    s[5] = ' ';
    s[13] = ' ';
    for (int i = 0; i < s.size(); i++){
            continue;
        }
        cout << s[i] << endl;
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'i' was not declared in this scope
   12 |         cout << s[i] << endl;
      |                   ^
a.cc: At global scope:
a.cc:14:5: error: 'cout' does not name a type
   14 |     cout << endl;
      |     ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin >> s;
    for (int i = 0; i < s.size(); i++){
        if (s[i] == ","){
            cout << " ";
            continue;
        }
        cout << s[i] << endl;
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (s[i] == ","){
Language: C++

#include<iostream>
using namespace std;

int main(){
  int k,s;
  cin >> k >> s;
  int z=0;
  int count=0;
  for(int x=0;x<=k;x++){
  	for(int y=0;y<=k;y++){
	　for(int z=0;z<=k;z++){
        if(x+y+z==s)count++;
      }
    }
  }
  cout << count;
  return 0;
}

Compiler output:
a.cc:11:9: error: extended character 　 is not valid in an identifier
   11 |         　for(int z=0;z<=k;z++){
      |         ^
a.cc: In function 'int main()':
a.cc:11:15: error: expected primary-expression before 'int'
   11 |         　for(int z=0;z<=k;z++){
      |               ^~~
a.cc:11:31: error: expected ';' before ')' token
   11 |         　for(int z=0;z<=k;z++){
      |                               ^
      |                               ;
Language: C++

include <iostream>
using namespace std;

int main()
{
    string s;
    cin >> s;

    s[5] = " ";
    s[13] = " ";
    cout << s << endl;

    
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> s;
      |     ^~~
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin >> s;
      |            ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << s << endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout << s << endl;
      |                  ^~~~
Language: C++

include <iostream>
using namespace std;

int main()
{
    string s;
    cout << << endl;
    cin >> s;

    s[5] = ' ';
    s[13] = ' ';
    cout << s << endl;

    
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << << endl;
      |     ^~~~
a.cc:7:13: error: expected primary-expression before '<<' token
    7 |     cout << << endl;
      |             ^~
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |     cout << << endl;
      |                ^~~~
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> s;
      |     ^~~
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    string s;
    cin >> s;

    s[5] = " ";
    s[13] = " ";
    cout << s << endl;

    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |     s[5] = " ";
      |            ^~~
      |            |
      |            const char*
a.cc:10:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |     s[13] = " ";
      |             ^~~
      |             |
      |             const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
string s;
  cin>>s;
  for(int i=0;i<19;i++){
    if(s.at(i)==","){
      cout<<" ";
    }
    else{
cout<<s.at(i);
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(s.at(i)==","){
      |        ~~~~~~~^~~~~
Language: C++

 string sen1;
    cout << "Enter the sentence is this format [five lowercase English letters],[seven lowercase English letters],[five lowercase English letters]." << endl;
    getline(cin, sen1);


    sen1.at(5) = ' ';
    sen1.at(13) = ' ';
    cout << sen1;


Compiler output:
a.cc:1:2: error: 'string' does not name a type
    1 |  string sen1;
      |  ^~~~~~
a.cc:2:5: error: 'cout' does not name a type
    2 |     cout << "Enter the sentence is this format [five lowercase English letters],[seven lowercase English letters],[five lowercase English letters]." << endl;
      |     ^~~~
a.cc:3:12: error: expected constructor, destructor, or type conversion before '(' token
    3 |     getline(cin, sen1);
      |            ^
a.cc:6:5: error: 'sen1' does not name a type
    6 |     sen1.at(5) = ' ';
      |     ^~~~
a.cc:7:5: error: 'sen1' does not name a type
    7 |     sen1.at(13) = ' ';
      |     ^~~~
a.cc:8:5: error: 'cout' does not name a type
    8 |     cout << sen1;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
const ll MOD=1000000007;

int main() {
  string s;
  cin >> s;
  s[5]=" ";
  s[13]=" ";
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   s[5]=" ";
      |        ^~~
      |        |
      |        const char*
a.cc:11:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   s[13]=" ";
      |         ^~~
      |         |
      |         const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
const ll MOD=1000000007;

int main() {
  string s;
  cin >> s;
  s[5]==" ";
  s[13]==" ";
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   s[5]==" ";
a.cc:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   s[13]==" ";
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  for (i=0; i<19; i++){
    if (s.at(i)==',') cout << ' ';
    else cout << s.at(i);
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i=0; i<19; i++){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string x;
  cin >> x;
  x.at(5)=" ";
  x.at(14)=" ";
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   x.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:8:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   x.at(14)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++


#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[19];
    gets(s);
    s[5] =' ';
    s[13] =' ';
    for(int i=0;i<19;i++)
        cout<<s[i];
    return 0;
}


Compiler output:
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
Language: Java

import java.util.Scanner;


	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		StringBuilder s=new StringBuilder(scan.nextLine());
		s.setCharAt(5,' ');		s.setCharAt(13,' ');
		System.out.println(s);
	}



Compiler output:
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)
1 error
Language: Java

import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		StringBuilder s=new StringBuilder(scan.nextLine());
		s.setCharAt(5,' ');		s.setCharAt(13,' ');
		System.out.println(s);
	}

}


Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
#define int int64
#define rep(i, n) for(int i=0; i<n; i++)
#define FOR(i, a, b) for(int i=a; i<b; i++)
#define SORT(x) sort(x.begin(), x.end())
#define GSORT(x) sort(x.begin(), x.end(), greater<int>())
#define mk make_pair
#define fi first
#define se second
#define pb push_back
#define ALL(x) x.begin(), x.end()
#define V(T) vector<T>
typedef pair<int, int> P;
typedef pair<P, P> PP;
typedef vector<int> vi;
typedef vector<vi> vvi;
int max(int a, int b) {if(b>a) return b; else return a;}
int min(int a, int b) {if(b<a) return b; else return a;}

signed main() {
    string s;
    cin >> s;

    rep(i, s.size()) {
        if(s[i]==',') s[i] = " ";
    }

    cout << s << endl;

 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:30: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   27 |         if(s[i]==',') s[i] = " ";
      |                              ^~~
      |                              |
      |                              const char*
Language: C++

    #include <bits/stdc++.h>
    using namespace std ;
    int main()
    {
      string s;
      cin >> s ;
      
      int i ;
      
      for(i=0 ; i<s.length() ;i++)
      {
        if(s.[i] ==",")
        {
          s.[i] = " "
        }
      }
      
      cout << s ;
    }

          

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected unqualified-id before '[' token
   12 |         if(s.[i] ==",")
      |              ^
a.cc:14:13: error: expected unqualified-id before '[' token
   14 |           s.[i] = " "
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std ;
int main()
{
  string s;
  cin >> s ;
  
  int i ;
  
  for(i=0 ; i<s.length ;i++)
  {
    if(s.[i] ==",")
    {
      s.[i] = " "
    }
  }
  
  cout << s :
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |   for(i=0 ; i<s.length ;i++)
      |               ~~^~~~~~
      |                       ()
a.cc:12:10: error: expected unqualified-id before '[' token
   12 |     if(s.[i] ==",")
      |          ^
a.cc:14:9: error: expected unqualified-id before '[' token
   14 |       s.[i] = " "
      |         ^
a.cc:18:12: error: expected ';' before ':' token
   18 |   cout << s :
      |            ^~
      |            ;
a.cc:18:14: error: expected '}' at end of input
   18 |   cout << s :
      |              ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   char s[20];scanf("%s",s);
   for(int i = 0;i < 19;i++){
      if(s[i+1] == ',')
         printf(" ");
      else
         printf("%c",a[i]);
      
   }
}

Compiler output:
main.c: In function 'main':
main.c:15:22: error: 'a' undeclared (first use in this function)
   15 |          printf("%c",a[i]);
      |                      ^
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   char s[20];scanf("%s",s);
   for(int i = 0;i < 19;i++){
      if(a[i+1] == ',')
         printf(" ");
      else
         printf("%c",a[i]);
      
   }
}

Compiler output:
main.c: In function 'main':
main.c:12:10: error: 'a' undeclared (first use in this function)
   12 |       if(a[i+1] == ',')
      |          ^
main.c:12:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++



#include <iostream>
#include <fstream>

using namespace std;

string _myStr = "";

void CParseIn () {
    cin >> _myStr;
}

void Core () {
    for (int i = 0; i < _myStr.length(); i++) {
        if (_myStr[i] == ",") {
            cout << " ";
        }
        else
        cout << _myStr[i];
    }  
}

void CWriteOut () {
    cout << endl;
}

int main () {
    
    CParseIn();
    Core();
    CWriteOut();

    return 0;
}

Compiler output:
a.cc: In function 'void Core()':
a.cc:16:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if (_myStr[i] == ",") {
Language: C++

#include <bits/stdc++.h>
using namespace std;
string n;
int a,i;
int main()
{
    cin>>n;
    a=n.length();
   for(i=0;i<a;i++)
   {
       if(n[i]==',')
       cout<<" ";
       else
       cout<<n[i];
   }
   cout<<endl;！
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: '\U0000ff01' was not declared in this scope
   16 |    cout<<endl;！
      |               ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define REP(i, n) for(int i = 1; i < n; i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(), v.rend()
#define P pair<int, int>
typedef long long ll;
const ll mod = 1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

//繰り返し自乗法による累乗計算
//a**n
ll pow(ll a, ll n){
  if(n == 0) return 1;
  if(n%2 == 0){
    ll res = pow(a, n/2);
    return res * res;
  }
  return a * pow(a, n-1);
}
//繰り返し自乗法によるmod累乗計算
//a**n (mod)
ll modpow(ll a, ll n){
  if(n == 0) return 1;
  if(n%2 == 0){
    ll res = modpow(a, n/2);
    return res * res % mod;
  }
  return a * modpow(a, n-1) % mod;
}
//組み合わせ
//nCa
ll com(ll n, ll a){
  ll x = 1, y = 1;
  rep(i,a){
    x *= n-i;
    y *= i+1;
  }
  ll res = x / y;
  return res;
}
//組み合わせ(mod)
//nCa (mod)
ll modcom(ll n, ll a){
  ll x = 1, y = 1;
  rep(i, a){
    x = x * (n-i) % mod;
    y = y * (i+1) % mod;
  }
  ll ans = x * modpow(y, mod-2) % mod;
  return ans;
}
//gcd 最大公約数
ll gcd(ll x, ll y){
  if(x % y == 0) return y;
  return gcd(y, x%y);
}
//lcm 最小公倍数
ll lcm(ll x, ll y){
  return x * y / gcd(x, y);
}
//ngcd n個の最大公約数
ll ngcd(vector<ll> a){
  ll res;
  res = a[0];
  for(ll i = 1; i < a.size() && res != 1; i++) {
    res = gcd(a[i], res);
  }
  return res;
}
//nlcm n個の最小公倍数
ll nlcm(vector<ll> a) {
  ll res;
  res = a[0];
  for (ll i = 1; i < a.size(); i++) {
    res = lcm(res, a[i]);
  }
  return res;
}
// 素数判定
bool isprime(ll x){
  ll i;
  if(x < 2) return false;
  else if(x == 2) return true;
  if(x % 2 == 0) return false;
  for(i = 3; i*i <= x; i += 2){
    if(x % i == 0) return false;
  }
  return true;
}
// 桁和
ll digsum(ll x){
  ll res = 0;
  while(x > 0){
    res += x % 10;
    x /= 10;
  }
  return res;
}


int main(){
  string s;
  cin >> s;
  rep(i,s.size()-1){
    if(s[i] == ',') s[i] = " ";
  }
  cout << string << endl;
} 






Compiler output:
a.cc: In function 'int main()':
a.cc:109:28: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
  109 |     if(s[i] == ',') s[i] = " ";
      |                            ^~~
      |                            |
      |                            const char*
a.cc:111:18: error: expected primary-expression before '<<' token
  111 |   cout << string << endl;
      |                  ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define REP(i, n) for(int i = 1; i < n; i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(), v.rend()
#define P pair<int, int>
typedef long long ll;
const ll mod = 1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

//繰り返し自乗法による累乗計算
//a**n
ll pow(ll a, ll n){
  if(n == 0) return 1;
  if(n%2 == 0){
    ll res = pow(a, n/2);
    return res * res;
  }
  return a * pow(a, n-1);
}
//繰り返し自乗法によるmod累乗計算
//a**n (mod)
ll modpow(ll a, ll n){
  if(n == 0) return 1;
  if(n%2 == 0){
    ll res = modpow(a, n/2);
    return res * res % mod;
  }
  return a * modpow(a, n-1) % mod;
}
//組み合わせ
//nCa
ll com(ll n, ll a){
  ll x = 1, y = 1;
  rep(i,a){
    x *= n-i;
    y *= i+1;
  }
  ll res = x / y;
  return res;
}
//組み合わせ(mod)
//nCa (mod)
ll modcom(ll n, ll a){
  ll x = 1, y = 1;
  rep(i, a){
    x = x * (n-i) % mod;
    y = y * (i+1) % mod;
  }
  ll ans = x * modpow(y, mod-2) % mod;
  return ans;
}
//gcd 最大公約数
ll gcd(ll x, ll y){
  if(x % y == 0) return y;
  return gcd(y, x%y);
}
//lcm 最小公倍数
ll lcm(ll x, ll y){
  return x * y / gcd(x, y);
}
//ngcd n個の最大公約数
ll ngcd(vector<ll> a){
  ll res;
  res = a[0];
  for(ll i = 1; i < a.size() && res != 1; i++) {
    res = gcd(a[i], res);
  }
  return res;
}
//nlcm n個の最小公倍数
ll nlcm(vector<ll> a) {
  ll res;
  res = a[0];
  for (ll i = 1; i < a.size(); i++) {
    res = lcm(res, a[i]);
  }
  return res;
}
// 素数判定
bool isprime(ll x){
  ll i;
  if(x < 2) return false;
  else if(x == 2) return true;
  if(x % 2 == 0) return false;
  for(i = 3; i*i <= x; i += 2){
    if(x % i == 0) return false;
  }
  return true;
}
// 桁和
ll digsum(ll x){
  ll res = 0;
  while(x > 0){
    res += x % 10;
    x /= 10;
  }
  return res;
}


int main(){
  string s;
  cin >> s;
  rep(i,s.size()){
    if(s[i] == ',') s[i] = " ";
  }
  cout << string << endl;
} 






Compiler output:
a.cc: In function 'int main()':
a.cc:109:28: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
  109 |     if(s[i] == ',') s[i] = " ";
      |                            ^~~
      |                            |
      |                            const char*
a.cc:111:18: error: expected primary-expression before '<<' token
  111 |   cout << string << endl;
      |                  ^~
Language: C++

#include<stdio.h>
main()
{
  char c[19];
  fgets(c,19,stdin);
  c[4]=' ';
  c[11]=' ';
  cout<<c;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<c;
      |   ^~~~