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

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
inline int read()
{
    int x=0,k=1;char c=getchar();
    while(c<'0' || c>'9'){if(c=='-') k=0;c=getchar();}
    while(c>='0' && c<='9') x=(x<<3)+(x<<1)+(c^48),c=getchar();
    return k?x:-x;
}
int l;
char ch[20];
int main()
{
    scanf("%s",ch);
    l=strlen(ch);
    for(int i=0;i<l;i++) printf("%c",ch[i]==','?' ':ch[i]);
    puts("");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'strlen' was not declared in this scope
   18 |     l=strlen(ch);
      |       ^~~~~~
a.cc:5:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include<vector>
  +++ |+#include <cstring>
    5 | using namespace std;
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.substring(0,5) + " " + s.substring(6,13)+ " " +s.substring(14,19);)
	}
}


Compiler output:
Main.java:6: error: ')' or ',' expected
		System.out.println(s.substring(0,5) + " " + s.substring(6,13)+ " " +s.substring(14,19);)
		                                                                                      ^
Main.java:6: error: illegal start of expression
		System.out.println(s.substring(0,5) + " " + s.substring(6,13)+ " " +s.substring(14,19);)
		                                                                                       ^
2 errors
Language: C++

#include <iostream>
#include <string>
using namespace std;
string arr[20];
 int main()
{
sring s;
cin>>s;
s.replace(5, 1, " ");
s.replace(13, 1, " ");
 return 0;
}

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

#include <iostream>
#include <string>
using namespace std;
string arr[20]
 int main()
{
sring s;
cin>>s;
s.replace(5, 1, " ");
s.replace(13, 1, " ");
 return 0;
}

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

{
  string s;
  cin>>s;
  for(int i=0;i,s.size()-1;i++){
    if(s[i] == ',')
        s[i] = ' ';
  }
cout<<s;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

int main() {

string s;
cin>> s;

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

cout<< s;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string s;
      | ^~~~~~
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin>> s;
      | ^~~
a.cc:4:7: error: 's' was not declared in this scope
    4 | cin>> s;
      |       ^
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<< s;
      | ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string s;
    cin>>s;
    for ( int i=0; i<19; i++){
        if( i==5 || i==13){
            s[i]=" ";   
        }
        }
    cout<<s<<endl;
    return 0;
}


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

 string s;
   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:4: error: 'cin' does not name a type
    2 |    cin>>s;
      |    ^~~
a.cc:3:4: error: 's' does not name a type
    3 |    s[5]=' ';
      |    ^
a.cc:4:4: error: 's' does not name a type
    4 |    s[13]=' ';
      |    ^
a.cc:5:5: error: 'cout' does not name a type
    5 |     cout<<s;*/
      |     ^~~~
a.cc:5:14: error: expected unqualified-id before '/' token
    5 |     cout<<s;*/
      |              ^
Language: C++

/*
 * wafuIroha.cpp
 *
 *  Created on: 2020/02/23
 *      Author: black
 */
#include <iostream>
using namespace std;

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

	s[5] = " ";
	s[12] = " ";

	cout << s << endl;

	return 0;
}


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

#include <iostream>
using namespace std;

int main ()
{
  int K, S;
  cin >> K >> S;
  int ans = 0;
  for (int x = 0; x <= K; x++)
  {
    for (int y = 0; y <= K; y++)
    {
      z = S - x - y;
      if (x + y + x == S)
        ans++;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'z' was not declared in this scope
   13 |       z = S - x - y;
      |       ^
Language: C++

#include <iostream>

using namespace std;

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


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

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ';' before ')' token
    9 |     for(int i = 0 ; i<s.size(),i++){
      |                                   ^
      |                                   ;
Language: C++

#include<iostream>
sing namespace std;
int main (){

string s ;
cin>>s;

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

cout<<s;

}

Compiler output:
a.cc:2:1: error: 'sing' does not name a type
    2 | sing namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s ;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>s;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:6: error: 's' was not declared in this scope
    6 | cin>>s;
      |      ^
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<s;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
    int x=0;
    string s;
    cin>>s;



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


return 0;
}

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

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
    int x=0;
    string s;
    cin>>s;

   
    for(int i=0;i<s.size();i++){
        if((((int)s[i]<97)&&((int)s[i]!=44))||((int)s[i]>122) ||((int)s[5]!=44) &&((int)s[13]!=44 ) ) x++ ;
        }


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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:36: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   17 |             if((int)s[i]==44) s[i]=" ";
      |                                    ^~~
      |                                    |
      |                                    const char*
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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:8:9: error: expected ';' before 's'
    8 | s[5]=' '
      |         ^
      |         ;
    9 | s[13]=' '
      | ~
Language: C

#include<stdio.h>
int main(void){
  char hakiku[100];
  scanf("%s",haiku);
  int i;
  for(i=0;i<19;i++){
    if(i==5||i==13){
      printf(" ");
    }
    else{
      printf("%c",haiku[i]);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: 'haiku' undeclared (first use in this function); did you mean 'hakiku'?
    4 |   scanf("%s",haiku);
      |              ^~~~~
      |              hakiku
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream> ;
using namespace std ;
int main ()
{
	
	char a = "" ;
	cin >> s;
	m=s.length();
	for (int i = 0;i<m; i++)
	{
		if(s[i]==a)
			new_string +="";
		else
			new_string -=s[i]

	
	}
	cout <<new_string<<"\n";
	
	
	

}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> ;
      |                     ^
a.cc: In function 'int main()':
a.cc:6:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |         char a = "" ;
      |                  ^~
      |                  |
      |                  const char*
a.cc:7:16: error: 's' was not declared in this scope
    7 |         cin >> s;
      |                ^
a.cc:8:9: error: 'm' was not declared in this scope
    8 |         m=s.length();
      |         ^
a.cc:12:25: error: 'new_string' was not declared in this scope
   12 |                         new_string +="";
      |                         ^~~~~~~~~~
a.cc:14:25: error: 'new_string' was not declared in this scope
   14 |                         new_string -=s[i]
      |                         ^~~~~~~~~~
a.cc:18:16: error: 'new_string' was not declared in this scope
   18 |         cout <<new_string<<"\n";
      |                ^~~~~~~~~~
Language: C++

#include <iostream> ;
using namespace std ;
int main ()
{
	
	char a = "," , s;
	cin >> s;
	int m=s.length();
	for (int i = 0;i<m; i++)
	{
		if(s[i]==a)
			b = b + "";
		else
			b = b - s[i]

	
	}
	cout <<b;
	
	
	

}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> ;
      |                     ^
a.cc: In function 'int main()':
a.cc:6:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |         char a = "," , s;
      |                  ^~~
      |                  |
      |                  const char*
a.cc:8:17: error: request for member 'length' in 's', which is of non-class type 'char'
    8 |         int m=s.length();
      |                 ^~~~~~
a.cc:11:21: error: invalid types 'char[int]' for array subscript
   11 |                 if(s[i]==a)
      |                     ^
a.cc:12:25: error: 'b' was not declared in this scope
   12 |                         b = b + "";
      |                         ^
a.cc:14:25: error: 'b' was not declared in this scope
   14 |                         b = b - s[i]
      |                         ^
a.cc:14:34: error: invalid types 'char[int]' for array subscript
   14 |                         b = b - s[i]
      |                                  ^
a.cc:18:16: error: 'b' was not declared in this scope
   18 |         cout <<b;
      |                ^
Language: C++

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


}

Compiler output:
a.cc:17:1: error: expected unqualified-id before 'return'
   17 | return 0 ;
      | ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected '}' before 'else'
   12 |                 else
      |                 ^~~~
a.cc:10:17: note: to match this '{'
   10 |                 {
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	string s ;
	cin>>s ;
	int n=s.length() ;
	for (int i=0; i<n; i++) {
		s[5]=" " ;
		s[13]=" " ;
	}
	cout<<s ;

     
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: 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:23: 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 <iostream>
using namespace std;
int main() 
{
	
	string s ;
	cin>>s ;
	int n=s.length() ;
	for (int i=0; i<n; i++) {
		s[5]=" " ;
	s[13]=" " ;
	}
	cout<<s ;
return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: 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:15: 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 <iostream>
using namespace std;
int main() 
{
	
	string s ;
	int n=s.length() ;
	cin>>s ;
	for (int i=0; i<n; ++i) {
		s[5]==" " ;
	s[13]==" " ;
	}
	cout<<s ;
return 0 ;
}

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

#include <iostream>
using namespace std;
int main() 
{
	
	string s ;
	int n=s.length() ;
	cin>>s ;
	for (int i=0; i<n; ++i) {
		s[5]==" " ;
	s[13]==" " ;
	}
	cout<<s
return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 s[5]==" " ;
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         s[13]==" " ;
a.cc:13:16: error: expected ';' before 'return'
   13 |         cout<<s
      |                ^
      |                ;
   14 | return 0 ;
      | ~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main() 
{
	
	string s ;
	int n=s.length() ;
	cin>>s ;
	for (int i=0; i<n; ++i)
		s[5]==" " ;
	s[13]==" " ;
	cout<<s







return 0 ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 s[5]==" " ;
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         s[13]==" " ;
a.cc:12:16: error: expected ';' before 'return'
   12 |         cout<<s
      |                ^
      |                ;
......
   20 | return 0 ;
      | ~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main() 
{
	int n=s.length() ;
	string s ;
	cin>>s ;
	for (int i=0; i<n; ++i)
		s[5]==" " ;
	s[13]==" " ;
	cout<<s







return 0 ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 's' was not declared in this scope
    5 |         int n=s.length() ;
      |               ^
Language: C++

#include <iostream>
using namespace std;

int main() {
   int S[19];
   for(i=1;i<=19;i++){
	if(i=6 || i=14) {S[i]=" "}
   }
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[20];
  cin >> a;
  a[5]=' ';
  a[13]=' ';
  cout << a;
  return 0;
  if(a==1){
    cout << 1;
  }
  else if(a==1){
    cout << 2;
  }
  else{
    cout << 4;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(a==1){
      |      ~^~~
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(a==1){
      |           ~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[20];
  cin >> a;
  a[5]=' ';
  a[13]=' ';
  cout << a;
  return 0;
  if(a==b==c){
    cout << 1;
  }
  else if(a==b||b==c||c==a){
    cout << 2;
  }
  else{
    cout << 4;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'b' was not declared in this scope
   10 |   if(a==b==c){
      |         ^
a.cc:10:12: error: 'c' was not declared in this scope
   10 |   if(a==b==c){
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[20];
  cin >> a;
  a[5]=' ';
  a[13]=' ';
  cout << a;
  return 0;
  if(a==b==c){
    cout << 1;
  }
  else if(a==b||b==c||c==a){
    cout << 2;
  }
  else{
    cout << e;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'b' was not declared in this scope
   10 |   if(a==b==c){
      |         ^
a.cc:10:12: error: 'c' was not declared in this scope
   10 |   if(a==b==c){
      |            ^
a.cc:17:13: error: 'e' was not declared in this scope
   17 |     cout << e;
      |             ^
Language: C++

#include <iostream>
#include<string>

using namespace std;

int main(){
      string s;
     cin s;
     s.erase(5,1);
     s.insert(5," ");
     s.erase(13,1);
     s.insert(13," ");
     cout<<s;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 's'
    8 |      cin s;
      |         ^~
      |         ;
Language: C++

#include <stdio.h>
int main()
{
  int i;
  for (i = 0; i < 5+7+5+2; i++) {
    char c;
    scanf(&c, %c);
    if (c==',') putchar(' ');
    else putchar(c);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '%' token
    7 |     scanf(&c, %c);
      |               ^
Language: C++

#include <stdio.h>
int main()
{
  int i;
  for (i = 0; i < 5+7+5+2, i++) {
    char c;
    scanf(&c, %c);
    if (c==',') putchar(' ');
    else putchar(c);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:31: error: expected ';' before ')' token
    5 |   for (i = 0; i < 5+7+5+2, i++) {
      |                               ^
      |                               ;
a.cc:7:15: error: expected primary-expression before '%' token
    7 |     scanf(&c, %c);
      |               ^
Language: C++

#include <iostream>
#include<string>

using namespace std;

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

    }
    cout<<s;
    return 0;
}

Compiler output:
a.cc:13:28: error: empty character constant
   13 |         if(s[i]==',') s[i]='' ;
      |                            ^~
Language: C++

 char arr[19];
  cin>>arr;
 for(int i=0;i<5;i++){
    cout<<arr[i];
 }
 cout<<" ";
 for(int i=6;i<13;i++){
    cout<<arr[i];
 }
 cout<<" ";
  for(int i=14;i<19;i++){
    cout<<arr[i];
 }


Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin>>arr;
      |   ^~~
a.cc:3:2: error: expected unqualified-id before 'for'
    3 |  for(int i=0;i<5;i++){
      |  ^~~
a.cc:3:14: error: 'i' does not name a type
    3 |  for(int i=0;i<5;i++){
      |              ^
a.cc:3:18: error: 'i' does not name a type
    3 |  for(int i=0;i<5;i++){
      |                  ^
a.cc:6:2: error: 'cout' does not name a type
    6 |  cout<<" ";
      |  ^~~~
a.cc:7:2: error: expected unqualified-id before 'for'
    7 |  for(int i=6;i<13;i++){
      |  ^~~
a.cc:7:14: error: 'i' does not name a type
    7 |  for(int i=6;i<13;i++){
      |              ^
a.cc:7:19: error: 'i' does not name a type
    7 |  for(int i=6;i<13;i++){
      |                   ^
a.cc:10:2: error: 'cout' does not name a type
   10 |  cout<<" ";
      |  ^~~~
a.cc:11:3: error: expected unqualified-id before 'for'
   11 |   for(int i=14;i<19;i++){
      |   ^~~
a.cc:11:16: error: 'i' does not name a type
   11 |   for(int i=14;i<19;i++){
      |                ^
a.cc:11:21: error: 'i' does not name a type
   11 |   for(int i=14;i<19;i++){
      |                     ^
Language: C++

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

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

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

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

int main(){
    string a; cin >> a;
    for(int i = 0; 1 ; i++){
        if(i == 5){
            a[i] = " ";
        }
        if(i == 13){
            a[i] = " ";
            break;
        }
        cout << a << endl;
    }
}

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 |             a[i] = " ";
      |                    ^~~
      |                    |
      |                    const char*
a.cc:13:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |             a[i] = " ";
      |                    ^~~
      |                    |
      |                    const char*
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected expression before ']' token
    4 |   scanf("%1s",&S[]);
      |                  ^
main.c:5:8: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    5 |   S[5] = " ";
      |        ^
main.c:6:9: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |   S[13] = " ";
      |         ^
Language: C++

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

int main(){
    string a; cin >> a;
    for(int i = 0; 1 ; i++){
        if(i == 5){
            a[i] = " "
        }
        if(i == 13){
            a[i] = " "
        }
        cout << a << endl;
    }
}

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 |             a[i] = " "
      |                    ^~~
      |                    |
      |                    const char*
a.cc:10:23: error: expected ';' before '}' token
   10 |             a[i] = " "
      |                       ^
      |                       ;
   11 |         }
      |         ~              
a.cc:13:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |             a[i] = " "
      |                    ^~~
      |                    |
      |                    const char*
a.cc:13:23: error: expected ';' before '}' token
   13 |             a[i] = " "
      |                       ^
      |                       ;
   14 |         }
      |         ~
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:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |         s[5]=" ",s[13]=" ";
      |              ^~~
      |              |
      |              const char*
a.cc:8:24: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |         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;
	return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |     for(int i=0;i<s.size()){
      |                           ^
      |                           ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: '\U000000df' was not declared in this scope
    8 |   cout << ß<< endl;
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 's' was not declared in this scope
    7 |   rep(i,s.size()) {
      |         ^
a.cc:2:33: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i=0;i<n;i++)
      |                                 ^
a.cc:10:9: error: 's' was not declared in this scope
   10 |   cout<<s<<endl;
      |         ^
Language: C++

#include <iostream>
#include <string>
 
int main() {
  std::string a;
  std::cin >>a;
  
  std::string ss[19];
  for(int i==0;i == 18;1++){
    ss[i] = a.substr(i,1);
    if(ss[i] ==","){
      ss[i] =" ";
    }
    cout << ss[i];
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before '==' token
    9 |   for(int i==0;i == 18;1++){
      |            ^~
      |            ;
a.cc:9:12: error: expected primary-expression before '==' token
    9 |   for(int i==0;i == 18;1++){
      |            ^~
a.cc:9:23: error: expected ')' before ';' token
    9 |   for(int i==0;i == 18;1++){
      |      ~                ^
      |                       )
a.cc:9:24: error: lvalue required as increment operand
    9 |   for(int i==0;i == 18;1++){
      |                        ^
Language: Java

import java.util.Scanner;

public class test {
	public static void main(String[] args)	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
    str = str.replace(',', ' ');
		System.out.println(str);
		scan.close();
	}
}


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args)	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
    str = str.replace(',', ' ');
		System.out.println(str);
		scan.close();
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <utility>
#include <cmath>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll, ll> P;
typedef vector<vector<P>> vvP;
#define rep(i, n) for(ll i = 0; i < n; i++)
#define exrep(i, a, b) for(ll i = a; i <= b; i++)
#define out(x) cout << x << endl
#define exout(x) printf("%.10f\n", x)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define pb push_back
#define re0 return 0
const ll mod = 1000000007;
const ll INF = 1e16;
const ll MAX_N = 100010;

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

    s[5] = " ";
    s[13] = " ";
    
    out(s);
    re0;
}

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

#include <bits/stdc++.h>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <numeric>
using namespace std;

int abs(int num){
   if (num > 0)
      return num;
   else
      return -num;
}

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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

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


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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   s[5] = " ";
      |          ^~~
      |          |
      |          const char*
a.cc:12:8: error: expected ';' before string constant
   12 |   s[13] " ";
      |        ^~~~
      |        ;
a.cc:12:7: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |   s[13] " ";
      |       ^
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:1265:7: note: declared here
 1265 |       operator[](size_type __pos)
      |       ^~~~~~~~
Language: C++

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



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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if(str.at(i)== ","){
      |                    ~~~~~~~~~^~~~~~
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:8:19: 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:16: 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;
	cin >> s;

	s.at(5) = s.at(13) = " ";
	cout << s << endl;
}

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

#include <queue>
#include <iostream>
#include <map>
#include <algorithm>
#include <string>
#include <cmath>
#include <vector>
#include <iomanip>
#include <cstdio>
#define rep(i, n) for(long long i = 0;(i) < (n);(i)++)
using namespace std;
using ll = long long;
const ll mod = 1000000007;


int main()
{
	string str;
	cin >> str;
	str[6] = ' ';
	str[12] = ' ':
	cout << str << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: expected ';' before ':' token
   21 |         str[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 (i==5 || i==13) {
      cout<<" ";
    } else cout << s[i];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include <stdio.h>
int main(void){
	char a[10],b[10],c[10],haiku[20],space=" ";
	scanf("%s,%s,&s",a,b,c);
	sprintf(haiku,"%s%c%s%c%s",a,space,b,space,c);
	printf("%s",haiku)
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:48: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    3 |         char a[10],b[10],c[10],haiku[20],space=" ";
      |                                                ^~~
main.c:6:27: error: expected ';' before 'return'
    6 |         printf("%s",haiku)
      |                           ^
      |                           ;
    7 |         return 0;
      |         ~~~~~~
Language: C++

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

int main(){
  
  getline S;
  
  for (int i=0; i<S.size(); i++){
    
    if (S.at(i)==','){
      cout << ' ';
    }
    else {
      cout << S.at(i);
    }
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before 'S'
    6 |   getline S;
      |          ^~
      |          ;
a.cc:6:12: error: statement cannot resolve address of overloaded function
    6 |   getline S;
      |            ^
a.cc:8:19: error: 'S' was not declared in this scope
    8 |   for (int i=0; i<S.size(); i++){
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'x' was not declared in this scope
    9 |   cin >> x;
      |          ^
a.cc:12:15: error: 'a' was not declared in this scope
   12 |   s[13] = ' ';a
      |               ^
Language: C++

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

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

#include <stdio.h>

int main() {
	char s[18];

	scanf_s("%c",&s[18]);

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

	printf("%c", s);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%c",&s[18]);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
using namespace std;

int main() {
   cin >> word5_1;
   cin >> word7;
   cin >> word5_2;

   cout << word5_1 << word7 << word5_2 << endl;

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'word5_1' was not declared in this scope
    5 |    cin >> word5_1;
      |           ^~~~~~~
a.cc:6:11: error: 'word7' was not declared in this scope
    6 |    cin >> word7;
      |           ^~~~~
a.cc:7:11: error: 'word5_2' was not declared in this scope
    7 |    cin >> word5_2;
      |           ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  string s;
  cin>>s;
  
  for(auto x : s){
    cout<<x;
    if(c==',') cout<<" ";
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'c' was not declared in this scope
   10 |     if(c==',') cout<<" ";
      |        ^
Language: C++

#include<iostrem>
#include<string>

int main(){
  std::string s;
  std::cin >> s;
  
  int n = s.size();
  
  std::string ans = "";
  for(int i = 0; i < n; i++){
    if(i == 5 || i == 13) continue;
    else ans += s[i];
  }
  
  std::cout << ans << std::endl;
  return 0;
  
}

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

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i,n) for(long long (i)=0;(i)<(n);(i)++)
#define ll long long
#define pr_qu priority_queue
#define vec(name,size,common) vector<ll> (name)((size),(common))
 
 
 
 
 
int main(){
  string s;
  cin>>s;

  for(int i=0;i<n;i++){
    if(s.at(i)==','){
      s.at(i) = ' ';
    }
  }

  cout<<s<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    char s[20];
    gets(s);
    for(int i=0;i<=4;i++)cout<<s[i];
    cout<<" ";
    for(int i=6;i<=12;i++)cout<<s[i];
    cout<<" ";
    for(int i=14;i<=18;i++)cout<<s[i];

}


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(s);
      |     ^~~~
      |     getw
Language: C++

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

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

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int a, b;
  string s;
  cin >> s;
  s.at(5)=" ";
  s.at(13)=" ";
  co(s);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
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.at(5)=" ";
      |           ^~~
      |           |
      |           const char*
a.cc:10:12: 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++

# -*- Coding: utf-8 -*-
a = list(input().split(','))
for i in a:
    print(i, end=" ")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- Coding: utf-8 -*-
      |   ^
a.cc:2:1: error: 'a' does not name a type
    2 | a = list(input().split(','))
      | ^
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;


#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;


void Main(){
   string s;
   cin >> s;
   
  rep(i,s.size()){
  if(s[i] = ','){
     s[i] = ' ';
  }
  }
  cout << s << endl;
  else
 return;
 }
  
int main(){
 cin.tie(nullptr);
 ios_base::sync_with_stdio(false);
 cout << fixed << setprecision(15);
 Main();
 return 0;
 }


Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++


#include<bits/stdc++.h>

using namespace std;

#define debug(n) cerr << #n << ':' << n << endl;
#define dline    cerr << __LINE__ << endl;

using ll = long long;
template<class T, class U> using P = pair<T,U>;
template<class T> using Heap = priority_queue<T>;
template<class T> using heaP = priority_queue<T,vector<T>,greater<T>>;
template<class T,class U> using umap = unordered_map<T,U>;
template<class T> using uset = unordered_set<T>;

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

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

template<class T, size_t N, class U>
void Fill(T (&a)[N], const U&v){
    fill((U*)a,(U*)(a+N),v);
}

template<class T>
istream& operator >> (istream&is, vector<T>&v){
  for(auto&e:v)is >> e;
  return is;
}

int main(){
  string a,b,c;
  getline(cin,a,',');
  getline(cin,b,',');
  getline(cin,c,);
  cout << a << ' ' << b << ' ' << c << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:17: error: expected primary-expression before ')' token
   43 |   getline(cin,c,);
      |                 ^
Language: C++

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


    return 0;
}

    }
    cout<<a;


    return 0;
}


Compiler output:
a.cc:12:14: error: stray '#' in program
   12 |             }#include<bits/stdc++.h>
      |              ^
a.cc: In function 'int main()':
a.cc:12:15: error: 'include' was not declared in this scope
   12 |             }#include<bits/stdc++.h>
      |               ^~~~~~~
a.cc:12:23: error: 'bits' was not declared in this scope
   12 |             }#include<bits/stdc++.h>
      |                       ^~~~
a.cc:12:28: error: 'stdc' was not declared in this scope; did you mean 'std'?
   12 |             }#include<bits/stdc++.h>
      |                            ^~~~
      |                            std
a.cc:13:1: error: expected primary-expression before 'using'
   13 | using namespace std;
      | ^~~~~
a.cc:14:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   14 | int main()
      |         ^~
a.cc:14:9: note: remove parentheses to default-initialize a variable
   14 | int main()
      |         ^~
      |         --
a.cc:14:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:15:1: error: a function-definition is not allowed here before '{' token
   15 | {
      | ^