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

#include <stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  (a/100==1)?a+=800:a-=800;
  ((a/10)%10==1)?a+=80:a-=80;
  (a%10==1)?a+=8:a-=8;
  print("%d",&a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: lvalue required as left operand of assignment
    5 |   (a/100==1)?a+=800:a-=800;
      |                      ^~
main.c:6:25: error: lvalue required as left operand of assignment
    6 |   ((a/10)%10==1)?a+=80:a-=80;
      |                         ^~
main.c:7:19: error: lvalue required as left operand of assignment
    7 |   (a%10==1)?a+=8:a-=8;
      |                   ^~
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print("%d",&a);
      |   ^~~~~
      |   printf
Language: C++

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

int main(){
  string a;
  cin >> a;
  for(int i=0;i<N;i++){
  if(a.at(i)=='9')
    a.at(i)=1;
  else
    a.at(i)=9;
  }
  cout << a << endl;
}

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

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String str = String.valueOf(n);
      String x1 = str.substring(0,1);
      String x2 = str.substring(1,2);
      String x3 = str.substring(2,3);
      if(x1.equals("1"))x1 = "9";
      else x1 = "1";
      if(x2.equals("1"))x2 = "9";
      else x2 = "1";
      if(x3.equals("1"))x3 = "9";
      else x3 = "1";
      String str1 = x1+x2+x3;
      int n1 = Integer.parseInt(str1);
      System.out.println(n1)
      sc.close();
    }
}


Compiler output:
Main.java:18: error: ';' expected
      System.out.println(n1)
                            ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'a' was not declared in this scope
   10 |     }a
      |      ^
Language: C++

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

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

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

#include <iostream>
using namespace std;

int main()
{
  string s;
  cin >> s;
  int n = 0;
  if(s[0] == i'9') n += 100;
  else n += 900;
  if(s[1] == '9') n += 10;
  else n += 90;
  if(s[2] == '9') n += 1;
  else n += 9;
  
  cout << n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'i' was not declared in this scope
    9 |   if(s[0] == i'9') n += 100;
      |              ^
a.cc:9:15: error: expected ')' before '9'
    9 |   if(s[0] == i'9') n += 100;
      |     ~         ^~~
      |               )
Language: C++

#include <bits/std++.h>
using namespace std;
short f(short a){
	return (a == 9 ? 1 : 9);
}
main(){
short sh ,st;
  cin >> sh;
  st = f(sh % 10) ,sh /= 10 ,st += f(sh % 10) * 10 ,sh /= 10 ,st += f(sh % 10) * 10;
  cout << st;}

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

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

int main(){
    string s;
    cin >> s;
    for(int i=0;i<3;++i){
        if(s[i]=='1')s[i]='9';
        else s[i]='1';
    }
    cout << num <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |     cout << num <<endl;
      |             ^~~
      |             enum
Language: C++

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

int main(){
    string s;
    cin >> s;
    for(int i=0;i<3;++i){
        if(c=='1')s[i]='9';
        else s[i]='1';
    }
    cout << num <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'c' was not declared in this scope
    8 |         if(c=='1')s[i]='9';
      |            ^
a.cc:11:13: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |     cout << num <<endl;
      |             ^~~
      |             enum
Language: C++

#include <iostream>
using namespace std;
int main() {
  string n;
  cin >> n;
  if (n.at(0)=="1")
    cout << 9;
  else if (n.at(0)=="9")
    cout << 1;
  if (n.at(1)=="1")
    cout << 9;
  if (n.at(1)=="9")
    cout << 1;
  if (n.at(2)=="1")
    cout << 9;
  if (n.at(2)=="9")
    cout << 1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (n.at(0)=="1")
      |       ~~~~~~~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   else if (n.at(0)=="9")
      |            ~~~~~~~^~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (n.at(1)=="1")
      |       ~~~~~~~^~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (n.at(1)=="9")
      |       ~~~~~~~^~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if (n.at(2)=="1")
      |       ~~~~~~~^~~~~
a.cc:16:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if (n.at(2)=="9")
      |       ~~~~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n.at(0)==1)
    cout << 9;
  else if (n.at(0)==9)
    cout << 1;
  if (n.at(1)==1)
    cout << 9;
  if (n.at(1)==9)
    cout << 1;
  if (n.at(2)==1)
    cout << 9;
  if (n.at(2)==9)
    cout << 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: request for member 'at' in 'n', which is of non-class type 'int'
    6 |   if (n.at(0)==1)
      |         ^~
a.cc:8:14: error: request for member 'at' in 'n', which is of non-class type 'int'
    8 |   else if (n.at(0)==9)
      |              ^~
a.cc:10:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 |   if (n.at(1)==1)
      |         ^~
a.cc:12:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   12 |   if (n.at(1)==9)
      |         ^~
a.cc:14:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   14 |   if (n.at(2)==1)
      |         ^~
a.cc:16:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   16 |   if (n.at(2)==9)
      |         ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
	string s;cin>>s;
  	for(auto&& u:s)if(u=='1'){cout<<'9';else cout<<'1';}
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:45: error: expected '}' before 'else'
    6 |         for(auto&& u:s)if(u=='1'){cout<<'9';else cout<<'1';}
      |                                  ~          ^~~~
a.cc: At global scope:
a.cc:7:9: error: 'cout' does not name a type
    7 |         cout<<endl;
      |         ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main(void) {
	int n;
	string N,S;
	cin >> N;
	n = stoi(N);
	
	for (int i = 0; i < log10(n); i++) {
		if(stoi(N.substr(i,1))==1)S +="9";
		else S += "1";
	}
	cout << S;
}

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

#include<iostream>
#include<algorithm>
#include<iterator>
#include<vector>
#include<string>
#include<map>

using namespace std;


#define mod(cans) cans%10**9+7
#define cin_pl(x,y) for(int i=0;i<x;i++){cin>>y[i];}
#define pl_twin(x,y,z) for(int i=0;i<x;i++){cin>>y[i]>>z[i];}
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
//#define st(s) size_t size = s.length()
#define prians(Answer) cout<<Answer<<"\n"
#define make_pair mp;
#define com_div(x,Co) for(int i=1;i<x+1;i++){if(x%i==0){Co++;}}
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> matrix;
typedef pair<int,int> pr;
typedef greater<int> gi;

int main()
{   
 string s;
  cin>>s;
  size_t size = s.length();
  rep(i,size)
  {
    if(st[i]=="1")
   st[i]='9';
    else if(st[i]=="9")
      st[i]='1';
    else
      continue;
  }
  cout<<s;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:8: error: 'st' was not declared in this scope; did you mean 's'?
   39 |     if(st[i]=="1")
      |        ^~
      |        s
Language: C++

#include<iostream>
#include<algorithm>
#include<iterator>
#include<vector>
#include<string>
#include<map>

using namespace std;


#define mod(cans) cans%10**9+7
#define cin_pl(x,y) for(int i=0;i<x;i++){cin>>y[i];}
#define pl_twin(x,y,z) for(int i=0;i<x;i++){cin>>y[i]>>z[i];}
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
//#define st(s) size_t size = s.length()
#define prians(Answer) cout<<Answer<<"\n"
#define make_pair mp;
#define com_div(x,Co) for(int i=1;i<x+1;i++){if(x%i==0){Co++;}}
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> matrix;
typedef pair<int,int> pr;
typedef greater<int> gi;

int main()
{   
 string s;
  cin>>s;
  size_t size = s.length()
  rep(i,size)
  {
    if(st[i]=='1')
   st[i]='9';
    else if(st[i]=='9')
      st[i]='1';
    else
      continue;
  }
  cout<<s;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ',' or ';' before 'for'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:37:3: note: in expansion of macro 'rep'
   37 |   rep(i,size)
      |   ^~~
a.cc:37:7: error: 'i' was not declared in this scope
   37 |   rep(i,size)
      |       ^
a.cc:15:30: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#include<iostream>
#include<algorithm>
#include<iterator>
#include<vector>
#include<string>
#include<map>

using namespace std;


#define mod(cans) cans%10**9+7
#define cin_pl(x,y) for(int i=0;i<x;i++){cin>>y[i];}
#define pl_twin(x,y,z) for(int i=0;i<x;i++){cin>>y[i]>>z[i];}
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define st(s) size_t size = s.length()
#define prians(Answer) cout<<Answer<<"\n"
#define make_pair mp;
#define com_div(x,Co) for(int i=1;i<x+1;i++){if(x%i==0){Co++;}}
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> matrix;
typedef pair<int,int> pr;
typedef greater<int> gi;

int main()
{   
 string s;
  cin>>s;
  rep(i,st(s))
  {
    if(st[i]=='1')
   st[i]='9';
    else if(st[i]=='9')
      st[i]='1';
    else
      continue;
  }
  cout<<s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: expected primary-expression before 'size'
   18 | #define st(s) size_t size = s.length()
      |                      ^~~~
a.cc:15:32: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
a.cc:36:9: note: in expansion of macro 'st'
   36 |   rep(i,st(s))
      |         ^~
a.cc:18:22: error: expected ';' before 'size'
   18 | #define st(s) size_t size = s.length()
      |                      ^~~~
a.cc:15:32: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
a.cc:36:9: note: in expansion of macro 'st'
   36 |   rep(i,st(s))
      |         ^~
a.cc:18:38: error: overloaded function with no contextual type information
   18 | #define st(s) size_t size = s.length()
      |                                      ^
a.cc:15:32: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
a.cc:36:9: note: in expansion of macro 'st'
   36 |   rep(i,st(s))
      |         ^~
a.cc:15:33: error: expected ')' before ';' token
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                     ~           ^
a.cc:36:3: note: in expansion of macro 'rep'
   36 |   rep(i,st(s))
      |   ^~~
a.cc:36:7: error: 'i' was not declared in this scope
   36 |   rep(i,st(s))
      |       ^
a.cc:15:34: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                  ^
Language: C++

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

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

  for(int i=0;i<3;i++){
    if(s[i]=='1')
      n[i]='9';
    else if(s[i]=='9')
      n[i]='1';
  }
  cout<<n<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 's' was not declared in this scope
   10 |     if(s[i]=='1')
      |        ^
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next(); 
    int ans = o;
  	int q = 0;
 for(int i = 0; i < 3; i++){
     System.out.print(10 - Character.getNumericValue(a.charAt(i)));
    }
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    int ans = o;
              ^
  symbol:   variable o
  location: class Main
1 error
Language: Java

import java.util.*;
2.2. 
3.3.class Main{
4.4.  public static void main(String[] args){
5.5.    Scanner sc = new Scanner(System.in);
6.6.    String a = sc.next(); 
7.      int ans = 0;
8.  	int q = 0;
9.8     for(int i = 0; i < 3; i++){
10.9.      System.out.print(10 - Character.getNumericValue(a.charAt(i)));
11.10.    }
12.11.  }
13.12.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2.2. 
^
Main.java:4: error: illegal start of type
4.4.  public static void main(String[] args){
^
Main.java:5: error: not a statement
5.5.    Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: ';' expected
5.5.    Scanner sc = new Scanner(System.in);
               ^
Main.java:6: error: not a statement
6.6.    String a = sc.next(); 
   ^
Main.java:6: error: ';' expected
6.6.    String a = sc.next(); 
              ^
Main.java:7: error: not a statement
7.      int ans = 0;
^
Main.java:7: error: ';' expected
7.      int ans = 0;
  ^
Main.java:8: error: not a statement
8.  	int q = 0;
^
Main.java:8: error: ';' expected
8.  	int q = 0;
  ^
Main.java:9: error: not a statement
9.8     for(int i = 0; i < 3; i++){
^
Main.java:9: error: ';' expected
9.8     for(int i = 0; i < 3; i++){
   ^
Main.java:11: error: <identifier> expected
11.10.    }
      ^
Main.java:11: error: not a statement
11.10.    }
     ^
Main.java:12: error: <identifier> expected
12.11.  }
      ^
Main.java:12: error: not a statement
12.11.  }
     ^
Main.java:13: error: illegal start of type
13.12.}
^
17 errors
Language: Java

import java.util.*;
2. 
3.class Main{
4.  public static void main(String[] args){
5.    Scanner sc = new Scanner(System.in);
6.    String a = sc.next(); 
      int ans = o;
  	int q = 0;
8     for(int i = 0; i < 3; i++){
9.      System.out.print(10 - Character.getNumericValue(a.charAt(i)));
10.    }
11.  }
12.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2. 
^
Main.java:4: error: illegal start of type
4.  public static void main(String[] args){
^
Main.java:5: error: not a statement
5.    Scanner sc = new Scanner(System.in);
^
Main.java:5: error: ';' expected
5.    Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: not a statement
6.    String a = sc.next(); 
^
Main.java:6: error: ';' expected
6.    String a = sc.next(); 
  ^
Main.java:9: error: not a statement
8     for(int i = 0; i < 3; i++){
^
Main.java:9: error: ';' expected
8     for(int i = 0; i < 3; i++){
 ^
Main.java:10: error: not a statement
9.      System.out.print(10 - Character.getNumericValue(a.charAt(i)));
^
Main.java:10: error: ';' expected
9.      System.out.print(10 - Character.getNumericValue(a.charAt(i)));
  ^
Main.java:11: error: not a statement
10.    }
^
Main.java:11: error: ';' expected
10.    }
   ^
Main.java:12: error: not a statement
11.  }
^
Main.java:12: error: ';' expected
11.  }
   ^
Main.java:13: error: illegal start of type
12.}
^
15 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
  string n;
  cin>>n;
  for(int i,i<=3,i++){
    if(n[i]=='9')
      n[i]='1';
    else
      n[i]='9';
  }
  cout<<n<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '<=' token
    7 |   for(int i,i<=3,i++){
      |              ^~
      |              ;
a.cc:7:14: error: expected primary-expression before '<=' token
    7 |   for(int i,i<=3,i++){
      |              ^~
a.cc:7:21: error: expected ';' before ')' token
    7 |   for(int i,i<=3,i++){
      |                     ^
      |                     ;
Language: C++

#include<iostream>
using namespace std;
int main(){
string n;
  cin>>n;
  for(char c;n){
  if(c=='1'){
  cout<<9;
  }
    else{
    cout<<1;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: could not convert 'n' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
    6 |   for(char c;n){
      |              ^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:15: error: expected ';' before ')' token
    6 |   for(char c;n){
      |               ^
      |               ;
Language: C++

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

int main(){
  int s; cin>>s;
  for(int i=0;i<3;i++){
    if(s[i] == 1){
      s[i] = 9;
    }else if(s[i] == 9){
      s[i] = 1;
    }
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid types 'int[int]' for array subscript
    7 |     if(s[i] == 1){
      |         ^
a.cc:8:8: error: invalid types 'int[int]' for array subscript
    8 |       s[i] = 9;
      |        ^
a.cc:9:15: error: invalid types 'int[int]' for array subscript
    9 |     }else if(s[i] == 9){
      |               ^
a.cc:10:8: error: invalid types 'int[int]' for array subscript
   10 |       s[i] = 1;
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  if(A==9){
  A==1;
    cout<<A<<B<<C<<endl;
  } 
  else if(B==9){
  B==1;
    cout<<A<<B<<C<<endl;
  }
 else if(C==9){
  C==1;
    cout<<A<<B<<C<<endl;
  } 
return 0:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: expected ';' before ':' token
   18 | return 0:
      |         ^
      |         ;
a.cc:18:9: error: expected primary-expression before ':' token
Language: C++

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

int main(){
    string n;
    cin>>n;
    for(int i=0;n.size()>i;i++){
    if(n.at(i)=='1'){
    n.at(i)='9';}else if(n.at(i)=='9'){n.at(i)='1'
    }
    }
    cout<<n<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:51: error: expected ';' before '}' token
    9 |     n.at(i)='9';}else if(n.at(i)=='9'){n.at(i)='1'
      |                                                   ^
      |                                                   ;
   10 |     }
      |     ~
Language: C++


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

    for(int i=0;i<n.size();i++){
        if(n.at(i)==9){
        n.at(i)-'0'-=8;
    }
    else if(n.at(i)==1){
        n.at(i)-'0'+=8
    }

    }
    cout<<n<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: lvalue required as left operand of assignment
   10 |         n.at(i)-'0'-=8;
      |         ~~~~~~~^~~~
a.cc:13:16: error: lvalue required as left operand of assignment
   13 |         n.at(i)-'0'+=8
      |         ~~~~~~~^~~~
Language: C++

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

    for(int i=0;i<n.size();i++){
        if(n.at(i)==9){
        n.at(i)-'0'-=8;
    }
    else if(n.at(i)==1){
        n.at(i)-'0'+=8
    }

    }
    cout<<n<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: lvalue required as left operand of assignment
    9 |         n.at(i)-'0'-=8;
      |         ~~~~~~~^~~~
a.cc:12:16: error: lvalue required as left operand of assignment
   12 |         n.at(i)-'0'+=8
      |         ~~~~~~~^~~~
Language: C++


#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{

	string n;

	cin >> n;

	for(int i=0;i<n.length();i++)
		if(n[i]=="1"){
			cout << "9";
		}else{
			cout << "1";
		}
	}

	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                 if(n[i]=="1"){
a.cc: At global scope:
a.cc:21:9: error: 'cout' does not name a type
   21 |         cout << endl;
      |         ^~~~
a.cc:23:9: error: expected unqualified-id before 'return'
   23 |         return 0;
      |         ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <iostream>
#include<math.h>
#include <vector>
#include <numeric>
#include <algorithm>

using namespace std;

int main() {

    int n;
    cin >> n;

    for (int i = 0; i < n.size(); ++i) {
        string str = n.substr(i, 1);
        if (str == "9") {
            cout << "1";
        } else {
            cout << "9";
        }
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: request for member 'size' in 'n', which is of non-class type 'int'
   14 |     for (int i = 0; i < n.size(); ++i) {
      |                           ^~~~
a.cc:15:24: error: request for member 'substr' in 'n', which is of non-class type 'int'
   15 |         string str = n.substr(i, 1);
      |                        ^~~~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  int a,b,c;
  c=n%10;
  b=n/10%10;
  a=n/100;
  cout<<a<<b<<c<<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:4:9: error: 'cin' was not declared in this scope
    4 |   int n;cin>>n;
      |         ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<a<<b<<c<<endl;
      |   ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |   cout<<a<<b<<c<<endl;
      |                  ^~~~
Language: C++

include<bits/stdc++.h>
usgin namespace std;
int main(){
  int n;cin>>n;
  int a,b,c;
  c=n%10;
  b=n/10%10;
  a=n/100;
  cout<<a<<b<<c<<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:4:9: error: 'cin' was not declared in this scope
    4 |   int n;cin>>n;
      |         ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<a<<b<<c<<endl;
      |   ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |   cout<<a<<b<<c<<endl;
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int n;
  cin >> n;
  int a,b,c;
  a=n/100;
  b=(n%100)/10;
  c=n%10;
  cout << (a==1?9:1)+""+(b==1?9:1)+""+(c==1?9:1) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: invalid operands of types 'const char*' and 'const char [1]' to binary 'operator+'
   10 |   cout << (a==1?9:1)+""+(b==1?9:1)+""+(c==1?9:1) << endl;
      |           ~~~~~~~~~~~~~~~~~~~~~~~~^~~
      |                        |           |
      |                        const char* const char [1]
Language: C++

#include <iostream>
using namespace std;
int main(){
int n;
  cin >> n;
  int a,b,c;
  a=n/100;
  b=(n%100)/10;
  c=n%10;
  cout << (a==1?9:1)(b==1?9:1)(c==1?9:1) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expression cannot be used as a function
   10 |   cout << (a==1?9:1)(b==1?9:1)(c==1?9:1) << endl;
      |           ~~~~~~~~~~^~~~~~~~~~
Language: C++

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

int main(){
  int n;
  cin >>n;
  
  for(int i=0;i<3;i++){
    if(n.at(i) == 1){
      n.at(i) = 9;
      continue;
    }else if(n.at(i) == 9){
      n.at(i) = 1;
    }
  }
  cout<<n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'at' in 'n', which is of non-class type 'int'
    9 |     if(n.at(i) == 1){
      |          ^~
a.cc:10:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 |       n.at(i) = 9;
      |         ^~
a.cc:12:16: error: request for member 'at' in 'n', which is of non-class type 'int'
   12 |     }else if(n.at(i) == 9){
      |                ^~
a.cc:13:9: error: request for member 'at' in 'n', which is of non-class type 'int'
   13 |       n.at(i) = 1;
      |         ^~
Language: C++

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

int main(){
  int n;
  cin >>n;
  
  for(int i=0;i<3;i++){
    if(n[i] == 1){
      n[i] = 9;
      continue;
    }else if(n[i] == 9){
      n[i] = 1;
    }
  }
  cout<<n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: invalid types 'int[int]' for array subscript
    9 |     if(n[i] == 1){
      |         ^
a.cc:10:8: error: invalid types 'int[int]' for array subscript
   10 |       n[i] = 9;
      |        ^
a.cc:12:15: error: invalid types 'int[int]' for array subscript
   12 |     }else if(n[i] == 9){
      |               ^
a.cc:13:8: error: invalid types 'int[int]' for array subscript
   13 |       n[i] = 1;
      |        ^
Language: C++

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

int main() {
  
  int n;
  cin >> n;
  
  	for (int i = 0; i < 3; i++) {
      if (n.at(i) == 1) {
        n.at(i) += 8;
      }
      if (n.at(i) == 9) {
        n.at(i) -= 8;
      }
    }
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 |       if (n.at(i) == 1) {
      |             ^~
a.cc:11:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |         n.at(i) += 8;
      |           ^~
a.cc:13:13: error: request for member 'at' in 'n', which is of non-class type 'int'
   13 |       if (n.at(i) == 9) {
      |             ^~
a.cc:14:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   14 |         n.at(i) -= 8;
      |           ^~
Language: C++

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

int main() {
  
  int n, ;
  cin >> n;
  
  	for (int i = 0; i < 3; i++) {
      if (n.at(i) == 1) {
        n.at(i) += 8;
      }
      if (n.at(i) == 9) {
        n.at(i) -= 8;
      }
    }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before ';' token
    6 |   int n, ;
      |          ^
a.cc:10:13: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 |       if (n.at(i) == 1) {
      |             ^~
a.cc:11:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |         n.at(i) += 8;
      |           ^~
a.cc:13:13: error: request for member 'at' in 'n', which is of non-class type 'int'
   13 |       if (n.at(i) == 9) {
      |             ^~
a.cc:14:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   14 |         n.at(i) -= 8;
      |           ^~
Language: C++

#include <iostream>

using namespace std;

int main(){

int n,res;
  
  cin >> n;
  
  switch(n)
    case 111: cout << 999 << endl; 
              break;
    case 119: cout << 991 << endl; 
              break;
    case 191: cout << 919 << endl; 
              break;
    case 199: cout << 911 << endl; 
              break;
    case 911: cout << 199 << endl; 
              break;
    case 919: cout << 191 << endl; 
              break;
    case 991: cout << 119 << endl; 
              break;
    case 999: cout << 111 << endl; 
              break;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: break statement not within loop or switch
   13 |               break;
      |               ^~~~~
a.cc:14:5: error: case label '119' not within a switch statement
   14 |     case 119: cout << 991 << endl;
      |     ^~~~
a.cc:15:15: error: break statement not within loop or switch
   15 |               break;
      |               ^~~~~
a.cc:16:5: error: case label '191' not within a switch statement
   16 |     case 191: cout << 919 << endl;
      |     ^~~~
a.cc:17:15: error: break statement not within loop or switch
   17 |               break;
      |               ^~~~~
a.cc:18:5: error: case label '199' not within a switch statement
   18 |     case 199: cout << 911 << endl;
      |     ^~~~
a.cc:19:15: error: break statement not within loop or switch
   19 |               break;
      |               ^~~~~
a.cc:20:5: error: case label '911' not within a switch statement
   20 |     case 911: cout << 199 << endl;
      |     ^~~~
a.cc:21:15: error: break statement not within loop or switch
   21 |               break;
      |               ^~~~~
a.cc:22:5: error: case label '919' not within a switch statement
   22 |     case 919: cout << 191 << endl;
      |     ^~~~
a.cc:23:15: error: break statement not within loop or switch
   23 |               break;
      |               ^~~~~
a.cc:24:5: error: case label '991' not within a switch statement
   24 |     case 991: cout << 119 << endl;
      |     ^~~~
a.cc:25:15: error: break statement not within loop or switch
   25 |               break;
      |               ^~~~~
a.cc:26:5: error: case label '999' not within a switch statement
   26 |     case 999: cout << 111 << endl;
      |     ^~~~
a.cc:27:15: error: break statement not within loop or switch
   27 |               break;
      |               ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){

int n,res;
  
  cin >> n;
  
  switch(n)
    case 111: cout << 999 << endl; break;
    case 119: cout << 991 << endl; break;
    case 191: cout << 919 << endl; break;
    case 199: cout << 911 << endl; break;
    case 911: cout << 199 << endl; break;
    case 919: cout << 191 << endl; break;
    case 991: cout << 119 << endl; break;
    case 999: cout << 111 << endl; break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: break statement not within loop or switch
   12 |     case 111: cout << 999 << endl; break;
      |                                    ^~~~~
a.cc:13:5: error: case label '119' not within a switch statement
   13 |     case 119: cout << 991 << endl; break;
      |     ^~~~
a.cc:13:36: error: break statement not within loop or switch
   13 |     case 119: cout << 991 << endl; break;
      |                                    ^~~~~
a.cc:14:5: error: case label '191' not within a switch statement
   14 |     case 191: cout << 919 << endl; break;
      |     ^~~~
a.cc:14:36: error: break statement not within loop or switch
   14 |     case 191: cout << 919 << endl; break;
      |                                    ^~~~~
a.cc:15:5: error: case label '199' not within a switch statement
   15 |     case 199: cout << 911 << endl; break;
      |     ^~~~
a.cc:15:36: error: break statement not within loop or switch
   15 |     case 199: cout << 911 << endl; break;
      |                                    ^~~~~
a.cc:16:5: error: case label '911' not within a switch statement
   16 |     case 911: cout << 199 << endl; break;
      |     ^~~~
a.cc:16:36: error: break statement not within loop or switch
   16 |     case 911: cout << 199 << endl; break;
      |                                    ^~~~~
a.cc:17:5: error: case label '919' not within a switch statement
   17 |     case 919: cout << 191 << endl; break;
      |     ^~~~
a.cc:17:36: error: break statement not within loop or switch
   17 |     case 919: cout << 191 << endl; break;
      |                                    ^~~~~
a.cc:18:5: error: case label '991' not within a switch statement
   18 |     case 991: cout << 119 << endl; break;
      |     ^~~~
a.cc:18:36: error: break statement not within loop or switch
   18 |     case 991: cout << 119 << endl; break;
      |                                    ^~~~~
a.cc:19:5: error: case label '999' not within a switch statement
   19 |     case 999: cout << 111 << endl; break;
      |     ^~~~
a.cc:19:36: error: break statement not within loop or switch
   19 |     case 999: cout << 111 << endl; break;
      |                                    ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    
    
   string s;
   cin>>s;
   
   for(int i=0;i<3;++i)
   {
       if(s[i]==1)
          s[i]=9;
          
          else
          s[i]=1;
   
   
   return 0;
}

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

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

int main() {
  char s[4];
  fgets(s, 4, stdin);
  for (int i=0; i<3, i++) {
    if (s[i] == '1') s[i] = '9';
    else if (s[i] == '9') s[i] = '1';
  }
  int a = atoi(s);
  printf("%d\n", a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected ';' before ')' token
    7 |   for (int i=0; i<3, i++) {
      |                         ^
      |                         ;
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(int = n; c < 3; n++){
		if (c == '1'){
			cout << 9;
		}
		else if (c == '9'){
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected unqualified-id before '=' token
    8 |         for(int = n; c < 3; n++){
      |                 ^
a.cc:8:16: error: expected ';' before '=' token
    8 |         for(int = n; c < 3; n++){
      |                ^~
      |                ;
a.cc:8:17: error: expected primary-expression before '=' token
    8 |         for(int = n; c < 3; n++){
      |                 ^
a.cc:8:22: error: 'c' was not declared in this scope
    8 |         for(int = n; c < 3; n++){
      |                      ^
a.cc:8:27: error: expected ')' before ';' token
    8 |         for(int = n; c < 3; n++){
      |            ~              ^
      |                           )
a.cc:8:30: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(int = n; c < 3; n++){
      |                             ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(int = n; c < 3; n++){
		if (c == '1'){
			cout << 9;
		}
		else if (c == '9'){
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected unqualified-id before '=' token
    8 |         for(int = n; c < 3; n++){
      |                 ^
a.cc:8:16: error: expected ';' before '=' token
    8 |         for(int = n; c < 3; n++){
      |                ^~
      |                ;
a.cc:8:17: error: expected primary-expression before '=' token
    8 |         for(int = n; c < 3; n++){
      |                 ^
a.cc:8:22: error: 'c' was not declared in this scope
    8 |         for(int = n; c < 3; n++){
      |                      ^
a.cc:8:27: error: expected ')' before ';' token
    8 |         for(int = n; c < 3; n++){
      |            ~              ^
      |                           )
a.cc:8:30: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(int = n; c < 3; n++){
      |                             ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(char = n; c < 3; n++){
		if (c == '1'){
			cout << 9;
		}
		else if (c == '9'){
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before '=' token
    8 |         for(char = n; c < 3; n++){
      |                  ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for(char = n; c < 3; n++){
      |                 ^~
      |                 ;
a.cc:8:18: error: expected primary-expression before '=' token
    8 |         for(char = n; c < 3; n++){
      |                  ^
a.cc:8:23: error: 'c' was not declared in this scope
    8 |         for(char = n; c < 3; n++){
      |                       ^
a.cc:8:28: error: expected ')' before ';' token
    8 |         for(char = n; c < 3; n++){
      |            ~               ^
      |                            )
a.cc:8:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(char = n; c < 3; n++){
      |                              ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(char = n; c < 100; n++){
		if (c == '1'){
			cout << 9;
		}
		else if (c == '9'){
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before '=' token
    8 |         for(char = n; c < 100; n++){
      |                  ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for(char = n; c < 100; n++){
      |                 ^~
      |                 ;
a.cc:8:18: error: expected primary-expression before '=' token
    8 |         for(char = n; c < 100; n++){
      |                  ^
a.cc:8:23: error: 'c' was not declared in this scope
    8 |         for(char = n; c < 100; n++){
      |                       ^
a.cc:8:30: error: expected ')' before ';' token
    8 |         for(char = n; c < 100; n++){
      |            ~                 ^
      |                              )
a.cc:8:33: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(char = n; c < 100; n++){
      |                                ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(char = n; c < 100; n++){
		if (c == '1'){
			cout << 9;
		}
		else if (c == '9'){
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before '=' token
    8 |         for(char = n; c < 100; n++){
      |                  ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for(char = n; c < 100; n++){
      |                 ^~
      |                 ;
a.cc:8:18: error: expected primary-expression before '=' token
    8 |         for(char = n; c < 100; n++){
      |                  ^
a.cc:8:23: error: 'c' was not declared in this scope
    8 |         for(char = n; c < 100; n++){
      |                       ^
a.cc:8:30: error: expected ')' before ';' token
    8 |         for(char = n; c < 100; n++){
      |            ~                 ^
      |                              )
a.cc:8:33: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(char = n; c < 100; n++){
      |                                ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(char = n; c < 3; n++){
		if (c == '1') {
			cout << 9;
		}
		else if (c == '9') {
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before '=' token
    8 |         for(char = n; c < 3; n++){
      |                  ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for(char = n; c < 3; n++){
      |                 ^~
      |                 ;
a.cc:8:18: error: expected primary-expression before '=' token
    8 |         for(char = n; c < 3; n++){
      |                  ^
a.cc:8:23: error: 'c' was not declared in this scope
    8 |         for(char = n; c < 3; n++){
      |                       ^
a.cc:8:28: error: expected ')' before ';' token
    8 |         for(char = n; c < 3; n++){
      |            ~               ^
      |                            )
a.cc:8:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(char = n; c < 3; n++){
      |                              ~^~
Language: C++

#include <iostream>

using namespace std;

int main() {
	string n;
	cin >> n;
	for(char  = n; c < 3; n++){
		if (c == '1') {
			cout << 9;
		}
		else if (c == '9') {
			cout << 1;
			}
		else {
			cout << c;
		}
	}
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected unqualified-id before '=' token
    8 |         for(char  = n; c < 3; n++){
      |                   ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for(char  = n; c < 3; n++){
      |                 ^ ~
      |                 ;
a.cc:8:19: error: expected primary-expression before '=' token
    8 |         for(char  = n; c < 3; n++){
      |                   ^
a.cc:8:24: error: 'c' was not declared in this scope
    8 |         for(char  = n; c < 3; n++){
      |                        ^
a.cc:8:29: error: expected ')' before ';' token
    8 |         for(char  = n; c < 3; n++){
      |            ~                ^
      |                             )
a.cc:8:32: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |         for(char  = n; c < 3; n++){
      |                               ~^~
Language: C++

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

int main(){
    int n;
    cin >> n;
    for(int i=0;i<3;i++){
        if(n[i]==1) n[i]=9;
        else if(n[i]==9) n[i]=1;
    }
    cout << n << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid types 'int[int]' for array subscript
   12 |         if(n[i]==1) n[i]=9;
      |             ^
a.cc:12:22: error: invalid types 'int[int]' for array subscript
   12 |         if(n[i]==1) n[i]=9;
      |                      ^
a.cc:13:18: error: invalid types 'int[int]' for array subscript
   13 |         else if(n[i]==9) n[i]=1;
      |                  ^
a.cc:13:27: error: invalid types 'int[int]' for array subscript
   13 |         else if(n[i]==9) n[i]=1;
      |                           ^
Language: C++

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

namespace ABC111 {
	class ABC111_A {
		static void Main(string[] args) {
			var input = Console.ReadLine();
			var sb = new StringBuilder();
			foreach (var c in input) {
				if(c == '1') {
					sb.Append("9");
					continue;
				}
				if(c == '9') {
					sb.Append("1");
					continue;
				}
			}
			Console.WriteLine(sb.ToString());
		}
	}
}


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.Threading.Tasks;
      |       ^~~~~~
a.cc:9:34: error: 'string' has not been declared
    9 |                 static void Main(string[] args) {
      |                                  ^~~~~~
a.cc:9:43: error: expected ',' or '...' before 'args'
    9 |                 static void Main(string[] args) {
      |                                           ^~~~
a.cc:24:10: error: expected ';' after class definition
   24 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC111::ABC111_A::Main(int*)':
a.cc:10:25: error: 'var' was not declared in this scope
   10 |                         var input = Console.ReadLine();
      |                         ^~~
a.cc:11:29: error: expected ';' before 'sb'
   11 |                         var sb = new StringBuilder();
      |                             ^~
a.cc:12:38: error: expected ')' before 'c'
   12 |                         foreach (var c in input) {
      |                                      ^
a.cc:12:33: note: to match this '('
   12 |                         foreach (var c in input) {
      |                                 ^
a.cc:12:25: error: 'foreach' was not declared in this scope
   12 |                         foreach (var c in input) {
      |                         ^~~~~~~
a.cc:22:25: error: 'Console' was not declared in this scope
   22 |                         Console.WriteLine(sb.ToString());
      |                         ^~~~~~~
a.cc:22:43: error: 'sb' was not declared in this scope
   22 |                         Console.WriteLine(sb.ToString());
      |                                           ^~
Language: C++

#include <cstdio>  
#include <algorithm>
using namespace std;  
int main() { 	
	int a,b,c;
	int d;
	scanf("%d%d%d", &a, &b, &c);
	if(a==9){
		a=1;
	}
	if(a==1){
		a=9;
	}
	if(b==9){
		b=1;
	}
	if(b==1){
		b=9;
	}
	if(c==1){
		c=9
	}
	if(c==9){
		c=1;
	}
	printf("%d%d%d", a , b, c);

	
	
}






Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected ';' before '}' token
   21 |                 c=9
      |                    ^
      |                    ;
   22 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, a, b, c;
  a = 0;
  b=0;
  c=0;
  cin >> n ;
  a = n % 10;
  b = (n - a)%100);
  c = n - (a+b);
  if(a == 1){a = 9;
            }
  if(b == 10){b = 90;
            }
  if(c == 100){c = 900;
            }
  
  cout << c+b+a<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before ')' token
   11 |   b = (n - a)%100);
      |                  ^
      |                  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, a, b, c;
  cin >> n ;
  a = n % 10;
  b = (n - a)%100/10;
  c = (n - a - 10*b)/100;
  if(a == 1){a = 9}
  if(b == 1){b = 9}
  if(c == 1){c = 9}
  
  cout << 100*c + 10*b + a<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '}' token
   10 |   if(a == 1){a = 9}
      |                   ^
      |                   ;
a.cc:11:19: error: expected ';' before '}' token
   11 |   if(b == 1){b = 9}
      |                   ^
      |                   ;
a.cc:12:19: error: expected ';' before '}' token
   12 |   if(c == 1){c = 9}
      |                   ^
      |                   ;