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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace A
{
    class Program
    {
        static void Main(string[] args)
        {
            var K_S = Console.ReadLine().Split(' ').Select(x => int.Parse(x.ToString())).ToArray();
            var K = K_S[1];
            var S = K_S[0];
            int counter = 0;

            for (int i = 0; i <= S; i++)
            {
                for (int j = 0; j <= S - i; j++)
                {
                    for (int k = 0; k <= S - i - j; k++)
                    {
                        if (i * 10000 + j * 5000 + k * 1000 == k)
                        {
                            Console.WriteLine("{0} {1} {2}", i * 10000, j * 5000, k * 1000);
                        }
                    }
                }
            }
            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Text.RegularExpressions;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:34:6: error: expected ';' after class definition
   34 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void A::Program::Main(int*)':
a.cc:14:13: error: 'var' was not declared in this scope
   14 |             var K_S = Console.ReadLine().Split(' ').Select(x => int.Parse(x.ToString())).ToArray();
      |             ^~~
a.cc:15:17: error: expected ';' before 'K'
   15 |             var K = K_S[1];
      |                 ^
a.cc:16:17: error: expected ';' before 'S'
   16 |             var S = K_S[0];
      |                 ^
a.cc:19:34: error: 'S' was not declared in this scope
   19 |             for (int i = 0; i <= S; i++)
      |                                  ^
a.cc:27:29: error: 'Console' was not declared in this scope
   27 |                             Console.WriteLine("{0} {1} {2}", i * 10000, j * 5000, k * 1000);
      |                             ^~~~~~~
a.cc:32:13: error: 'Console' was not declared in this scope
   32 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

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

int main(){
  char a,b,c,d;
  string e;
  cin >> a >> b >> c >> d >> e;
  d='8'
  cout << a << b << c << d << e << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'cout'
    8 |   d='8'
      |        ^
      |        ;
    9 |   cout << a << b << c << d << e << endl;
      |   ~~~~
Language: C

include<stdio.h>

int main()
{
char s[10];

  scanf("%s",s);

  s[0] = '2';
  s[1] = '0';
  s[2] = '1';
  s[3] = '8';

  printf("%s",s);
  
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin>>S;
  S.at(3)=8;
  cout<<8/<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '<' token
    8 |   cout<<8/<endl;
      |           ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  S.at(3) = "8";
  
  cout << S << endl;
}

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

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

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

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

#include <iostream>
using namespace std;
int main(){
  string S;
  cin >> S;
  S[0] = 2;
  S[1] = 0;
  S[2] = 1:
  S[3] = 8;
  cout << S << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before ':' token
    8 |   S[2] = 1:
      |           ^
      |           ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  string S;
  cin >> S;
  s[0] = 2;
  s[1] = 0;
  s[2] = 1:
  S[3] = 8;
  cout << S << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 's' was not declared in this scope
    6 |   s[0] = 2;
      |   ^
Language: C++

#inclued <iostream>
using namespace std;
int main(){
  string S;
  cin >> S;
  S[3] = 8;
  cout >> S >> endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclued <iostream>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> S;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclued <iostream>
a.cc:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout >> S >> endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |   cout >> S >> endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclued <iostream>
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>
#include <functional>
#include <cstdlib>
using namespace std;
#define REP(i,n) for(int i = 0;i < (int)(n);i++)

int main() {
	char s[11];
	cin >> s;
	s[3] = '8'
	cout << s;
	return(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ';' before 'cout'
   15 |         s[3] = '8'
      |                   ^
      |                   ;
   16 |         cout << s;
      |         ~~~~
Language: C++

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

int main(){
  　string S;
    cin >> S;
    S[3] = '8';
    cout << S << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	string S;
  	cin >> S;
  	S[3] = "8";
     cout << S;
}


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

N, Y = (int(i) for i in input().split())
flag = 0

for x in range(N+1):

	for y in range(N+1):
		if N - (x+y)>=0:
			z = N - (x+y)

			if Y == 10000 * x + 5000 * y + 1000 * z:
				print(x ,y ,z)
				flag = 1
				break
		else:
			break

	if flag == 1:
		break

if flag == 0:
	print(-1, -1, -1)

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N, Y = (int(i) for i in input().split())
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'cout'
    9 |   S[3] = '8'
      |             ^
      |             ;
   10 |   cout << S << endl;
      |   ~~~~
Language: Java

import java.util.Scanner;
public class AC_085_A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		String [] x = input.split("/+");
		System.out.println("2018/01/"+x[2]);
	}
}

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

# -*- coding: utf-8 -*-

n,y = map(int,input().split())

r = y - 1000 * n

for i in range(0,n+1):
    temp = r - 9000 * i
    if temp % 4000 == 0:
        j = temp / 4000
        k = n - i - j
        if j >= 0 and k >= 0:
            print(int(i),int(j),int(k))
            break
else:
    print(-1,-1,-1)


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

#include <string>
#include <iostream>

int main() {
  std::string s;
  std:cin >> s;
  
  s[3] = '8';
  std::cout << s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   std:cin >> s;
      |       ^~~
      |       std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C

#include<stdio.h>

 


int main(void){
    char s[30];
    int a=0;
    scanf("%s",&s);
    s[3]='8';
    printf('%s's);
    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:11:12: warning: multi-character character constant [-Wmultichar]
   11 |     printf('%s's);
      |            ^~~~
main.c:11:16: error: expected ')' before 's'
   11 |     printf('%s's);
      |           ~    ^
      |                )
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     printf('%s's);
      |            ^~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include<stdio.h>

 


int main(void){
    char s[30];
    int a=0;
    scanf("%s",&s);
    s[3]='8'
    printf('%s's)
    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before 'printf'
   10 |     s[3]='8'
      |             ^
      |             ;
   11 |     printf('%s's)
      |     ~~~~~~   
main.c:11:12: warning: multi-character character constant [-Wmultichar]
   11 |     printf('%s's)
      |            ^~~~
Language: C++

#include <cstdio>

int main(){
    int N, Y;
    scanf("%d %d", &N, &Y);
    Y = Y / 1000;

    for(int x = 0; x <= N; x++){
        for(int y = 0; y <= N - x; y++){
            int z = N - x - y
            if(x * 10 + y * 5 + z == Y){
                printf("%d %d %d", x, y, z);
                return 0;
            }
        }
    }

    printf("-1 -1 -1");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ',' or ';' before 'if'
   11 |             if(x * 10 + y * 5 + z == Y){
      |             ^~
Language: C++

#include <cstdio>

int main(){
    int N, Y;
    scanf("%d %d", &N, &Y);
    Y = Y / 1000;

    for(int x = 0; x <= N; x++){
        for(int y = 0; y <= N - x; y++){
            for(int z = 0; z <= N - x - y; z++){
                if(x * 10 + y * 5 + z == Y){
                    printf("%d %d %d", x, y, z);
                    return 0;
                }
            }
        }
    }

    printf("-1 -1 -1")
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expected ';' before 'return'
   19 |     printf("-1 -1 -1")
      |                       ^
      |                       ;
   20 |     return 0;
      |     ~~~~~~
Language: C++

int main()
{
	std::string S;

	std::cin >> S;

	if (S[3] == '7') {
		S[3] = '8';
	}
	std::cout << S << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'string' is not a member of 'std'
    3 |         std::string S;
      |              ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main()
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::cin >> S;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:5:21: error: 'S' was not declared in this scope
    5 |         std::cin >> S;
      |                     ^
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout << S << std::endl;
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:32: error: 'endl' is not a member of 'std'
   10 |         std::cout << S << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

include <iostream>
using namespace std;

int main(){
  string S;
  cin >> S;
  S.at(3) = '8';
  cout << S << endl;
}


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

include <iostream>
using namesapce std;

int main(){
  string S;
  cin >> S;
  S.at(3) = '8';
  cout << S << endl;
}

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

#include "stdafx.h"
#include<iostream>
#include<string>
#define MIN -1000000
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
bool visited[100005];
const int max_N = 1e5 + 10;
string S;
int main(void) {
	cin >> S;
	S[3] = '8';
	cout << S << 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<bits/stdc++.h>
#define MIN -1000000
using namespase std;
typedef long long ll;
typedef pair <int, int> pii;
bool visited[100005];
const int max_N = 1e5 + 10;
string S;
int main(void) {
	cin >> S;
	S[3] = 8;
	cout << S << endl;
	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair <int, int> pii;
      |         ^~~~
a.cc:8:1: error: 'string' does not name a type; did you mean 'stdin'?
    8 | string S;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> S;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:16: error: 'S' was not declared in this scope
   10 |         cin >> S;
      |                ^
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << S << 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:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << S << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

def already_2018(S: str)->str:
    return '2018' + S[4:]


if __name__ == "__main__":
    S = input()
    ans = already_2018(S)
    print(ans)


Compiler output:
a.cc:2:12: warning: multi-character character constant [-Wmultichar]
    2 |     return '2018' + S[4:]
      |            ^~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def already_2018(S: str)->str:
      | ^~~
Language: C++

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

int get_Max_size(int &money, int &base) {
  int count = 0;
  int tmp_money = money;
  for (;;) {
    if (tmp_money - base > 0) {
      tmp_money -= base;
      count += 1;
    } else {
      break;
    }
  }
  return count;
}

int main() {
  int N = 0;
  int Y = 0;
  std::cin >> N;
  std::cin >> Y;
  int x = 0;
  int y = 0;
  int z = 0;

  int x_counter = 0;
  int y_counter = 0;
  int z_counter = 0;

  int max_10000 = get_Max_size(Y, 10000);

  for (int i = 0; i < max_10000 + 1; i++) {
    int tmp_Y = Y - 10000 * i;
    x_counter = i;
    int max_5000 = get_Max_size(tmp_Y, 5000);
    for (int j = 0; j < max_5000 + 1; j++) {
      y_counter = j;
      z_counter = (tmp_Y - 5000 * j) / 1000;

      if (x_counter + y_counter + z_counter == N) {
        std::cout << x_counter << " " << y_counter << " " << z_counter
                  << std::endl;
        return 0;
      }
    }
  }

  std::cout << "-1"
            << " "
            << "-1"
            << " "
            << "-1" << std::endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:35: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   33 |   int max_10000 = get_Max_size(Y, 10000);
      |                                   ^~~~~
a.cc:6:35: note:   initializing argument 2 of 'int get_Max_size(int&, int&)'
    6 | int get_Max_size(int &money, int &base) {
      |                              ~~~~~^~~~
a.cc:38:40: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   38 |     int max_5000 = get_Max_size(tmp_Y, 5000);
      |                                        ^~~~
a.cc:6:35: note:   initializing argument 2 of 'int get_Max_size(int&, int&)'
    6 | int get_Max_size(int &money, int &base) {
      |                              ~~~~~^~~~
Language: C++

#include<iostream>
using namespace std;
 
int main() {
  int A;
  cin>>A;
  cout<<"2018/01/"<<A<<endl;
  return 0;


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

#include<stdio.h>
int main(void){
  int year,month,day;
  scanf("%d/%d/%d",&year,&month,&day);
  if(year!=2018){
    year="2018";
  }
  printf("%s/%s/%s\n",year,month,day);
  return 0;
}


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

#include <iostream>
#include <vector>
#include<string>
using namespace std;
int main(void){
 
 
    string s;
    cin>>s;
    
    s.at(2) = '1';
    s.at(3) = '8';
    
    cout<<s<<endl;
    
    return 0;
}
#include <iostream>
#include <vector>
#include<string>
using namespace std;
int main(void){


    string s;
    cin>>s;
    
    s.at(2) = '1';
    s.at(3) = '8';
    
    cout<<s<<endl;
    
    return 0;
}


Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(void){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(void){
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <array>
#include <algorithm>
#include <set>

using namespace std;

#define int long long

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

    string in;

    cin >> in;

    in[3] = '8';

    cout << in;

}#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <array>
#include <algorithm>
#include <set>

using namespace std;

#define int long long

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

    string in;

    cin >> in;

    in[3] = '8';

    cout << in;

}

Compiler output:
a.cc:26:2: error: stray '#' in program
   26 | }#include <iostream>
      |  ^
a.cc:26:3: error: 'include' does not name a type
   26 | }#include <iostream>
      |   ^~~~~~~
a.cc:38:8: error: redefinition of 'int main()'
   38 | signed main()
      |        ^~~~
a.cc:13:8: note: 'int main()' previously defined here
   13 | signed main()
      |        ^~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <array>
#include <algorithm>
#include <set>

using namespace std;

#define int long long

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

    string in;

    cin >> in;

    in[3] = '8';

    cout << in;

    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   26 |     return;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<vector>
using namespace std;

int main(void)
{
    string s;
    cin >> s;
    s[3] = '8'
    cout << s << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'cout'
   12 |     s[3] = '8'
      |               ^
      |               ;
   13 |     cout << s << endl;
      |     ~~~~
Language: C++

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

int main(){
    int s;
    cin >> s;
    s[3] = '8';
    cout << s;
    return 0;
}

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

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

int main() {
    string S;
    cin >> S;
    S.at(3) = "8";
    cout << S << endl;
}


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

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

int main(){
  int a,b,c;
  char d,e;
  cin>>a>>d>>b>>e>>c;
  printf("2018/01/%02d",c);
  return 0;
}

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

#include<iostream>
#include<cmath>
#include<vector>
#include<algorithm>
#include<set>
#include<tuple>
#include<utility>
#include <cctype>
using namespace std;

#define REP(i,n) for(int i=0;i<n;++i)
#define enter "\n"

typedef long long ll;


int abc104_c(){
    //入力
    string s;
	cin >> s;
  
    //処理
  	s[3]='8'
  
    //出力
    cout << s << enter;
    return 0;
}

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


Compiler output:
a.cc: In function 'int abc104_c()':
a.cc:23:17: error: expected ';' before 'cout'
   23 |         s[3]='8'
      |                 ^
      |                 ;
......
   26 |     cout << s << enter;
      |     ~~~~
Language: C++

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

int main(){
  char S[10];
  cin >> S;
  S[3]=8
  cout << S <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'cout'
    7 |   S[3]=8
      |         ^
      |         ;
    8 |   cout << S <<endl;
      |   ~~~~
Language: C++

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

int main(){
  char[10] S;
  cin >> S;
  S[3]=8
  cout << S <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected identifier before numeric constant
    5 |   char[10] S;
      |        ^~
a.cc:5:8: error: expected ']' before numeric constant
    5 |   char[10] S;
      |        ^~
      |        ]
a.cc:5:7: error: structured binding declaration cannot have type 'char'
    5 |   char[10] S;
      |       ^
a.cc:5:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:7: error: empty structured binding declaration
a.cc:5:12: error: expected initializer before 'S'
    5 |   char[10] S;
      |            ^
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include<iostream>
using namespace std;

main(){
	string s;
	cin>>s;
	s[3]=‘8’;
	cout<<s;
}

Compiler output:
a.cc:7:14: error: extended character ‘ is not valid in an identifier
    7 |         s[3]=‘8’;
      |              ^
a.cc:7:14: error: extended character ’ is not valid in an identifier
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:14: error: '\U000020188\U00002019' was not declared in this scope
    7 |         s[3]=‘8’;
      |              ^~~
Language: C++

#include <iostream>
#include <stdlib.h>
#include <utility>
#include <math.h>
#include <stdexcept>
#include <algorithm>
#include <vector>
#include <stdio.h>
#define   FOR(i,n) for(int i=0;i<n;i++)

using namespace std;
int int_sort(const void*a,const void *b) {
	return *(  int *) b - *(int *) a;
	//qsort(b, a, sizeof(long long int), int_sort);
}

int main() {
	int a,b;
	char s[10000]={};
	vector<int>A(1000000,0);
	cin>>s;a
	s[3]='8';

		cout<<s;
		return 0;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected ';' before 's'
   21 |         cin>>s;a
      |                 ^
      |                 ;
   22 |         s[3]='8';
      |         ~
Language: C++

// C - Otoshidama
 
#include <bits/stdc++.h>
using namespace std;
 
int sum(int x, int y, int z);
 
 
 
int main()
{
    int N, Y;
    cin >> N >> Y;
//    cout << N << endl;
//    cout << Y << endl;
  
    int x=0; //10000円札の枚数
    int y=0; // 5000円札の枚数
    int z=0; // 1000円札の枚数
    bool flag = false;
 
    // 条件
    // x+y+z=N
    // 10000x+5000y+1000z=Y
 
    for(x=0; x<=N;x++)
    {
        for(y=0;y<=N;y++)
        {
            z = N-(x+y);
            //cout << x <<" " << y <<" " << z << endl;
            if(z<0)
            {
                continue;
            }
          
            if(sum(x,y,z)==Y)
            {
                flag=true;
              cout << x <<" " << y <<" " << z << endl;
              	return 0;
            }
        }
    }
	if(flag==false)
    {
        x=-1,y=-1,z=-1;
      cout << x <<" " << y <<" " << z << endl;
    }
 
}
 
 
int sum(int x, int y, int z)
{
    int ret = (10000*x) + (5000*y) + (1000*z);
    
    return ret;
}
// C - Otoshidama

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

int sum(int x, int y, int z);



int main()
{
    int N, Y;
    cin >> N >> Y;
//    cout << N << endl;
//    cout << Y << endl;
  
    int x=0; //10000円札の枚数
    int y=0; // 5000円札の枚数
    int z=0; // 1000円札の枚数
    bool flag = false;

    // 条件
    // x+y+z=N
    // 10000x+5000y+1000z=Y

    for(x=0; x<=N;x++)
    {
        for(y=0;y<=N;y++)
        {
            z = N-(x+y);
            //cout << x <<" " << y <<" " << z << endl;
            if(z<0)
            {
                continue;
            }
          
            if(sum(x,y,z)==Y)
            {
                flag=true;
              cout << x <<" " << y <<" " << z << endl;
              	return 0;
            }
        }
    }
	if(flag==false)
    {
        x=-1,y=-1,z=-1;
      cout << x <<" " << y <<" " << z << endl;
    }

}


int sum(int x, int y, int z)
{
    int ret = (10000*x) + (5000*y) + (1000*z);
    
    return ret;
}


Compiler output:
a.cc:69:5: error: redefinition of 'int main()'
   69 | int main()
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main()
      |     ^~~~
a.cc:113:5: error: redefinition of 'int sum(int, int, int)'
  113 | int sum(int x, int y, int z)
      |     ^~~
a.cc:54:5: note: 'int sum(int, int, int)' previously defined here
   54 | int sum(int x, int y, int z)
      |     ^~~
Language: C++

// C - Otoshidama
 
#include <bits/stdc++.h>
using namespace std;
 
int sum(int x, int y, int z);
 
 
 
int main()
{
    int N, Y;
    cin >> N >> Y;
//    cout << N << endl;
//    cout << Y << endl;
  
    int x=0; //10000円札の枚数
    int y=0; // 5000円札の枚数
    int z=0; // 1000円札の枚数
    bool flag = false;
 
    // 条件
    // x+y+z=N
    // 10000x+5000y+1000z=Y
 
    for(x=0; x<=N;x++)
    {
        for(y=0;y<=N;y++)
        {
            z = N-(x+y);
            //cout << x <<" " << y <<" " << z << endl;
            if(z<0)
            {
                continue;
            }
          
            if(sum(x,y,z)==Y)
            {
                flag=true;
              cout << x <<" " << y <<" " << z << endl;
              	return 0;
            }
        }
    }
	if(flag==false)
    {
        x=-1,y=-1,z=-1;
      cout << x <<" " << y <<" " << z << endl;
    }
 
}
 
 
int sum(int x, int y, int z)
{
    int ret = (10000*x) + (5000*y) + (1000*z);
    
    return ret;
}
// C - Otoshidama

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

int sum(int x, int y, int z);



int main()
{
    int N, Y;
    cin >> N >> Y;
//    cout << N << endl;
//    cout << Y << endl;
  
    int x=0; //10000円札の枚数
    int y=0; // 5000円札の枚数
    int z=0; // 1000円札の枚数
    bool flag = false;

    // 条件
    // x+y+z=N
    // 10000x+5000y+1000z=Y

    for(x=0; x<=N;x++)
    {
        for(y=0;y<=N;y++)
        {
            z = N-(x+y);
            //cout << x <<" " << y <<" " << z << endl;
            if(z<0)
            {
                continue;
            }
          
            if(sum(x,y,z)==Y)
            {
                flag=true;
              cout << x <<" " << y <<" " << z << endl;
              	return 0;
            }
        }
    }
	if(flag==false)
    {
        x=-1,y=-1,z=-1;
      cout << x <<" " << y <<" " << z << endl;
    }

}


int sum(int x, int y, int z)
{
    int ret = (10000*x) + (5000*y) + (1000*z);
    
    return ret;
}
提出情報

Compiler output:
a.cc:69:5: error: redefinition of 'int main()'
   69 | int main()
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main()
      |     ^~~~
a.cc:113:5: error: redefinition of 'int sum(int, int, int)'
  113 | int sum(int x, int y, int z)
      |     ^~~
a.cc:54:5: note: 'int sum(int, int, int)' previously defined here
   54 | int sum(int x, int y, int z)
      |     ^~~
a.cc:119:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
  119 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main(){
  string date;
  cin>>date;
  date[3]="8";
  cout<<date<<endl;
  
}


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

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

int main() {
  string s;
  cin >> s;
  s[3] = "8";
  cout << s;
}


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

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

int main() {
  string a ;
  cin >> a ;
  
  a.[3] = 8 ;
  
  cout << a << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected unqualified-id before '[' token
    8 |   a.[3] = 8 ;
      |     ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int Y=sc.nextInt();

		int x=-1;
		int y=-1;
		int z=-1;
		if(10000*1>=N){
			for(int i=0;i<=N;i++){
				for(int j=0;j<=N;j++){
					k=N-i-j;
					if(i+j+k==N&&10000*i+5000*j+1000*k==Y){
						x=i;
						y=j;
						z=k;
						System.out.println(x+" "+y+" "+z);
						i=N;
						j=N;
						k=N;
					}
				}
			}
		}
		if(x==-1){
			System.out.println(x+" "+y+" "+z);
		}
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
					k=N-i-j;
					^
  symbol:   variable k
  location: class Main
Main.java:16: error: cannot find symbol
					if(i+j+k==N&&10000*i+5000*j+1000*k==Y){
					       ^
  symbol:   variable k
  location: class Main
Main.java:16: error: cannot find symbol
					if(i+j+k==N&&10000*i+5000*j+1000*k==Y){
					                                 ^
  symbol:   variable k
  location: class Main
Main.java:19: error: cannot find symbol
						z=k;
						  ^
  symbol:   variable k
  location: class Main
Main.java:23: error: cannot find symbol
						k=N;
						^
  symbol:   variable k
  location: class Main
5 errors
Language: C++

#include <iostream>
#include<set>
#include<math.h>
using namespace std;
#define rep(i, n) for(int i=0;i<n;i++)

int main(){
    string str;
    cin >> str;
    str.at(3) = '8';
    
    cout << std << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected primary-expression before '<<' token
   12 |     cout << std << endl;
      |                 ^~
Language: C++

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

int main() {
    string S;
    cin >> S;
    if (S[3] == '7') S[3] = '8'
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before '}' token
    8 |     if (S[3] == '7') S[3] = '8'
      |                                ^
      |                                ;
    9 | }
      | ~
Language: C++

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

int main() {
  string s;cin>>s;
  s[3]='8';
  cout<<s<<endl;
}

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

#include <iostream>
using namespace std;

int main() {
	string s;
	cin >> s;
	S[3] += 1;
	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 |         S[3] += 1;
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
  string s;
  cin >> s;
  
  if(!s[3] == 8){
    s[3] = 8
      
  }
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |     s[3] = 8
      |             ^
      |             ;
    9 | 
   10 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

	s[3] = '8';

	cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: invalid types 'int[int]' for array subscript
    9 |         s[3] = '8';
      |          ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define inf 10000000000

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

    string s;
    cin >> s;
    s[3] = '8'
    cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:15: error: expected ';' before 'cout'
   38 |     s[3] = '8'
      |               ^
      |               ;
   39 |     cout << s << endl;
      |     ~~~~
Language: C++

#include <iostream>
#include <string> 
using namespace std; 
int main(){
string s;   cin>>s;   s[3]=8     cout<<s;  
}#include <iostream>
#include <strng> 
using namespace std; 
int main(){
string s;   cin>>s;   s[3]=8;     cout<<s;  
}

Compiler output:
a.cc:6:2: error: stray '#' in program
    6 | }#include <iostream>
      |  ^
a.cc:7:10: fatal error: strng: No such file or directory
    7 | #include <strng>
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string> 
using namespace std; 
int main(){
string s;   cin>>s;   s[3]=8     cout<<s;  


Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: expected ';' before 'cout'
    5 | string s;   cin>>s;   s[3]=8     cout<<s;
      |                             ^    ~~~~
      |                             ;
a.cc:5:42: error: expected '}' at end of input
    5 | string s;   cin>>s;   s[3]=8     cout<<s;
      |                                          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        chat[] x = sc.next().toCharArray();
        x[3] = 8;
        System.out.println(x);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        chat[] x = sc.next().toCharArray();
        ^
  symbol:   class chat
  location: class Main
1 error
Language: C++

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

int main() {
  string S; 
  cin >> S;
  S.at(3) = '8'
  cout << S << endl;
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |   S.at(3) = '8'
      |                ^
      |                ;
    8 |   cout << S << endl;
      |   ~~~~
Language: Java

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		
		System.out.println(s.replaceFirst("2017/", "2018/"));
		
		sc.close();
	}

}

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

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

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

    S[3] = '8'

    cout << S << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'cout'
    9 |     S[3] = '8'
      |               ^
      |               ;
   10 | 
   11 |     cout << S << endl;
      |     ~~~~
Language: C++

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

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

  s.at(3) = 8
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 |   s.at(3) = 8
      |              ^
      |              ;
    9 |   cout << s << endl;
      |   ~~~~
Language: C

    #include <stdio.h>
   int main(){
      char str[10];
      scanf("%10s", str);
      
      judge;
      judge=s[3]-47;
      if(judge<0){
        judge=0;
        s[2]=s[2]+1;
      }
      pritnf("%s\n", str);
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'judge' undeclared (first use in this function)
    6 |       judge;
      |       ^~~~~
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:13: error: 's' undeclared (first use in this function)
    7 |       judge=s[3]-47;
      |             ^
main.c:12:7: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |       pritnf("%s\n", str);
      |       ^~~~~~
      |       printf
Language: C

#include <stdio.h>
main(){
  char str[10];
  scanf("%10s", &str);
  
  judge;
  judge=s[3]-47;
  if(judge<0){
    judge=0;
    s[2]=s[2]+1;
  }
  pritnf("%s\n", str);
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:3: error: 'judge' undeclared (first use in this function)
    6 |   judge;
      |   ^~~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 's' undeclared (first use in this function)
    7 |   judge=s[3]-47;
      |         ^
main.c:12:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   pritnf("%s\n", str);
      |   ^~~~~~
      |   printf
Language: Java

import java.util.Scanner;

public class C {

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

		int N = sc.nextInt();
		int Y = sc.nextInt();

		int x;
		for (int z = 0; z <= N; z++) {
			for (int y = 0; y <= N; y++) {
				x = N - y - z;
				if (x >= 0 && 10000 * x + 5000 * y + 1000 * z == Y) {
					System.out.println(x + " " + y + " " + z);
					return;
				}
			}
		}
		System.out.println("-1 -1 -1");
	}
}

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

#include <stdio.h>

int main(void)
{
	int x,y,z,a,b,n;
	char c[100]
	scanf("%s",c);
	c[4] = '8';
	printf("%s",c);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |         scanf("%s",c);
      |         ^~~~~
main.c:7:20: error: 'c' undeclared (first use in this function)
    7 |         scanf("%s",c);
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main() {
  string s;
  cin >> s;
  s[3] = '8'
  cout << s << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'cout'
    7 |   s[3] = '8'
      |             ^
      |             ;
    8 |   cout << s << endl;
      |   ~~~~
Language: C++

#include<iostream>
int main(){std::strind s;std::cin>>s;s[3]=55;std::cout<<s;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: 'strind' is not a member of 'std'; did you mean 'string'?
    2 | int main(){std::strind s;std::cin>>s;s[3]=55;std::cout<<s;}
      |                 ^~~~~~
      |                 string
a.cc:2:36: error: 's' was not declared in this scope
    2 | int main(){std::strind s;std::cin>>s;s[3]=55;std::cout<<s;}
      |                                    ^
Language: C++

#include<bits/stdc++.h>
int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: 'string' was not declared in this scope
    2 | int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}
      |            ^~~~~~
a.cc:2:12: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:2:31: error: 's' was not declared in this scope
    2 | int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}
      |                               ^
Language: C++

#include<iostream>
int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: 'string' was not declared in this scope
    2 | int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}
      |            ^~~~~~
a.cc:2:12: 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:2:31: error: 's' was not declared in this scope
    2 | int main(){string s;std::cin>>s;s[3]=55;std::cout<<s;}
      |                               ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  char s[22];
  cin >> s;
  cout << "2018";
  for(int i=4; i<10; i++){
    cout << s[i]
  }
  cout << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '}' token
    9 |     cout << s[i]
      |                 ^
      |                 ;
   10 |   }
      |   ~