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

#include<iostream>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
using namespace std;
int main()
{
	char s[20];
	gets(s);
	for(int i=0;i<19;i++)
	  {
	  	if(s[i]==',')
	  	 s[i]=' ';
	  	
	  }
	  puts(s);
	  cout<<endl;
	
	return 0;
}

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

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	char s[20];
	gets(s);
	for(int i=0;i<19;i++)
	  {
	  	if(s[i]==',')
	  	 s[i]=' ';
	  	
	  }
	  puts(s);
	  cout<<endl;
	
	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(s);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
char s[100] , b[100];
int main()
{
    gets(s);
    int l = strlen(s);
    for(int i = 0; i < l; i++)
    {
    	 if(s[i] == ',')
		  {
		  	  b[i] = ' ';
		  	  continue;
			}  
			b[i] = s[i];
	}
	puts(b);
	return 0;
}

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

#include <iostream>
#include <cstdio>
#include <cstring>
int main()
{
    char s[100] , b[100];
    gets(s);
    int l = strlen(s);
    for(int i = 0; i < l; i++)
    {
    	 if(s[i] == ',')
		  {
		  	  b[i] = ' ';
		  	  continue;
			}  
			b[i] = s[i];
	}
	puts(b);
	return 0;
}

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

#include<stdio.h>

int main()
{
	char a;
	while((a = getchar())!='\n'){
		if(a >='a' && a <= 'z')
			putchar(a);
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << endl;
      |         ^~~~
a.cc:10:17: error: 'endl' was not declared in this scope
   10 |         cout << endl;
      |                 ^~~~
Language: C++

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

typedef long long ll;
typedef pair<ll,ll> P;

const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;

#define rep(i, a, b) for(ll (i) = (a); (i) < (b);++i)

ll gcd(ll x, ll y)
{
  if (x % y == 0)
  {
    return y;
  }
  return gcd(y, x % y);
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'i'
    5 |   h.i(5)=' ';
      |     ^
a.cc:6:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'i'
    6 |   h.i(13)=' ';
      |     ^
Language: Java

package atc1;
	import java.util.*;
	public class main {
		public static void main(String args) {
			int cnt = 0;
			Scanner sc = new Scanner(System.in);
			int K = sc.nextInt();
			int S = sc.nextInt();
			for(int i = 0; i < K; i++) {
				for(int j = 0; j < K; j++) {
					for(int k = 0; k < K; k++) {
						if(i + j + k == S) {
							cnt++;
						}
					}
				}
			}
			System.out.println(cnt);
		}
	}


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: Java

import java.util.Scanner;

public class Haiku{
	public static void main(String[] args)
	{
		Scanner sc =new Scanner(System.in);
		String op=sc.next();

		op=op.replace(","," ");
		
		System.out.println(op);	
	}
	
} 

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

#include<bits/stdc++.h>

using namespace std;
int main()
{
char a[100];
gets(a);
for(int i=0;i<=4;i++)
cout<<a[i];
cout<<" ";
for(int i=6;i<=12;i++)
cout<<a[i];
cout<<" ";
for(int i=14;i<=18;i++)
cout<<a[i];
return 0;
}

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

use std::env;
use std::io::*;
use std::str::*;

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

fn main() {
    // main の引数
    /*
        引数なしのときargs.len() = 1;
    */
    let args: Vec<String> = env::args().collect();

    let S: String = read();
    println!("{}", &S[..].replace(",", " ") );

}


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

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

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

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

int main()
{   char s[100];
    gets(s);
    s[5]=' ';
    s[13]=' ';
    cout<<s;
    return 0;
}


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

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	char s[20];
	while(gets(s))
	{
		s[5]=s[13]=' ';
		puts(s);
	}
return 0;
}

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

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	char s[20];
	while(gets(s))
	{
		s[5]=s[13]=' ';
		puts(s);
	}
return 0;
}
/*
1 2 3 4 5 6*/

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

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	char s[20];
	gets(s);
	s[5]=' ';
	s[13]=' ';
	puts(s);
	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(s);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
const int MOD = 1e9+7;
const int MAX = 1e6+10;
const int INF = 0x3fffffff;

char s[MAX];

int main(){
	gets(s);
	int len=strlen(s);
	for(int i=0;i<len;i++){
		if(s[i]==' ')	s[i]=',';
	}
	cout<<s<<endl;
	return 0;
}

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

import java.util.*;
	public static void main(String[] atgs) {
		Scanner scan = new Scanner(System.in);
		int ans = 0;
		int K = scan.nextInt();
		int S = scan.nextInt();
		for(int x = 0; x <= K; x++){
			for(int y = 0; y <= K; y++){
				int z = S - x - y;
				if(0 <= z && z <= K){
					ans = ans + 1;
				}
			}
	    }
		System.out.println(ans);
		scan.close();
	}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] atgs) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main(){
    char arr[25];
    int i,n;
    gets(arr);
    n=strlen(arr);
    for(i=0;i<n;i++){
        if(arr[i]==',') arr[i]=' ';
    }
    printf("%s\n",arr);
    return 0;
}


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

#include <string>
#include <iostream>

using namespace std;

int main()
{
	string s;
	cin >> s;
	
	for(auto itr = s.begin(); itr != s.end(); itr++)
	{
		if(*itr != ',')
		{
			cout << *itr;
		}
		else
		{
			cout << " ";
	}
	cout << endl;
}

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

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

int main(){
  string s;getline(cin,s);
  s[6] = " " ; s[14] = " ";
  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[6] = " " ; s[14] = " ";
      |          ^~~
      |          |
      |          const char*
a.cc:7:24: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   s[6] = " " ; s[14] = " ";
      |                        ^~~
      |                        |
      |                        const char*
Language: C++

#include<cstdio>
#include<iostream>
int main(){
  char c;
  while(c=getchar()!='\n'){
    if(c==',')
      cout<<" ";
    else
      cout<<c;
  }
  cout<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<" ";
      |       ^~~~
      |       std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout<<c;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout<<endl;
      |         ^~~~
      |         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main(void){
    // Your code here!
    string s;
    cin>>s;
    for(int i;i<s.length();i++){
        if (s[i] == ",") {
            s[i] = " ";
        }
    }
    cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if (s[i] == ",") {
a.cc:11:20: 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

#include <stdio.h>

int main(void) {
	char d[20];
	scanf("%s",&d);
	for(int i=0;i<5;i++){
		printf("%c",(char)d[i]);
	}
	printf(" ")
	for(int i=0;i<7;i++){
		printf("%c",(char)d[i+6]);
	}
	printf(" ")
	for(int i=0;i<5;i++){
		printf("%c",(char)d[i+14]);
	}
	printf("\n")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before 'for'
    9 |         printf(" ")
      |                    ^
      |                    ;
   10 |         for(int i=0;i<7;i++){
      |         ~~~
Language: Java

import java.util.Scanner;
import java.util.StringTokenizer;

class Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    StringTokenizer st = new StringTokenizer(s.next(), ",");
    String a = st.nextToken();
    String b = st.nextToken();
    String c = st.nextToken();
    System.out.println(a + " " + b + " " + c)
  }
}


Compiler output:
Main.java:11: error: ';' expected
    System.out.println(a + " " + b + " " + c)
                                             ^
1 error
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
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: empty character constant
    8 |         s[5]='',s[13]='';
      |              ^~
a.cc:8:23: error: empty character constant
    8 |         s[5]='',s[13]='';
      |                       ^~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
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: empty character constant
    8 |         s[5]='',s[13]=''
      |              ^~
a.cc:8:23: error: empty character constant
    8 |         s[5]='',s[13]=''
      |                       ^~
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'cout'
    8 |         s[5]='',s[13]=''
      |                         ^
      |                         ;
    9 |         cout<<s<<endl;
      |         ~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin >> s;
    std::replace(s.begin(), s.end(), ',', ' ');
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'replace' is not a member of 'std'
    7 |     std::replace(s.begin(), s.end(), ',', ' ');
      |          ^~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin >> s;
    replace(s.begin(), s.end(), ',', ' ');
    cout << s << endl;
}

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

#include<stdio.h>
int main(void){
        char s[17];
        int i;
        for(i=0;i<4;i++){
             printf("%s"s[i]);
             putchar(' ');
        }
       for(i<11;i++){
             printf("%s"s[i]);
             putchar(' ');
        }
        for(i<16;i++){
             printf("%s"s[i]);
        }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected ')' before 's'
    6 |              printf("%s"s[i]);
      |                    ~    ^
      |                         )
main.c:9:20: error: expected ';' before ')' token
    9 |        for(i<11;i++){
      |                    ^
      |                    ;
main.c:10:25: error: expected ')' before 's'
   10 |              printf("%s"s[i]);
      |                    ~    ^
      |                         )
main.c:13:21: error: expected ';' before ')' token
   13 |         for(i<16;i++){
      |                     ^
      |                     ;
main.c:14:25: error: expected ')' before 's'
   14 |              printf("%s"s[i]);
      |                    ~    ^
      |                         )
Language: C++

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

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　string a;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000string' was not declared in this scope
    5 | 　　string a;
      | ^~~~~~~~~~
a.cc:6:14: error: 'a' was not declared in this scope
    6 |         cin>>a;
      |              ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
/*int a,b[100],c,d,e,f,max=0,min=100;
	cin>>a>>b;
	for(int i=0;i<b.size();i++){
		if(b[i]==1){
			c++;
		}
		if(b[i]==2){
			d++;
		}
		if(b[i]==3){
			e++;
		}
		if(b[i]==4){
			f++;
		}
	}
		if(max<c){
		max=c;
		}
		if(max<d){
		max=d;
		}
		if(max<e){
		max=e;
		}
		if(max<f){
		max=f;
		}
		if(min>c){
		min=c;
		}
		if(min>d){
		min=d;
		}
		if(min>e){
		min=e;
		}
		if(min>f){
		min=f;
		}
		cout<<max<<min<<endl;*/
		
	string a;
	cin>>a;
	a[5]=" ";
	a[13]=" ";
	cout<<a<<endl;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'string'
    7 | cin>>s
      |       ^
      |       ;
    8 | string s[6]=" ";
      | ~~~~~~ 
a.cc:9:14: error: array must be initialized with a brace-enclosed initializer
    9 | string s[12]=" ";
      |              ^~~
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'replace' is not a member of 'std'
    9 |     std::replace(s.begin(), s.end(), ',', ' ');
      |          ^~~~~~~
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:9:5: error: 'replace' was not declared in this scope
    9 |     replace(s.begin(), s.end(), ',', ' ');
      |     ^~~~~~~
Language: C++

#include <iostream>
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:8:5: error: 'replace' was not declared in this scope
    8 |     replace(s.begin(), s.end(), ',', ' ');
      |     ^~~~~~~
Language: C++

#include <string>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A;
      |         ^~~
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:14:9: error: 'cout' was not declared in this scope
   14 |         cout << A << endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |         cout << A << 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++

,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+.

Compiler output:
a.cc:1:1: error: expected unqualified-id before ',' token
    1 | ,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+.
      | ^
a.cc:1:2: error: expected unqualified-id before '.' token
    1 | ,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+.
      |  ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		//Scanner scan = new Scanner(System.in);
		String[] str1 = line.split(",");


			System.out.print(str1[0]);
			System.out.print(" ");
			System.out.print(str1[1]);
			System.out.print(" ");
			System.out.print(str1[2]);

	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("");
        for(int i = 0; i < a.length; i++){
            if(",".equals(a[i])) a[i] = " ";
            System.out.print(a[i]);
        }
}

Compiler output:
Main.java:5: error: illegal start of type
        for(int i = 0; i < a.length; i++){
        ^
Main.java:5: error: > or ',' expected
        for(int i = 0; i < a.length; i++){
                                   ^
Main.java:5: error: <identifier> expected
        for(int i = 0; i < a.length; i++){
                                      ^
3 errors
Language: Java

public class Main {
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("");
        for(int i = 0; i < a.length; i++){
            if(",".equals(a[i])) a[i] = " ";
            System.out.print(a[i]);
        }
}

Compiler output:
Main.java:4: error: illegal start of type
        for(int i = 0; i < a.length; i++){
        ^
Main.java:4: error: > or ',' expected
        for(int i = 0; i < a.length; i++){
                                   ^
Main.java:4: error: <identifier> expected
        for(int i = 0; i < a.length; i++){
                                      ^
3 errors
Language: Java

        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("");
        for(int i = 0; i < a.length; i++){
            if(",".equals(a[i])) a[i] = " ";
            System.out.print(a[i]);
        }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
        Scanner sc = new Scanner(System.in);
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
        ^
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
                       ^
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
                                     ^
Main.java:5: error: class, interface, enum, or record expected
            System.out.print(a[i]);
            ^
Main.java:6: error: class, interface, enum, or record expected
        }
        ^
6 errors
Language: Java

        Scanner sc = new Scanner("happy,newyear,enjoy");
        String[] a = sc.nextLine().split("");
        for(int i = 0; i < a.length; i++){
            if(",".equals(a[i])) a[i] = " ";
            System.out.print(a[i]);
        }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
        Scanner sc = new Scanner("happy,newyear,enjoy");
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
        ^
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
                       ^
Main.java:3: error: class, interface, enum, or record expected
        for(int i = 0; i < a.length; i++){
                                     ^
Main.java:5: error: class, interface, enum, or record expected
            System.out.print(a[i]);
            ^
Main.java:6: error: class, interface, enum, or record expected
        }
        ^
6 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextline().split(",");
		for(String i : a){
			System.out.print(a+" ");
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String[] a = sc.nextline().split(",");
		               ^
  symbol:   method nextline()
  location: variable sc of type Scanner
1 error
Language: Java

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.nextline().split(",");
		for(String i : a){
			System.out.print(a+" ");
		}
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args){
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextline();
		for(String i : a){
			if(",".equals(a)) a[i] = " ";
			System.out.print(a);
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String[] a = sc.nextline();
		               ^
  symbol:   method nextline()
  location: variable sc of type Scanner
Main.java:7: error: incompatible types: String cannot be converted to int
			if(",".equals(a)) a[i] = " ";
			                    ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextline();
		for(int i : a){
			if(",".euals(a)) a[i] = " ";
			System.out.print(a);
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String[] a = sc.nextline();
		               ^
  symbol:   method nextline()
  location: variable sc of type Scanner
Main.java:6: error: incompatible types: String cannot be converted to int
		for(int i : a){
		            ^
Main.java:7: error: cannot find symbol
			if(",".euals(a)) a[i] = " ";
			      ^
  symbol:   method euals(String[])
  location: class String
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextline();
		fot(int i : a){
			if(",".euals(a)) a[i] = " ";
			System.out.print(a);
		}
	}
}

Compiler output:
Main.java:6: error: '.class' expected
		fot(int i : a){
		        ^
Main.java:6: error: not a statement
		fot(int i : a){
		            ^
Main.java:6: error: ';' expected
		fot(int i : a){
		             ^
3 errors
Language: C

#include <stdio.h>
int main(){
  char a[19];

  scanf("%s",a[19]);
  for(i=0;i<=18;i++)
  {
    if(i==5||i==13){printf(" ");}
     else{printf("%c",str[i]);}
  }

  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<=18;i++)
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:23: error: 'str' undeclared (first use in this function)
    9 |      else{printf("%c",str[i]);}
      |                       ^~~
Language: C

#include <stdio.h>
int main(){
  char a[19];

  scanf("%s",&a[19]);
  for(i=0;i<=18;i++)
  {
    if(i==5||i==13){printf(" ");}
     else{printf("%c",str[i]);}
  }

  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<=18;i++)
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:23: error: 'str' undeclared (first use in this function)
    9 |      else{printf("%c",str[i]);}
      |                       ^~~
Language: C++


#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
using namespace std;

typedef long long ll;

char buf[100];

int main(void) {
  gets(buf);
  buf[5] = buf[13] = ' ';
  puts(buf);
  
  return 0;
}


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

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

for(int i=0;i<19;i++){
if(i==5 ｜｜ i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ')' before '\U0000ff5c\U0000ff5c'
    9 | if(i==5 ｜｜ i==13){
      |   ~    ^~~~~
      |        )
Language: C++

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

for(int i=0;i<19;i++){
if((i==5) ││ (i==13)){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
}

Compiler output:
a.cc:9:11: error: extended character │ is not valid in an identifier
    9 | if((i==5) ││ (i==13)){
      |           ^
a.cc:9:11: error: extended character │ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:10: error: expected ')' before '\U00002502\U00002502'
    9 | if((i==5) ││ (i==13)){
      |   ~      ^~~
      |          )
Language: C++

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

for(int i=0;i<19;i++){
if(i==5 ┃┃ i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
}

Compiler output:
a.cc:9:9: error: extended character ┃ is not valid in an identifier
    9 | if(i==5 ┃┃ i==13){
      |         ^
a.cc:9:9: error: extended character ┃ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:8: error: expected ')' before '\U00002503\U00002503'
    9 | if(i==5 ┃┃ i==13){
      |   ~    ^~~
      |        )
Language: C++

#include<iostream>
#include<string>

string s;
cin >> s;

for(int i=0;i<19;i++){
if(i==5 ┃┃ i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
}

Compiler output:
a.cc:8:9: error: extended character ┃ is not valid in an identifier
    8 | if(i==5 ┃┃ i==13){
      |         ^
a.cc:8:9: error: extended character ┃ is not valid in an identifier
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> s;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int i=0;i<19;i++){
      | ^~~
a.cc:7:13: error: 'i' does not name a type
    7 | for(int i=0;i<19;i++){
      |             ^
a.cc:7:18: error: 'i' does not name a type
    7 | for(int i=0;i<19;i++){
      |                  ^
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

#include<iostream>
#include<string>
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:8:1: error: 's' was not declared in this scope
    8 | s[5]=" ";
      | ^
Language: C++

#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:8:6: error: extended character ’ is not valid in an identifier
    8 | s[5]=’ ’;
      |      ^
a.cc:8:8: error: extended character ’ is not valid in an identifier
    8 | s[5]=’ ’;
      |        ^
a.cc:9:7: error: extended character ’ is not valid in an identifier
    9 | s[13]=’ ’;
      |       ^
a.cc:9:9: error: extended character ’ is not valid in an identifier
    9 | s[13]=’ ’;
      |         ^
a.cc: In function 'int main()':
a.cc:8:1: error: 's' was not declared in this scope
    8 | s[5]=’ ’;
      | ^
a.cc:8:6: error: '\U00002019' was not declared in this scope
    8 | s[5]=’ ’;
      |      ^
Language: C++

#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:8:6: error: extended character ’ is not valid in an identifier
    8 | s[5]=’ ’,s[13]=’ ’;
      |      ^
a.cc:8:8: 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:18: error: extended character ’ is not valid in an identifier
    8 | s[5]=’ ’,s[13]=’ ’;
      |                  ^
a.cc: In function 'int main()':
a.cc:8:1: error: 's' was not declared in this scope
    8 | s[5]=’ ’,s[13]=’ ’;
      | ^
a.cc:8:6: error: '\U00002019' was not declared in this scope
    8 | s[5]=’ ’,s[13]=’ ’;
      |      ^
Language: C++

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

int main(){
string S;
cin>>S;
S[5]=` `;
S[12]=` `;
cout<<S<<endl;
return 0;
}

Compiler output:
a.cc:8:6: error: stray '`' in program
    8 | S[5]=` `;
      |      ^
a.cc:8:8: error: stray '`' in program
    8 | S[5]=` `;
      |        ^
a.cc:9:7: error: stray '`' in program
    9 | S[12]=` `;
      |       ^
a.cc:9:9: error: stray '`' in program
    9 | S[12]=` `;
      |         ^
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before ';' token
    8 | S[5]=` `;
      |         ^
a.cc:9:10: error: expected primary-expression before ';' token
    9 | S[12]=` `;
      |          ^
Language: C++

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

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

int main(){
string S;
cin >>S;
cout<<S.substr(1,5);
cout<<" ";
cout<<S.substr(7,7);
cout<<" ";
cout<<S.subst(15,5);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subst'; did you mean 'substr'?
   12 | cout<<S.subst(15,5);
      |         ^~~~~
      |         substr
Language: C++

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

int main(){
string S;
cin >>S;
cout<<S.substr(1,5)<<;
cout<<" "<<;
cout<<S.substr(7,13)<<;
cout<<S.substr(15,19)<<;
cout<<" "<<;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before ';' token
    8 | cout<<S.substr(1,5)<<;
      |                      ^
a.cc:9:12: error: expected primary-expression before ';' token
    9 | cout<<" "<<;
      |            ^
a.cc:10:23: error: expected primary-expression before ';' token
   10 | cout<<S.substr(7,13)<<;
      |                       ^
a.cc:11:24: error: expected primary-expression before ';' token
   11 | cout<<S.substr(15,19)<<;
      |                        ^
a.cc:12:12: error: expected primary-expression before ';' token
   12 | cout<<" "<<;
      |            ^
Language: C++

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

int main(){
string S;
cin >>S;
S[6]==" ";
S[14]==" ";
cout<<S<<endl;
return 0;
}

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

#include<string>
using namespace std;

int main(){
string S;
cin >>S;
S[6]==" ";
S[14]==" ";
cout<<S<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >>S;
      | ^~~
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:7:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | S[6]==" ";
a.cc:8:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 | S[14]==" ";
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<S<<endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:10: error: 'endl' was not declared in this scope
    9 | cout<<S<<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: Java

import java.util.*;

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

Compiler output:
Main.java:6: error: ';' expected
		System.out.printlnsc.nextLine().replace(",", " "));
		                                                 ^
1 error
Language: C++

    #include <iostream>
    #include <cstdio>
    #include <algorithm>
    #include <vector>
    #include <string>
    #include <string.h>
     
    typedef long long ll;
    using namespace std;
    const ll INF = 1000000000000000000ll;
    const ll MOD = 1000000007ll;
     
    const double EPS = 1e-8;
     
    int main()
    {
   		char A[19];

		cin >> A ;

		for(int i=0;i<19;i++){
			if(A[i]==','){A[i]=32;}
		}

		cout << (char)A << endl;

		return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: cast from 'char*' to 'char' loses precision [-fpermissive]
   25 |                 cout << (char)A << endl;
      |                         ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) for(int i=0;i<(n);i++)
#define VS vector<string>
#define ll long long int
int main(void) {
    string s;
    cin >> s;
    REP(i,s.size()) {
        if(s[i] = ",") cout << " ";
        else cout << s[i];
    }
    cout << endl;                                                                                                                  
}


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

#include <iostream>
#include <string>

using namespace std;

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

    replace(s.begin(), s.end(), ',', ' ' );

    cout << s << endl;
}

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>
#include <string>

int main(void){
    std::string s;
    std::cin >> s;

    replace(s.begin(), s.end(), ',', ' ' );

    std::cout << s << std::endl;
}

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

#include<stdio.h>

int main(){
char c;
for(int i=0; i < 19; i++ ){
scanf("%c",&c);
if(c == ',')putc(c);
else putc(' ');
}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: too few arguments to function 'int putc(int, FILE*)'
    7 | if(c == ',')putc(c);
      |             ~~~~^~~
In file included from a.cc:1:
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
a.cc:8:10: error: too few arguments to function 'int putc(int, FILE*)'
    8 | else putc(' ');
      |      ~~~~^~~~~
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C++

#include "stdafx.h"


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

int main()
{
	string s;
	std::cin >> s;
	for(char var : s)
	{
		if (var == ',') std::cout << " ";
		else std::cout << var;
	}
	std::cout << std::endl;
    return 0;
}



Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main()
{
	string s;
	std::cin >> s;
	for each (char var in s)
	{
		if (var == ',') std::cout << " ";
		else std::cout << var;
	}
	std::cout << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '(' before 'each'
   10 |         for each (char var in s)
      |             ^~~~
      |             (
a.cc:10:19: error: expected primary-expression before 'char'
   10 |         for each (char var in s)
      |                   ^~~~
a.cc:10:13: error: 'each' was not declared in this scope
   10 |         for each (char var in s)
      |             ^~~~
a.cc:16:5: error: expected primary-expression before 'return'
   16 |     return 0;
      |     ^~~~~~
a.cc:15:32: error: expected ')' before 'return'
   15 |         std::cout << std::endl;
      |                                ^
      |                                )
   16 |     return 0;
      |     ~~~~~~                      
a.cc:10:13: note: to match this '('
   10 |         for each (char var in s)
      |             ^~~~
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;
public class Main051A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		System.out.println(s.replace(',', ' '));
		sc.close();
	}

}

Compiler output:
Main.java:2: error: class Main051A is public, should be declared in a file named Main051A.java
public class Main051A {
       ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = scanner.next();
		String a = s.substring(0,5);
		String b = s.substring(6,13);
		String c = s.substring(14,19);
		System.out.println(a + " " + b + " " + c);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String s = scanner.next();
		           ^
  symbol:   variable scanner
  location: class Main
1 error
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin>>s;
    replace(s.begin(), s.end(), ',', ' ');
    cout << s << endl;
}


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

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

int main()
{
    char str[21];
    int i;
    gets(str);
    for(i=0;str[i]!='\0';i++)
    {
        if(str[i]==',')
        {
            str[i]=' ';
        }
    }
    puts(str);

    return 0;
}

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

#include <bits/stdc++.h>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main() {
    char s[100];
    gets(s);
    for(int i=0 ; s[i] ; i++){
        if(s[i]==',') printf(" ");
        else printf("%c",s[i]);
    }
    putchar('\n');
    return 0;
}


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