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

#include<bits/stdc++.h>
using namespace std;
int main() {
	string S;
	cin >> S;
	S.replece(5, 1, " ");
	S.replace(13, 1, " ");
	cout << S << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'replece'; did you mean 'replace'?
    6 |         S.replece(5, 1, " ");
      |           ^~~~~~~
      |           replace
Language: C++

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:3:5: error: 'string' was not declared in this scope
    3 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:12: error: 's' was not declared in this scope
    4 |     cin >> s;
      |            ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << s << endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout << s << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

using namespace std;
int main(){
    string s;
    cin >> s;
    s[5] = '', s[13] = '';
    cout << s << endl;
}

Compiler output:
a.cc:5:12: error: empty character constant
    5 |     s[5] = '', s[13] = '';
      |            ^~
a.cc:5:24: error: empty character constant
    5 |     s[5] = '', s[13] = '';
      |                        ^~
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:12: error: 's' was not declared in this scope
    4 |     cin >> s;
      |            ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << s << endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout << s << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

Compiler output:
a.cc:7:12: error: empty character constant
    7 |     s[5] = '', s[13] = '';
      |            ^~
a.cc:7:24: error: empty character constant
    7 |     s[5] = '', s[13] = '';
      |                        ^~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    char s; cin >> s;
    s(5) = " ";
    s(13) = " ";
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 's' cannot be used as a function
    6 |     s(5) = " ";
      |     ~^~~
a.cc:7:6: error: 's' cannot be used as a function
    7 |     s(13) = " ";
      |     ~^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    char s; cin >> s;
    s(5)) = " ";
    s(13) = " ";
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 's' cannot be used as a function
    6 |     s(5)) = " ";
      |     ~^~~
a.cc:7:6: error: 's' cannot be used as a function
    7 |     s(13) = " ";
      |     ~^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    char s; cin >> s;
    s[5] = " ";
    s[13] = " ";
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: invalid types 'char[int]' for array subscript
    6 |     s[5] = " ";
      |      ^
a.cc:7:6: error: invalid types 'char[int]' for array subscript
    7 |     s[13] = " ";
      |      ^
Language: C++

#include<iostream>
#include<string>
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:6:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 |     s[5] = " ";
      |            ^~~
      |            |
      |            const char*
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 |     s[13] = " ";
      |             ^~~
      |             |
      |             const char*
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[25];
	scanf("%s",&a);
	for(int i=0;i&lt;=18;i++)
	{
		if(i==5||i==13)
		{
			printf(" ");
		}
	else printf("%c",a[i] );
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'lt' was not declared in this scope
    7 |         for(int i=0;i&lt;=18;i++)
      |                       ^~
a.cc:7:26: error: expected primary-expression before '=' token
    7 |         for(int i=0;i&lt;=18;i++)
      |                          ^
a.cc:7:29: error: expected ')' before ';' token
    7 |         for(int i=0;i&lt;=18;i++)
      |            ~                ^
      |                             )
a.cc:7:30: error: 'i' was not declared in this scope
    7 |         for(int i=0;i&lt;=18;i++)
      |                              ^
Language: C++

#include<bits/stdc++.h>
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:6:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 | s[5]=" ",s[13]=" ";
      |      ^~~
      |      |
      |      const char*
a.cc:6:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 | s[5]=" ",s[13]=" ";
      |                ^~~
      |                |
      |                const char*
Language: C++

#include<bits/stdc++.h>
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:6:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 |   s[5]=" ",s[13]=" ";
      |        ^~~
      |        |
      |        const char*
a.cc:6:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    6 |   s[5]=" ",s[13]=" ";
      |                  ^~~
      |                  |
      |                  const char*
Language: C++

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

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

import java.util.Scanner;

public class MAin {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replaceAll(",", " ");
		System.out.println(S);
	}
}

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

#! /usr/bin/python3
# Haiku

"""
    s の長さは 19 である。
    s の 6 文字目と 14 文字目は , である。
    それら以外の s の文字は英小文字である。
"""

# s = input()
# s = s.replace(',', ' ')
print(input().replace(',', ' '))


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #! /usr/bin/python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #Haiku
    2 | # Haiku
      |   ^~~~~
a.cc:4:3: warning: missing terminating " character
    4 | """
      |   ^
a.cc:4:3: error: missing terminating " character
a.cc:5:19: error: extended character 。 is not valid in an identifier
    5 |     s の長さは 19 である。
      |                   ^
a.cc:6:35: error: extended character 。 is not valid in an identifier
    6 |     s の 6 文字目と 14 文字目は , である。
      |                                   ^
a.cc:7:20: error: extended character 。 is not valid in an identifier
    7 |     それら以外の s の文字は英小文字である。
      |                    ^
a.cc:8:3: warning: missing terminating " character
    8 | """
      |   ^
a.cc:8:3: error: missing terminating " character
a.cc:10:3: error: invalid preprocessing directive #s
   10 | # s = input()
      |   ^
a.cc:11:3: error: invalid preprocessing directive #s
   11 | # s = s.replace(',', ' ')
      |   ^
a.cc:4:1: error: expected unqualified-id before string constant
    4 | """
      | ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'c' declared as reference but not initialized
    8 |       for(char &c;s) if(c==',') c=' ';
      |                 ^
a.cc:8:19: error: could not convert 's' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
    8 |       for(char &c;s) if(c==',') c=' ';
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:20: error: expected ';' before ')' token
    8 |       for(char &c;s) if(c==',') c=' ';
      |                    ^
      |                    ;
Language: C++

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

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:13: error: 'c' declared as reference but not initialized
    8 |   for(char &c;s) if(c==',') c=' ';
      |             ^
a.cc:8:15: error: could not convert 's' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
    8 |   for(char &c;s) if(c==',') c=' ';
      |               ^
      |               |
      |               std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:16: error: expected ';' before ')' token
    8 |   for(char &c;s) if(c==',') c=' ';
      |                ^
      |                ;
Language: C

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

Compiler output:
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | {
      | ^
main.c:6:6: error: empty character constant
    6 | s[5]='';
      |      ^~
main.c:7:7: error: empty character constant
    7 | s[13]='';
      |       ^~
Language: C++

#include <stdio.h>
#include <stdlib.h>
void main()
{
	int A, B,c,d,e;
	scanf("%d%d", &A, &B);
	c = A + B;
	d = c - 24;
	e = 0;
	if (c <24)
	{
		printf("%d\n", c);
	}
	else
	{
		if (c == 46)
		{
			printf("%d\n",e);
		}
		else printf("%d\n", d);
	}
	system("pause");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

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

int main() {
  string S; cin >> S;
  replace(S.begin(), S.end(), ',', ' ');
  cout << S << endl;

  return 0;
}


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

include <stdio.h>

int main(void) {

	char s[20];

	scanf("%s", s);

	s[5] = ' ';
	s[13] = ' ';

	printf("%s\n", s);

	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
in main(){char s[20];scanf("%s",s);s[5]=0;s[13]=0;printf("%s",s);}

Compiler output:
main.c:2:1: error: unknown type name 'in'; did you mean 'int'?
    2 | in main(){char s[20];scanf("%s",s);s[5]=0;s[13]=0;printf("%s",s);}
      | ^~
      | int
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  string str;
  cin >> str;
  int ix=0;
  while((ix = str.find(",", ix)) >=0){
    str.replace(ix, strlen(","), " ")
  }
  cout << str << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:38: error: expected ';' before '}' token
   10 |     str.replace(ix, strlen(","), " ")
      |                                      ^
      |                                      ;
   11 |   }
      |   ~
Language: C++

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

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

int main()
{
	char a[19];
	cin >> a;
	a[5] = " ";
	a[13] = " ";
	cout << a;
	return 0;
}
	 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |         a[5] = " ";
      |                ^~~
      |                |
      |                const char*
a.cc:10:17: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |         a[13] = " ";
      |                 ^~~
      |                 |
      |                 const char*
Language: C++

#include <string>
using namespace std;
int main() {
 
	string str;
	cin >> str;
 
	str.insert(str.begin() + 6, ' ');
	str.insert(str.begin() + 15, ' ');
	str.erase(str.begin() + 5);
	str.erase(str.begin() + 13);
 
	cout << str << endl;
  
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> str;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << str << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |         cout << str << endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(str[i] == ","){
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 |       str[i] = " ";
      |                ^~~
      |                |
      |                const char*
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected unqualified-id before '.' token
    8 |   for(int i=0;i<str..size();i++){
      |                     ^
Language: C++

/*  
    |\_/|
    |* *|
    \_+_/
*/
#include<bits/stdc++.h>

#define endl '\n'

using namespace std;

int main(){

  cin.tie(0);     // cout と cin の同期を切る
  ios::sync_with_stdio(false);  /* cの stdioストリーム (printfとか)と*/

  string s;

  cin>>s;

  for(int i=0;<s.length();i++){

    if(s[i]==','){
      cout<<' ';
    }else{
      cout<<s[i];
    }
  }

  cout<<endl;

  
}


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

#include <stdio.h>
#include <string>
#include <iostream>
#include <map>
using namespace std;

int main(void){
    string str;
    cin >> str;
    str[5]=str[13]=" ";
    cout << str <<endl;
    return 0;
}

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

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

int main()
{
  /*int a, s, d;
  cin >> a >> s >> d ;
   if(a+s==d || a+d==s || s+d==a)
     cout << "Yes" << endl;
     else
       cout << "No" << endl;*/
  string s;
  cin >> s;
  s[5] == " ";
  s[13] == " ";
  cout << s << endl;
}  


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

#include <iostream>
#include <string>

using namespace std;

int main(int argc, char const *argv[]) {
  string s;
  cin >> s;
  replace(s.begin(), s.end(), ',',' ');
  cout << s << endl;
  return 0;
}


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

#include <iostream>
using namespace std;

int main(){
    int k=0, s=0;
    cin >> k >> s;
    
    int counter=0;
    int x=0,y=0,z=0;
    for(int i=0; i<=k; ++i){
        for(int j=i; j<=k; ++j){
            x = i;s
            y = j;
            z = k - x - y;
            if(z>=0) ++counter;
        }
    }

    cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'y'
   12 |             x = i;s
      |                    ^
      |                    ;
   13 |             y = j;
      |             ~
Language: C++

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

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

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

#include <iostream>
using namespace std;

int main()
{
    string s;
    cin >> s;
    for(auto c:s){
        if(c == ","){
            cout << " ";
        }else{
            cout << c;
        }
    }
    return 0;
}


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

#include <iostream>
#include <string>
using namespace std;
int main(){
  string a
  cin>>a;
  a[5]=' ';
  a[13]=' ';
  cout<<a<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a;
      |   ^~~
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a[5]=' ';
      |   ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string a
  cin>>a;
  int a[5]=' ',a[13]=' ';
  cout<<a<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a;
      |   ^~~
a.cc:7:12: error: array must be initialized with a brace-enclosed initializer
    7 |   int a[5]=' ',a[13]=' ';
      |            ^~~
a.cc:7:16: error: conflicting declaration 'int a [13]'
    7 |   int a[5]=' ',a[13]=' ';
      |                ^
a.cc:7:7: note: previous declaration as 'int a [5]'
    7 |   int a[5]=' ',a[13]=' ';
      |       ^
Language: C++

#include <iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
using namespace std;
int main() {
	ll K, S;
	cin >> K >> S;
	ll cnt = 0;
	for (ll x = 0; x <= K; ++x) {
		for (ll y = 0; y <= K; ++y) {
			ll z = S - x - y;
			if (z >= 0 && z <= K) ++cnt;
		}
	}
	cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll K, S;
      |         ^~
a.cc:9:16: error: 'K' was not declared in this scope
    9 |         cin >> K >> S;
      |                ^
a.cc:9:21: error: 'S' was not declared in this scope
    9 |         cin >> K >> S;
      |                     ^
a.cc:10:11: error: expected ';' before 'cnt'
   10 |         ll cnt = 0;
      |           ^~~~
      |           ;
a.cc:11:16: error: expected ';' before 'x'
   11 |         for (ll x = 0; x <= K; ++x) {
      |                ^~
      |                ;
a.cc:11:24: error: 'x' was not declared in this scope
   11 |         for (ll x = 0; x <= K; ++x) {
      |                        ^
a.cc:12:24: error: expected ';' before 'y'
   12 |                 for (ll y = 0; y <= K; ++y) {
      |                        ^~
      |                        ;
a.cc:12:32: error: 'y' was not declared in this scope; did you mean 'yn'?
   12 |                 for (ll y = 0; y <= K; ++y) {
      |                                ^
      |                                yn
a.cc:13:27: error: expected ';' before 'z'
   13 |                         ll z = S - x - y;
      |                           ^~
      |                           ;
a.cc:14:29: error: 'z' was not declared in this scope
   14 |                         if (z >= 0 && z <= K) ++cnt;
      |                             ^
a.cc:14:49: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |                         if (z >= 0 && z <= K) ++cnt;
      |                                                 ^~~
      |                                                 int
a.cc:17:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   17 |         cout << cnt << endl;
      |                 ^~~
      |                 int
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

    for(int i=0;i<s.size();i++)
    {
        if(s[i] == ',')
            cout << " ";
        else
            cout << s[i];
    }
}

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

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


Compiler output:
a.cc:4:8: error: extended character ’ is not valid in an identifier
    4 |   s[5]=’ ’,s[13]=’ ’;
      |        ^
a.cc:4:10: error: extended character ’ is not valid in an identifier
    4 |   s[5]=’ ’,s[13]=’ ’;
      |          ^
a.cc:4:18: error: extended character ’ is not valid in an identifier
    4 |   s[5]=’ ’,s[13]=’ ’;
      |                  ^
a.cc:4:20: error: extended character ’ is not valid in an identifier
    4 |   s[5]=’ ’,s[13]=’ ’;
      |                    ^
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> s;
      |   ^~~
a.cc:3:10: error: 's' was not declared in this scope
    3 |   cin >> s;
      |          ^
a.cc:4:8: error: '\U00002019' was not declared in this scope
    4 |   s[5]=’ ’,s[13]=’ ’;
      |        ^
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << s << endl;
      |   ^~~~
a.cc:5:16: error: 'endl' was not declared in this scope
    5 |   cout << s << endl;
      |                ^~~~
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: In function 'int main()':
a.cc:7:10: 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:11: 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++

#include <bits/stdc++.h>
using namespace std;
 
int main(void) {
  string s;
  cin >> s;
  s.at(5) = " ";
  s.at(13) = " ";
  cout << s << 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 |   s.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 |   s.at(13) = " ";
      |              ^~~
      |              |
      |              const char*
Language: C++

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s,a;
  cin >> s;
  a=s;
  a.at(5)=" ";
  a.at(13)=" ";
  cout << a << 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 |   a.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
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 |   a.at(13)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s,a;
  cin >> s;
  a=s;
  s.at(5)=" ";
  s.at(13)=" ";
  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(5)=" ";
      |           ^~~
      |           |
      |           const char*
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.at(13)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s,a;
  cin >> s;
  a=s;
  a.at(5)=" ";
  a.at(13)=" ";
  cout << a << 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 |   a.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
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 |   a.at(13)=" ";
      |            ^~~
      |            |
      |            const char*
Language: C++

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

int main(){
  string s;
  cin >> s;
  string g = s.substr(0,5);
  string si = s.substr(6,7);
  string go = s.substr(9,5);
  cout << g << " " << si << " " << go << endl;
  return 0;
}p

Compiler output:
a.cc:12:2: error: 'p' does not name a type
   12 | }p
      |  ^
Language: C++

#include <bits/stdc++.h>

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:8:8: 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<algorithm>
#include <iostream>
#include<cstdio>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;
int main(){
   
    string s;
    cin>>s;
    
    for(int i=0;i<5;i++){
        cout<<s[i];
    }
    cout<<" ";
    for(int i=6;i<13;i++){
        cout<<s[i];
    }
    cout<<" ";
    for(int i=14;i<19;i++){
        cour<<s[i]<<endl;
    }
    
    return 0;
   
}






Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'cour' was not declared in this scope
   22 |         cour<<s[i]<<endl;
      |         ^~~~
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i = 0; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: 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:11: 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*
a.cc:15:7: error: statement cannot resolve address of overloaded function
   15 |   endl;
      |       ^
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;
int main(){
  char s;
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i = 0; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: invalid types 'char[int]' for array subscript
   10 |   s[5] = " ";
      |    ^
a.cc:11:4: error: invalid types 'char[int]' for array subscript
   11 |   s[13] = " ";
      |    ^
a.cc:13:12: error: invalid types 'char[int]' for array subscript
   13 |   cout << s[i] ;
      |            ^
a.cc:15:7: error: statement cannot resolve address of overloaded function
   15 |   endl;
      |       ^
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;
int main(){
  char   s[100];
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i = 0; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |   s[5] = " ";
      |          ^~~
      |          |
      |          const char*
a.cc:11:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |   s[13] = " ";
      |           ^~~
      |           |
      |           const char*
a.cc:15:7: error: statement cannot resolve address of overloaded function
   15 |   endl;
      |       ^
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;
int main(){
  char s[100];
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |   s[5] = " ";
      |          ^~~
      |          |
      |          const char*
a.cc:11:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |   s[13] = " ";
      |           ^~~
      |           |
      |           const char*
a.cc:15:7: error: statement cannot resolve address of overloaded function
   15 |   endl;
      |       ^
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <ctsring>
#include <stdio.h>
using namespace std;
int main(){
  char s[100];
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc:4:10: fatal error: ctsring: No such file or directory
    4 | #include <ctsring>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <sstream>
#include <iostream>
#include <string>
#include <ctsring>
using namespace std;
int main(){
  char s[100];
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc:4:10: fatal error: ctsring: No such file or directory
    4 | #include <ctsring>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <sstream>
#include <iostream>
#include <string>
using namespace std;
int main(){
  char s[100];
  cin >> s;
  s[5] = " ";
  s[13] = " ";
  for (int i; i < 19; i++){
  cout << s[i] ;
  }
  endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   s[5] = " ";
      |          ^~~
      |          |
      |          const char*
a.cc:9:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |   s[13] = " ";
      |           ^~~
      |           |
      |           const char*
a.cc:13:7: error: statement cannot resolve address of overloaded function
   13 |   endl;
      |       ^
Language: C++

#include <sstream>
#include <iostream>
#include <string>
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:8:10: 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:11: 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<stdio.h>
int main(){
  char s[19];
  scanf("%s",s);
  for(int i=0;i<20;i++){
    if(s[i]==','){
      printf("%c",' ');
    }else{
      printf("%c",s[i]);
    }
  }
  printf("\n);
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:12:10: warning: missing terminating " character
   12 |   printf("\n);
      |          ^
main.c:12:10: error: missing terminating " character
   12 |   printf("\n);
      |          ^~~~~
main.c:14:2: error: expected expression before 'return'
   14 |  return 0;
      |  ^~~~~~
main.c:14:11: error: expected ';' before '}' token
   14 |  return 0;
      |           ^
      |           ;
   15 | }
      | ~
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
using namespace std;
int main(){
string S;
cin>>S;
S[5]='',S[13]='';
cout<< S <<endl;
}


Compiler output:
a.cc:11:6: error: empty character constant
   11 | S[5]='',S[13]='';
      |      ^~
a.cc:11:15: error: empty character constant
   11 | S[5]='',S[13]='';
      |               ^~
Language: C++

use std::cmp::*;
use std::io::*;
fn main() {
    let a = read();
    let b = read();
    let c = read();
    let d = read();

    let d = a * b;
    let c = c * d;
    println!("{}", min(c, d));
}

fn read() -> u32 {
    let s = stdin();
    let b = s.bytes()
        .map(|c| c.unwrap() as char)
        .take_while(|c| !c.is_whitespace())
        .collect::<String>();
    b.parse::<u32>().unwrap()
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::cmp::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::io::*;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn main() {
      | ^~
a.cc:14:1: error: 'fn' does not name a type
   14 | fn read() -> u32 {
      | ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
int K,S;

cin>>K>>S;
int res=0;
for(int x=0; x <= K; ++x){
for(int y=0; y <= K; ++y){
for(int z=0; z <= K; ++z){ 
int total = x + y + z
if (total==X) ++res;
} 
}
}
cout << res <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected ',' or ';' before 'if'
   13 | if (total==X) ++res;
      | ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: 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 <cstdio>
#include <iostream>
#include <string>

using namespace std;

int main() {
    string s;
    cin >> s;
    replace(s.begin(), s.end(), ',', ' ');
    cout << s << endl;
    return 0;
}


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

include <iostream>
using namespace std;

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

  for (int i = 0; i < 19; i++)
    cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1));
  cout << endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1));
      |     ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << endl;
      |   ^~~~
a.cc:10:11: error: 'endl' was not declared in this scope
   10 |   cout << endl;
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char a;
	while(a!=EOF)
	{
		a=getchar();
		if(a==',')
			cout<<' ';
		else
			cout<<a;
	}
	return 0;

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

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


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char c(getchar());
    while(c>'z'||ch<'a')
        c=getchar();
    while(c==','||(c<='z'&&c>='a'))
    {
        if(ch==',')
            cout<<" ";
        else 
            cout<<c;
        ch=getchar();
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'ch' was not declared in this scope; did you mean 'c'?
    6 |     while(c>'z'||ch<'a')
      |                  ^~
      |                  c
a.cc:10:12: error: 'ch' was not declared in this scope; did you mean 'c'?
   10 |         if(ch==',')
      |            ^~
      |            c
a.cc:14:9: error: 'ch' was not declared in this scope; did you mean 'c'?
   14 |         ch=getchar();
      |         ^~
      |         c
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char c[100001],i=0;
    while(ch<'a'||ch>'z')
    {
        cin>>c[i];
        i++;
    }
    while((ch>='a'&&ch<='z')||ch==',')
    {
        if(ch==',')
            cout<<" ";
        else 
            cout<<c[i];
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'ch' was not declared in this scope; did you mean 'c'?
    6 |     while(ch<'a'||ch>'z')
      |           ^~
      |           c
a.cc:11:12: error: 'ch' was not declared in this scope; did you mean 'c'?
   11 |     while((ch>='a'&&ch<='z')||ch==',')
      |            ^~
      |            c
Language: C++

#include <stdio.h>
char c[20]
int main()
{
	int i;
	while(~scanf("%s",c))
	{
		c[5]=' ';
		c[13]=' ';
		printf("%s\n",c);
	}
	return 0;
}

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int main()
      | ^~~
Language: C++

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

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

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

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

#include<stdio.h>
#include<string.h>
int main()
{
	int i;
	char ch[20];
	gets(ch);
	for(i=0;ch[i]!='\0';i++)
	{
		int j,word=0;
		if(ch[i]==',')
		{
			word=1;
			j=i;
			ch[j]=' ';
		}
	}
	printf("%s\n",ch);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(ch);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
int main()
{
	int i;
	char ch[20];
	gets(ch);
	for(i=0;ch[i]!='\0';i++)
	{
		int j,word=0;
		if(ch[i]==',')
		{
			word=1;
			j=i;
			ch[j]=' ';
		}
	}
	printf("%s\n",ch);
	return 0;
}

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

#include<cstdio>
#include<cstring>
int main(){
	char a[22];
	while(gets(a)!=NULL){
		int n=strlen(a);
		for(int i=0;i<n;i++){
			if(a[i]==','){
				printf(" ");
			}
			else
			printf("%c",a[i]);
		}
		puts("");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         while(gets(a)!=NULL){
      |               ^~~~
      |               getw
Language: C++

#include<stdio.h>
int main()
	{
		int i;
		char a[23];
		gets(a);
		for(i=0;i<19;i++)
		{
			if(a[i]==',')a[i]=' ';
		}
		for(i=0;i<19;i++)
		printf("%c",a[i]);
	
	return 0;
}


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

#include<stdio.h>
int main()
{
	char str[25];
	gets(str);
	str[5]=' ';
	str[13]=' ';
	puts(str);
	return 0;
}

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

#include<cstdio>
#include<cstring>
int main(){
	char a[25];
	gets(a);
	a[5]=' ';
	a[13]=' ';
	puts(a);
	return 0;
}

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

#include<cstdio>
int main(){
	char a[25];
	gets(a);
	a[5]=' ';
	a[13]=' ';
	puts(a);
	return 0;
}

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