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

import java.util.*;
import java.lang.*;

public class Main {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (int i = 0; i < str.length(); i++) {
	  	result = Character.getNumValue(str.charAt(i));
    }
    System.out.println(result);
  }
}



Compiler output:
Main.java:10: error: cannot find symbol
	  	result = Character.getNumValue(str.charAt(i));
	  	                  ^
  symbol:   method getNumValue(char)
  location: class Character
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (int i = 0; i < str.length(); i++) {
	  	result = Character.getNumValue(str.charAt(i));
    }
    System.out.println(result);
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
	  	result = Character.getNumValue(str.charAt(i));
	  	                  ^
  symbol:   method getNumValue(char)
  location: class Character
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (char tmp : str.split("")) {
    	result = Character.getNumValue(tmp);
    }
    System.out.println(result);
  }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to char
    for (char tmp : str.split("")) {
                             ^
Main.java:9: error: cannot find symbol
    	result = Character.getNumValue(tmp);
    	                  ^
  symbol:   method getNumValue(char)
  location: class Character
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (char tmp : str.split("")) {
    	result = Character.getNumValue(tmp);
    }
    System.out.println(result);
   	}
  }
}   


Compiler output:
Main.java:14: error: class, interface, enum, or record expected
}   
^
1 error
Language: Java

import java.util.*;

public class Main() {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (char tmp : str.split("")) {
    	result = Character.getNumValue(tmp);
    }
    System.out.println(result);
   	}
  }
}   


Compiler output:
Main.java:3: error: '{' expected
public class Main() {
                 ^
Main.java:14: error: class, interface, enum, or record expected
}   
^
2 errors
Language: Java

import java.util.*

public class Main() {
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    int result = 0;
    for (char tmp : str.split("")) {
    	result = Character.getNumValue(tmp);
    }
    System.out.println(result);
   	}
  }
}   

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:3: error: '{' expected
public class Main() {
                 ^
Main.java:14: error: class, interface, enum, or record expected
}   
^
3 errors
Language: C

#include<stdio.h>

int main(){


        char s[4];
        scanf("%s",s);
        int loop;
        int count=0;

        for(loop=0; loop < 3; loop++){
                if(s[loop] == '1'){
                        count++;
                }
        }

        printf("%d\n",count);

        return 0;


Compiler output:
main.c: In function 'main':
main.c:19:9: error: expected declaration or statement at end of input
   19 |         return 0;
      |         ^~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string s;
  cin >> s;
  
  int counter;
  if (s[0]) ++counter;
  if (s[1]) ++counter;
  if (s[2]) ++counter;
  
  count << counter<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'count' was not declared in this scope; did you mean 'counter'?
   16 |   count << counter<< endl;
      |   ^~~~~
      |   counter
Language: C

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

int main() {
    string s;
    cin >> s;
    int counter = 0;
    if (s[0] == '1') ++counter;
    if (s[1] == '1') ++counter;
    if (s[2] == '1') ++counter;
    cout << counter << endl;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int a;
  cin>>a;
  a=a%1+a
  cout<<a/100+a/10%2+a%2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before 'cout'
    7 |   a=a%1+a
      |          ^
      |          ;
    8 |   cout<<a/100+a/10%2+a%2<<endl;
      |   ~~~~
Language: C++

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

int main(){
  int a
  cin >> a;
  cout << a%100 + a%10 + a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a;
      |   ^~~
a.cc:7:11: error: 'a' was not declared in this scope
    7 |   cout << a%100 + a%10 + a << endl;
      |           ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  int i = 0, ans = 0;
  for(i=0;i<3;i++){
    if(str.substr(i, 1) == 1) {
      ans++;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |     if(str.substr(i, 1) == 1) {
      |        ^~~
      |        std
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
  int a;
  int total = 0;
  cin >> a;
  
  while(a != 0){
    total += a%2
  }
  
  cout << total << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before '}' token
   11 |     total += a%2
      |                 ^
      |                 ;
   12 |   }
      |   ~
Language: C++

#include(iostream)
using namespace std;

int main()
{
  int a;
  int total = 0;
  cint >> a;
  
  while(a != 0){
    total += a%2
  }
  
  cout << total << endl;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:8:3: error: 'cint' was not declared in this scope; did you mean 'int'?
    8 |   cint >> a;
      |   ^~~~
      |   int
a.cc:11:17: error: expected ';' before '}' token
   11 |     total += a%2
      |                 ^
      |                 ;
   12 |   }
      |   ~              
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << total << endl;
      |   ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |   cout << total << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (s[i]=="1"){
a.cc:10:13: error: expected ';' before '}' token
   10 |       ans+=1
      |             ^
      |             ;
   11 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  if (n==000){
    cout << 0 << endl;
  }
  if (n==001){
    cout << 1 << endl;
  }
  if (n===010){
    cout << 1 << endl;
  }
  if (n==100){
    cout << 1 << endl;
  }
  if (n==011){
    cout << 2 << endl;
  }
  if (n==101){
    cout << 2 << endl;
  }
  if (n==110){
    cout << 2 << endl;
  }
  if (n==111){
    cout << 3 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '=' token
   13 |   if (n===010){
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n
  if (n==000){
    cout << 0 << endl;
  }
  if (n==001){
    cout << 1 << endl;
  }
  if (n===010){
    cout << 1 << endl;
  }
  if (n==100){
    cout << 1 << endl;
  }
  if (n==011){
    cout << 2 << endl;
  }
  if (n==101){
    cout << 2 << endl;
  }
  if (n==110){
    cout << 2 << endl;
  }
  if (n==111){
    cout << 3 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'if'
    6 |   cin >> n
      |           ^
      |           ;
    7 |   if (n==000){
      |   ~~       
a.cc:13:10: error: expected primary-expression before '=' token
   13 |   if (n===010){
      |          ^
Language: C

#include <stdio.h>
int main(){
  int i,ans;
  ans=0
  char s[9];
  scanf("%s",&s);
  for(i=0;i<3;i++){
    if(s[i]=="1") ans++;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected ';' before 'char'
    4 |   ans=0
      |        ^
      |        ;
    5 |   char s[9];
      |   ~~~~  
main.c:6:15: error: 's' undeclared (first use in this function)
    6 |   scanf("%s",&s);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
 
  string mass;
  cin >> mass;
  int count = 0;
  for(int i; i<3; i++){
    if(mass.at(i) == "1")
      count++;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(mass.at(i) == "1")
      |        ~~~~~~~~~~~^~~~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main(){
 
  string mass;
  cin >> mass;
  int count = 0;
  for(int i; i<3; i++){
    if(mass.at(i) == "1")
      count++;
  }
  cout << count << 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:6:3: error: 'string' was not declared in this scope
    6 |   string mass;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> mass;
      |   ^~~
a.cc:7:10: error: 'mass' was not declared in this scope
    7 |   cin >> mass;
      |          ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   13 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:13:20: error: 'endl' was not declared in this scope
   13 |   cout << count << endl;
      |                    ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main(){
 
  string mass;
  cin >> mass;
  int count = 0
  for(int i; i<3; i++){
    if(mass.at(i) == "1")
      count++;
  }
  cout << count << 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:6:3: error: 'string' was not declared in this scope
    6 |   string mass;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> mass;
      |   ^~~
a.cc:7:10: error: 'mass' was not declared in this scope
    7 |   cin >> mass;
      |          ^~~~
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i; i<3; i++){
      |   ^~~
a.cc:9:14: error: 'i' was not declared in this scope
    9 |   for(int i; i<3; i++){
      |              ^
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   13 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:13:20: error: 'endl' was not declared in this scope
   13 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int main(){

  string mass;
  cin >> mass;
  int count = 0
  for(int i; i<3; i++){
    if(mass.at(i) == "1")
      count++
  }
  cout << count << 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:6:3: error: 'string' was not declared in this scope
    6 |   string mass;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> mass;
      |   ^~~
a.cc:7:10: error: 'mass' was not declared in this scope
    7 |   cin >> mass;
      |          ^~~~
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i; i<3; i++){
      |   ^~~
a.cc:9:14: error: 'i' was not declared in this scope
    9 |   for(int i; i<3; i++){
      |              ^
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   13 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:13:20: error: 'endl' was not declared in this scope
   13 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int main() {
  int i,n=0;
  cin >> i;
  n =+ i/100;
  n =+ i%100/10;
  n =+ i%10;
  cout << n[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |   cout << n[0] << endl;
      |            ^
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;

#define ll         long long
#define PI         acos(-1.0)
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)

string a;
int ct;

int main(){
    cin >> a;
    if (a[0] == "1") {
      ++ct;
    } 
    if (a[1] == "1") {
      ++ct;
    } 
    if (a[2] == "1") {
      ++ct;
    }
    cout << ct; 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     if (a[0] == "1") {
a.cc:28:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |     if (a[1] == "1") {
a.cc:31:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   31 |     if (a[2] == "1") {
Language: C++

nclude <bits/stdc++.h>
using namespace std;
 
int main(){
  string a;
  cin >> a;
  int num = 0;
  if(a[0] == '1'){num++;}
  if(a[1] == '1'){num++;}
  if(a[2] == '1'){num++;}
  cout << num << endl;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string a;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a;
      |   ^~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a;
      |          ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << num << endl;
      |   ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |   cout << num << endl;
      |                  ^~~~
Language: C++

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

int main() {
  int a;
  cin >> a;
  b = a ;
  c = a/100;
  d = b - c*100;
  e = d;
  f = d/10;
  g = e - f*10;
  cout << c + f + g << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'b' was not declared in this scope
    7 |   b = a ;
      |   ^
a.cc:8:3: error: 'c' was not declared in this scope
    8 |   c = a/100;
      |   ^
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d = b - c*100;
      |   ^
a.cc:10:3: error: 'e' was not declared in this scope
   10 |   e = d;
      |   ^
a.cc:11:3: error: 'f' was not declared in this scope
   11 |   f = d/10;
      |   ^
a.cc:12:3: error: 'g' was not declared in this scope
   12 |   g = e - f*10;
      |   ^
Language: C++

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

int main() {
  string s;
  cin >> s ;
  int cnt=0;
  for(int i=0;i<s.length();s++){
   	if(s.substr(i,1)=="1"){
      cnt++;
    }
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |   for(int i=0;i<s.length();s++){
      |                            ~^~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int n, a[n], i, all_even = 1;
  int answer=0;
  cin >> n;
  for(i=0; i<n; i++) {
    cin >> a[i];
  }
  while (all_even = 1) {
    for(i=0; i<n; i++) {
      if((a[i] % 2) != 0) {
        all_even = 0;
        break;
      }
      a[i] /= 2;
    }
    if(all_even == 1) answer++;
  }
  cout << answer

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: expected ';' before 'return'
   20 |   cout << answer
      |                 ^
      |                 ;
   21 | 
   22 |   return 0;
      |   ~~~~~~
Language: C++

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

int main() {
  int s1s2s3;
  cin >> s1s2s3;
  int a=s1s2s3/100;
  int b=(s1s2s3-a)/10;
  int c=(s1s2s3-a-b)
  cout << a+b+c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'cout'
   10 |   cout << a+b+c << endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'c'
    7 |   b = a / 100
      |              ^
      |              ;
    8 |   c = a - b * 100
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'c'
    7 |   b = a / 100
      |              ^
      |              ;
    8 |   c = a - b * 100
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before ';' token
    5 |   int a, b, c, d,;
      |                  ^
a.cc:7:14: error: expected ';' before 'c'
    7 |   b = a / 100
      |              ^
      |              ;
    8 |   c = a - b * 100
      |   ~
Language: C++

(defun fun (s)
  (loop :for c :across s
     :count (char= c #\1)))

(format t "~A~%" (fun (read-line)))


Compiler output:
a.cc:3:22: error: stray '#' in program
    3 |      :count (char= c #\1)))
      |                      ^
a.cc:3:23: error: stray '\' in program
    3 |      :count (char= c #\1)))
      |                       ^
a.cc:1:7: error: expected ')' before 'fun'
    1 | (defun fun (s)
      | ~     ^~~~
      |       )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int S;
  cin >> S;
  cout << S / 100 + (S - S / 100) / 10 + (S - S \ 100 - S / 10) << endl;
}

Compiler output:
a.cc:7:49: error: stray '\' in program
    7 |   cout << S / 100 + (S - S / 100) / 10 + (S - S \ 100 - S / 10) << endl;
      |                                                 ^
a.cc: In function 'int main()':
a.cc:7:48: error: expected ')' before numeric constant
    7 |   cout << S / 100 + (S - S / 100) / 10 + (S - S \ 100 - S / 10) << endl;
      |                                          ~     ^  ~~~
      |                                                )
Language: C++

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

int main() {
  int s1s2s3;
  cin >> s1s2s3;
  
  s1s2s3 = X
    
  cout << X % 9 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'X' was not declared in this scope
    8 |   s1s2s3 = X
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    string a;
    int x=0;
    if(a[0]=='1'){x++};
    if(a[0]=='1'){x++};
    if(a[0]=='1'){x++};
    cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '}' token
    7 |     if(a[0]=='1'){x++};
      |                      ^
      |                      ;
a.cc:8:22: error: expected ';' before '}' token
    8 |     if(a[0]=='1'){x++};
      |                      ^
      |                      ;
a.cc:9:22: error: expected ';' before '}' token
    9 |     if(a[0]=='1'){x++};
      |                      ^
      |                      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    char a,b,c;
    int a=0;
    cin>>a>>b>>c;
    if(a='1'){
        a++;
    }
    else if(b='1'){
        a++;
    }
    else if(c='1'){
        a++;
    }
    else{}
    cout<<a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: conflicting declaration 'int a'
    6 |     int a=0;
      |         ^
a.cc:5:10: note: previous declaration as 'char a'
    5 |     char a,b,c;
      |          ^
Language: C

#include<stdio.h>
    int main(){
        int S;
            scanf("%d", &S);
                    if(S = 111){
                        printf("3");
                    }else if(S = 011 || S = 101 || S = 110){
                        printf("2");
                    }else if(S = 001 || S = 010 || S = 100){
                        printf("1");
                    }else{
                        printf("0");
                    }
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:7:54: error: lvalue required as left operand of assignment
    7 |                     }else if(S = 011 || S = 101 || S = 110){
      |                                                      ^
main.c:9:54: error: lvalue required as left operand of assignment
    9 |                     }else if(S = 001 || S = 010 || S = 100){
      |                                                      ^
Language: Java

import java.util.Scanner;

public class A086 {
	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);

		int a = Integer.parseInt(sc.next());
		int count = 0;
		
		if(a / 100 == 1) {
			count++;
			a -= 100;
		}
		
		
		if(a / 10 == 1) {
			count++;
			a -= 10;
		}
		
		if(a / 1 == 1) {
			count++;
		}
		System.out.println(count);

		sc.close();
	}
}

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

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

int main() {
  int a;
  cin >> a;
  if ( a == 000 ) {
    cout << 0 << endl;
  } else if ( a == 001 || a == 010 || a == 100 ) {
    cout << 1 << endl;
  } else if ( a == 011 || a == 101 || a == 110 ) {
    cout << 2 << endl;
  } else {
    cout << 3 << endl;
  }
  return;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int s,count = 0;
  cin >> s;
  count += s-(s/10)*10;
  count += ((s/100)*100-count)/10);
  count += s / 100;
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ';' before ')' token
    8 |   count += ((s/100)*100-count)/10);
      |                                  ^
      |                                  ;
Language: C++

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

int main() {
  int s;
  cin >> s;
  s1 = s/100;
  s2 = s/10 - s/100 * 10;
  s3 = s%10;
  cout << s1 + s2 + s3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 's1' was not declared in this scope; did you mean 's'?
    7 |   s1 = s/100;
      |   ^~
      |   s
a.cc:8:3: error: 's2' was not declared in this scope; did you mean 's'?
    8 |   s2 = s/10 - s/100 * 10;
      |   ^~
      |   s
a.cc:9:3: error: 's3' was not declared in this scope; did you mean 's'?
    9 |   s3 = s%10;
      |   ^~
      |   s
Language: C++

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

int main() {
  int s;
  cin >> s;
  s1 = s/100;
  s2 = s/10 - s/100 * 1000
  s3 = s%10;
  cout << s1 + s2 + s3 << endl; // 10
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 's1' was not declared in this scope; did you mean 's'?
    7 |   s1 = s/100;
      |   ^~
      |   s
a.cc:8:3: error: 's2' was not declared in this scope; did you mean 's'?
    8 |   s2 = s/10 - s/100 * 1000
      |   ^~
      |   s
a.cc:10:21: error: 's3' was not declared in this scope; did you mean 's'?
   10 |   cout << s1 + s2 + s3 << endl; // 10
      |                     ^~
      |                     s
Language: C

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

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

	int counter = 0;
	if(s[0] == '1'){counter++;}
	if(s[1] == '1'){counter++;}
	if(s[2] == '1'){counter++;}

	cout << counter << endl;
 	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(s[i]=="1"){
Language: C++

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

int main() {
    string str;
    cin >> str;
    int count = 0;

    for(int i=0; i<2; i++) {
        if(str.at[i] == 1) {
            count++;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   10 |         if(str.at[i] == 1) {
      |                  ^
Language: C++

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

int main() {
  string s;
  int ans = 0;
  cin >> s;
  if (s[0] == '1') ans++;
  if (s[1] == '1') ans++;
  if (s[2]) == '1') ans++;
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected primary-expression before '==' token
   10 |   if (s[2]) == '1') ans++;
      |             ^~
Language: Java

import java.util.*;

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

		String s = sc.next();
      
		int s0 = Integer.parseInt(s.substring(0, 1));
		int s1 = Integer.parseInt(s.substring(1, 2));
		int s2 = Integer.parseInt(s.substring(2, 3));

		int s_t = s0 + s1 + s2;
		System.out.print(s_t);

	}
}

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

#include <iostream>
 
using namespace std;
 
#define rep(i, n) for (int i = 0; i < n; i++)
 
int main(void) {
    string s;
    cin >> s;
    int ans = 0; // 数を数えるための変数。これが答えになる
    
    for (int i = 0; i < n; i++){
      if (s[i] == '1') {
        ans++;
      }
    }
  
    cout << ans << endl;
    return 0;
}


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

int main() {
  int a;
  cin >> a;
  int x = a % 10;
  int y = (a - x) / 10 % 10;
  int z = (a - x - y) / 100;
  cout << x + y + z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << x + y + z << endl;
      |   ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |   cout << x + y + z << endl;
      |                        ^~~~
Language: C++

int main() {
  int a;
  cin >> a;
  int x = a % 10
  int y = (a - x) / 10 % 10
  int z = (a - x - y) / 100
  cout << x + y + z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a;
      |   ^~~
a.cc:5:3: error: expected ',' or ';' before 'int'
    5 |   int y = (a - x) / 10 % 10
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここに追記
  string S = "";
  cin >> S;
  I = stoi(S);
  cout << I / 100 + I / 10 + I << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'I' was not declared in this scope
    8 |   I = stoi(S);
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここに追記
  string S = "";
  cin >> S;
  I = atoi(S);
  cout << I / 100 + I / 10 + I << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'I' was not declared in this scope
    8 |   I = atoi(S);
      |   ^
a.cc:8:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   I = atoi(S);
      |            ^
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C


#include <stdio.h>

int main()
{
	int count=0;
	char* ps = 0;
	scanf("%s",ps);
	
	while(*ps!='\0')
	{
		if(*ps==1)
		{
			count++;
		}
		ps++
	}
	printf("%d",&count);
}

Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected ';' before '}' token
   16 |                 ps++
      |                     ^
      |                     ;
   17 |         }
      |         ~
Language: C++

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

int main()
{ 
  string s;
  
  cin>>s;
  
  int counter=0;
  if(s[0]=='1')++couter;
  if(s[1]=='1')++couter;
  if(s[2]=='1')++couter;
  
  cout<<couter<<endl;
}
	


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'couter' was not declared in this scope; did you mean 'counter'?
   12 |   if(s[0]=='1')++couter;
      |                  ^~~~~~
      |                  counter
a.cc:13:18: error: 'couter' was not declared in this scope; did you mean 'counter'?
   13 |   if(s[1]=='1')++couter;
      |                  ^~~~~~
      |                  counter
a.cc:14:18: error: 'couter' was not declared in this scope; did you mean 'counter'?
   14 |   if(s[2]=='1')++couter;
      |                  ^~~~~~
      |                  counter
a.cc:16:9: error: 'couter' was not declared in this scope; did you mean 'counter'?
   16 |   cout<<couter<<endl;
      |         ^~~~~~
      |         counter
Language: C++

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

int main()
{ 
  string s;
  
  cin>>s;
  
  int counter=0;
  if(s[0]=='1')++couter;
  if(s[1]=='1')++couter;
  if(s[2]=='1')++couter;
  
  cout<<couter<<endl;
}
	

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

#include<iostream>
using namespace std;

int main()
{
  int a,b,c;
  
  cin >> a >> b >> c;
  
  int d = a+b+c;
  
  if(d == 3)
    cout<<"3"<<endl;
  else if(d ==　2)
    cout<<"2"<<endl;
  else if(d == 1)
    cout<<"1"<<endl;
  else 
    cout<<"0"<<endl;
}
    
  
  


Compiler output:
a.cc:14:15: error: extended character 　 is not valid in an identifier
   14 |   else if(d ==　2)
      |               ^
a.cc: In function 'int main()':
a.cc:14:15: error: '\U000030002' was not declared in this scope
   14 |   else if(d ==　2)
      |               ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int S1,S2,S3;
  
  cin >> S1 >> S2 >> S3;
  
  int a = S1+S2+S3;
  
  if(a == 3)
    cout<<"3"<<endl;
  else if(a ==　2)
    cout<<"2"<<endl;
  else if(a == 1)
    cout<<"1"<<endl;
  else 
    cout<<"0"<<endl;
}
    
  
  


Compiler output:
a.cc:14:15: error: extended character 　 is not valid in an identifier
   14 |   else if(a ==　2)
      |               ^
a.cc: In function 'int main()':
a.cc:14:15: error: '\U000030002' was not declared in this scope
   14 |   else if(a ==　2)
      |               ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int S1,S2,S3;
  
  cin >> S1 >> S2 >> S3;
  
  int a = S1+S2+S3;
  
  if(a == 3)
    cout<<"3"<<endl;
  else if(a ==　2)
    cout<<"2"<<endl;
  else if(a == 1)
    cout<<"1"<<endl;
  else 
    cout<<"0"<<endl;
    
    
  
  

Compiler output:
a.cc:14:15: error: extended character 　 is not valid in an identifier
   14 |   else if(a ==　2)
      |               ^
a.cc: In function 'int main()':
a.cc:14:15: error: '\U000030002' was not declared in this scope
   14 |   else if(a ==　2)
      |               ^~~
a.cc:19:21: error: expected '}' at end of input
   19 |     cout<<"0"<<endl;
      |                     ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include"bits.stdc++.h"
using namespace std;
int main(){
  string s;cin >> s;int ans=0;
  for(int i=0;i<n;i++)if(s[i]=="1")ans++;
  cout << ans;}

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

#include<iostream>
using namespace std;
int main() {
    string s;
    cin >> s;
    int counter = 0;
    if (s[0] == '1'{
      ++counter;
    }
    if (s[1] == '1') ++counter;
    if (s[2] == '1') ++counter;
    cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '{' token
    7 |     if (s[0] == '1'{
      |                    ^
      |                    ;
a.cc:10:5: error: expected primary-expression before 'if'
   10 |     if (s[1] == '1') ++counter;
      |     ^~
a.cc:9:6: error: expected ')' before 'if'
    9 |     }
      |      ^
      |      )
   10 |     if (s[1] == '1') ++counter;
      |     ~~
a.cc:7:8: note: to match this '('
    7 |     if (s[0] == '1'{
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int x;
    cin>>x;
    int y=0;
    if(x%10==1)
    { y++;}
    else if((x/10)%10==1)
    {y++;}
    else if((x/100)%10==1)
    {y++}
 
    cout<<y;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ';' before '}' token
   12 |     {y++}
      |         ^
      |         ;
Language: C++

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

int main() {
    string s;
    cin >> s;
    int counter = 0;
    if (s[0] == "1") ++counter;
    if (s[1] == '1') ++counter;
    if (s[2] == '1') ++counter;
    cout << counter << endl;
}

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

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

int main(){
  string s;
  cin>>s;
  int c=0;
  if (s[0] == "1") ++c;
  if (s[1] == "1") ++c;
  if (s[2] == "1") ++c;
  cout << c << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0] == "1") ++c;
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1] == "1") ++c;
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[2] == "1") ++c;
Language: C++

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

int main(){
  string s;
  cin>>s;
  int c=0;
  if (s[0]=="1") ++c;
  if (s[1]=="1") ++c;
  if (s[2]=="1") ++c;
  cout << c << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0]=="1") ++c;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1]=="1") ++c;
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[2]=="1") ++c;
Language: C++

using namespace std;

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

	int counter = 0;

	if (s[0] = '1')++counter;
	if (s[1] = '1')++counter;
	if (s[2] = '1')++counter;

	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: 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 | using namespace std;
a.cc:5:9: 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 | using namespace std;
a.cc:5:16: error: 's' was not declared in this scope
    5 |         cin >> s;
      |                ^
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << counter << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:28: error: 'endl' was not declared in this scope
   13 |         cout << counter << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main()
{
  int a = 0;
  string s;
  cin >> s;
  if (s[0] == "1") a++;
  if (s[1] == "1") a++;
  if (s[2] == "1") a++;
  cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[0] == "1") a++;
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[1] == "1") a++;
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (s[2] == "1") a++;
Language: C++

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

int main()
{
  int a = 0;
  string s;
  cin >> s;
  if (s[0] == "1") a++;
  if (s[1] == "1") a++;
  if (s[2] == "1") a++;
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[0] == "1") a++;
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[1] == "1") a++;
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (s[2] == "1") a++;
Language: C++

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

int main(){
  string s;
  cin >> s;
  int counter = 0;
  if (s[0] == "1") ++counter;
  if (s[1] == "1") ++counter;
  if (s[2] == "1") ++counter;
  cout << counter << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0] == "1") ++counter;
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1] == "1") ++counter;
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[2] == "1") ++counter;
a.cc:12:27: error: expected '}' at end of input
   12 |   cout << counter << endl;
      |                           ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

import java.util.*;

class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		s=s.replaceAll("0","");
		System.out.println(s.length());
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:15: error: expected ':' before 'static'
    5 |         public static void main(String[] args)
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String[] args)
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |         public static void main(String[] args)
      |                                          ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:17: error: 'Scanner' was not declared in this scope
    7 |                 Scanner sc = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:8:17: error: 'String' was not declared in this scope
    8 |                 String s=sc.next();
      |                 ^~~~~~
a.cc:9:17: error: 's' was not declared in this scope
    9 |                 s=s.replaceAll("0","");
      |                 ^
a.cc:10:17: error: 'System' was not declared in this scope
   10 |                 System.out.println(s.length());
      |                 ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  cout << atoi(s[0])+atoi(s[1])+atoi(s[2]) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
    7 |   cout << atoi(s[0])+atoi(s[1])+atoi(s[2]) << endl;
      |           ~~~~^~~~~~
      |               |
      |               __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:7:26: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
    7 |   cout << atoi(s[0])+atoi(s[1])+atoi(s[2]) << endl;
      |                      ~~~~^~~~~~
      |                          |
      |                          __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:7:37: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
    7 |   cout << atoi(s[0])+atoi(s[1])+atoi(s[2]) << endl;
      |                                 ~~~~^~~~~~
      |                                     |
      |                                     __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

int main(){
  int s1,s2,s3;
  cin >> s1 >> s2 >> s3;
  if(s1+s2+s3==0){
    cout << 0 << endl;
  }
  else(s1+s2+s3==1){
    cout << 1 << endl;
  }
  else(s1+s2+s3==2){
    cout << 2 << endl;
  }
  else(s1+s2+s3==3){
    cout << 3 << endl;
  }
}

Compiler output:
a.cc:2:17: error: 'bits' is not a namespace-name
    2 | using namespace bits;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s1 >> s2 >> s3;
      |   ^~~
      |   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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << 0 << 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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << 0 << 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)
      |     ^~~~
a.cc:10:20: error: expected ';' before '{' token
   10 |   else(s1+s2+s3==1){
      |                    ^
      |                    ;
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else(s1+s2+s3==2){
      |   ^~~~
a.cc:13:20: error: expected ';' before '{' token
   13 |   else(s1+s2+s3==2){
      |                    ^
      |                    ;
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else(s1+s2+s3==3){
      |   ^~~~
a.cc:16:20: error: expected ';' before '{' token
   16 |   else(s1+s2+s3==3){
      |                    ^
      |                    ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(void){
  int ans;
  string s;
  cin >> s;
  if(s[0]=='1') ans++
  if(s[1]=='1') ans++
  if(s[2]=='1') ans++
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'if'
    8 |   if(s[0]=='1') ans++
      |                      ^
      |                      ;
    9 |   if(s[1]=='1') ans++
      |   ~~
Language: C++

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

int main(void){
  int ans;
  string s;
  cin >> s;
  if(s[0]=='1') ans++
  if(s[0]=='1') ans++
  if(s[0]=='1') ans++
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'if'
    8 |   if(s[0]=='1') ans++
      |                      ^
      |                      ;
    9 |   if(s[0]=='1') ans++
      |   ~~
Language: C++

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

int main() {
  stirng s;
  cin >> s;
  int counter = 0;
  if (s[0]=="1") ++counter;
  if (s[1]=="1") ++counter;
  if (s[2]=="1") ++counter;
  count << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'stirng' was not declared in this scope
    6 |   stirng s;
      |   ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:12:3: error: 'count' was not declared in this scope; did you mean 'counter'?
   12 |   count << counter << endl;
      |   ^~~~~
      |   counter
Language: C++

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

int main() {
  string s;
  cin >> s;
  int counter =0;
  if (s[0]=="1") ++counter;
  if (s[1]=="1") ++counter;
  if (s[2]=="1") ++counter;
  cout << counter << endl+
}

  

Compiler output:
a.cc:2:10: fatal error: stream: No such file or directory
    2 | #include <stream>
      |          ^~~~~~~~
compilation terminated.