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

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

int main() {

    // マス目
    string s;
    
    // マス目を入力
    cin >> s;
    
    // 1のカウンタ
    int counter = 0;
    
    for (int i = 0; i < 3; ++i) {
    	if (s[i] == '1') {
    		counter += 1
    	}
    }
    
    // 結果の出力
	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: expected ';' before '}' token
   18 |                 counter += 1
      |                             ^
      |                             ;
   19 |         }
      |         ~
Language: C++

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

int main() {

    // マス目
    string s;
    
    // マス目を入力
    cin >> s;
    
    // 1のカウンタ
    int counter = 0;
    
    for (int i = 0; i < 3; ++i) {
    	if (s[i] == '1') {
    		counter = ++1
    	}
    }
    
    // 結果の出力
	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: lvalue required as increment operand
   18 |                 counter = ++1
      |                             ^
Language: C++

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

int main() {

    // マス目
    char string[];
    
    // マス目を入力
    cin >> string[];
    
    // 1のカウンタ
    int counter = 0;
    
    for (int i = 0; i < 3; ++i) {
    	if (string[i] == '1') {
    		counter = ++1
    	}
    }
    
    // 結果の出力
	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: storage size of 'string' isn't known
    7 |     char string[];
      |          ^~~~~~
a.cc:10:19: error: expected primary-expression before ']' token
   10 |     cin >> string[];
      |                   ^
a.cc:17:29: error: lvalue required as increment operand
   17 |                 counter = ++1
      |                             ^
Language: C++

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

int main() {
  // ここにプログラムを追記
  int a;
  cin >> a;
  b = a%2;
  a = a/10;
  c = a%2;
  a = a/10;
  d = a/10;
  cout << b+c+d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b = a%2;
      |   ^
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c = a%2;
      |   ^
a.cc:12:3: error: 'd' was not declared in this scope
   12 |   d = a/10;
      |   ^
Language: C++

#include <iostream>

using namespace std;

int a[1e9];

int main(void)
{
  int res = 1e9;                             //1e9は10の9乗(十分に大きい数);

  int n; cin >> n;                                  //ケースの数

  for (int i = 0; i < n; i++) a[i];

  for (int i = 0; i < n; i++) {

    int count = 0;                                  //2で割れる回数を数える 毎周0にリセットされる

    while (a[i] % 2 == 0) {
      a[i] /= 2;
      count++;
    }

    if (res > count) res = count;
  }

  cout << res << endl;
}

Compiler output:
a.cc:5:7: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    5 | int a[1e9];
      |       ^~~
a.cc:5:7: error: could not convert '1.0e+9' from 'double' to 'long unsigned int'
    5 | int a[1e9];
      |       ^~~
      |       |
      |       double
a.cc:5:7: error: size of array 'a' has non-integral type 'double'
Language: C++

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

int main(){
  int d=0;
  char a,b,c;
  cin>>a>>b>>c;
  if(a=='1')
    d++;
  if(b=='1')
    d++;
  if(c=='1')
    d++;
  cout<<d<<endl;

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

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

int main() {
    int 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: invalid types 'int[int]' for array subscript
    9 |         if (s[0] == 1) ++counter;
      |              ^
a.cc:10:14: error: invalid types 'int[int]' for array subscript
   10 |         if (s[1] == 1) ++counter;
      |              ^
a.cc:11:14: error: invalid types 'int[int]' for array subscript
   11 |         if (s[2] == 1) ++counter;
      |              ^
Language: C++

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

int main() {
  int s1,s2,s3;
  cin>>s1>>s2>>s3;
  if(s1=='1')ans++;
  if(s2=='1')ans++;
  if(s3=='1')ans++;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(s1=='1')ans++;
      |              ^~~
      |              abs
a.cc:8:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(s2=='1')ans++;
      |              ^~~
      |              abs
a.cc:9:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(s3=='1')ans++;
      |              ^~~
      |              abs
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(s1==1)ans++;
      |            ^~~
      |            abs
a.cc:8:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(s2==1)ans++;
      |            ^~~
      |            abs
a.cc:9:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(s3==1)ans++;
      |            ^~~
      |            abs
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'v' was not declared in this scope
    8 |     for(int i=0;i<3;i++) if(v.at(i)=='1')ans+=1;
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a , b ;
     cin>>a>>b>>c;
    int ans = 0;
    if(a==1)ans++;
     if(b==1)ans++;
       if(c==1)ans++;
 
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'c' was not declared in this scope
    6 |      cin>>a>>b>>c;
      |                 ^
Language: C

#include <stdio.h>

int main(){
  int a = 0;
  int i;
  char moji[3];
  scanf(%s,moji);
  
  for(i=0;i< sizeof(moji);i++){
    if(moji[i] == '1')a++;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%s,moji);
      |         ^
Language: C

#include <stdio.h>
#include <string.h>

int main(){
	int a = 0;
	int i;
	char moji[];
	scanf("%s",moji);
	for(i=0;i < 3;i++){
		if(moji[i] == 1)a++;
	}
	printf("%d",a);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: array size missing in 'moji'
    7 |         char moji[];
      |              ^~~~
Language: C

#include <stdio.h>
#include <string.h>

int main(){
	int a = 0;
	int i;
	char moji[3];
	scanf(%s,&moji);
	for(i=0;i < 3;i++){
		if(moji[i] == "1")a++;
	}
	printf("%d",a);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '%' token
    8 |         scanf(%s,&moji);
      |               ^
main.c:10:28: warning: comparison between pointer and integer
   10 |                 if(moji[i] == "1")a++;
      |                            ^~
Language: C

#include <stdio.h>
#include <string.h>

int main(){
	int a = 0;
	int i;
	char moji[3];
	scanf(%c,&moji);
	for(i=0;i < 3;i++){
		if(moji[i] == "1")a++;
	}
	printf("%d",a);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '%' token
    8 |         scanf(%c,&moji);
      |               ^
main.c:10:28: warning: comparison between pointer and integer
   10 |                 if(moji[i] == "1")a++;
      |                            ^~
Language: C++

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

int main() {
  int a;
  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:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(s[0]=="1") a++;
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[1]=="1") a++;
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[2]=="1") a++;
Language: C++

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

int main() {
  int a;
  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:8:5: error: expected '(' before '{' token
    8 |   if{s[0]=="1"} a++;
      |     ^
      |     (
a.cc:9:5: error: expected '(' before '{' token
    9 |   if{s[1]=="1"} a++;
      |     ^
      |     (
a.cc:10:5: error: expected '(' before '{' token
   10 |   if{s[2]=="1"} a++;
      |     ^
      |     (
Language: C++

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

int main() {
  int a, i, c = 0;
  cin >> a;
  i = a;
  while !(i == 0) {
    if (i % 2 == 0) i /= 2;
    else c += 1;
  }
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected '(' before '!' token
    8 |   while !(i == 0) {
      |         ^
      |         (
a.cc:8:18: error: expected ')' before '{' token
    8 |   while !(i == 0) {
      |         ~        ^~
      |                  )
Language: C++

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

int main() {
  int a, i = a, c = 0;
  cin >> a;
  while !(i == 0) {
    if (i % 2 == 0) i /= 2;
    else c += 1;
  }
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected '(' before '!' token
    7 |   while !(i == 0) {
      |         ^
      |         (
a.cc:7:18: error: expected ')' before '{' token
    7 |   while !(i == 0) {
      |         ~        ^~
      |                  )
Language: C++

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

int main() {
  int a, i = a, c = 0;
  cin >> a;
  while !(i == 0) {
    if (i % 2 == 0) i /= 2
    else c += 1
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected '(' before '!' token
    7 |   while !(i == 0) {
      |         ^
      |         (
a.cc:7:18: error: expected ')' before '{' token
    7 |   while !(i == 0) {
      |         ~        ^~
      |                  )
a.cc:8:27: error: expected ';' before 'else'
    8 |     if (i % 2 == 0) i /= 2
      |                           ^
      |                           ;
    9 |     else c += 1
      |     ~~~~                   
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a+b+c;
}

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

3include<bits/stdc>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a+b+c;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 3include<bits/stdc>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<a+b+c;
      |   ^~~~
Language: C++



/*@author hussein zayed ;
    ___  ___
   |\  \|\  \
   \ \  \_\  \
    \ \   ___ \USSEIN
     \ \  \\ \ \
      \ \__\\ \_\
       \|__| \|__|
****************************************
*/

#include <bits/stdc++.h>
using namespace std;
#define fr for(int i=0;i<n;++i)
#define fr1 for(int i=1;i<=n;++i)
#define cinA for(int i=0;i<n;++i){cin>>arr[i];}
#define cinA1 for(int i=1;i<=n;++i){cin>>arr[i];}
#define coutA for(int i=0;i<n;++i){cout<<arr[i]<<" ";}
#define ll long long
#define lnarray sizeof(arr)/sizeof(*arr)
#define vi vector<int>
#define vs vector<string>
void Fast()
{
    ios_base :: sync_with_stdio( 0 ) ;
    cin.tie( 0 ) ;
    cout.tie( 0 ) ;
}
inline int RD()
{
    int i ;
    cin>>i;
    return i;
}

inline float RF()
{
    float i ;
    cin>>i;
    return i;
}

inline double RDO()
{
    double i ;
    cin>>i;
    return i;
}

inline string RS()
{
    string i ;
    cin>>i;
    return i;
}

inline ll RLL()
{
    ll i ;
    cin>>i;
    return i;
}

int cm[200000];

ll sumSet(ll n)
{
    return (1ll*n*(n+1))/2;
}
string s;


bool isPrime(int n)
{
    if(n==1)
        return false;
    for(int i=2; i*i<=n; ++i)
    {
        if(n%i==0)
            return false;
    }
    return true;
}
int sumDigit(int n){
int sum =0;
  while (n != 0)
    {
        sum+= + n % 10;
        n = n / 10;
    }
    return sum;
}

ll power2(int n){
  ll ans=(1<<n);
  return ans;
}

ll sumpow2(ll n){
 ll sum=(n*(n+1)*(2*n-1))/6;
 return sum;
}

int main(){
    Fast();
//freopen("output.txt" , "w" , stdout);
//freopen("wall.in" , "r" , stdin);
int n=RD();
    ll arr[n];
    cinA
    int  cont = 0;
    bool flg = true;
    while (flg == true) {
        fr {
            if (arr[i] % 2 == 0) {
                arr[i] /= 2;
            } else {
                flg = false;
            }
        }
        if (flg == true)
        cont++;
    }

    cout <<cont<<"\n;

    return 0;
 }








Compiler output:
a.cc:127:18: warning: missing terminating " character
  127 |     cout <<cont<<"\n;
      |                  ^
a.cc:127:18: error: missing terminating " character
  127 |     cout <<cont<<"\n;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:129:5: error: expected primary-expression before 'return'
  129 |     return 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int S1, S2, S3;
  cin >> S1S2S3;
  cout << S1 + S2 + S3 << endl;
}

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

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

    cout << str[0] - '0' +
            str[1] - '0' + 
            str[2] - '0' << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string str;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> str;
      |     ^~~
a.cc:3:12: error: 'str' was not declared in this scope; did you mean 'std'?
    3 |     cin >> str;
      |            ^~~
      |            std
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << str[0] - '0' +
      |     ^~~~
a.cc:7:29: error: 'endl' was not declared in this scope
    7 |             str[2] - '0' << endl;
      |                             ^~~~
Language: C++

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

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> using namespace std; int ans; string s; int main(){ cin >> s; if(s[0]=='1') ans++; if(s[1]=='1') ans++; if(s[2]=='1') ans++; cout << ans << endl; }
      |                     ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

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

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

  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   for (int i = 0; i < squares.size; i++) {
      |                       ~~~~~~~~^~~~
      |                                   ()
Language: C++

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

int main()
{
  int a[3], count = 0;
  for (int i = 0; i < 3; i++)
  {
    cin >> a[i];
    if(a[i] == 1) count++;
  }
  
  cout << count << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> a[i];
      |     ^~~
      |     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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << count << 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:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << count << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main()
{
  int a[3], count = 0;
  for int i = 0; i < 3; i++
  {
    cin >> a[i];
    if(a[i] == 1) count++;
  }
  
  cout << count << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: error: expected '(' before 'int'
    7 |   for int i = 0; i < 3; i++
      |       ^~~
      |       (
a.cc:7:28: error: expected ')' before '{' token
    7 |   for int i = 0; i < 3; i++
      |       ~~~                  ^
      |                            )
    8 |   {
      |   ~                         
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> a[i];
      |     ^~~
      |     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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << count << 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:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << count << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setprecision(15);
  string s;cin >>;
  int count = 0;
  rep(i,s.length()) if(s[i] == '1')++count;
  cout << count << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:18: error: expected primary-expression before ';' token
   35 |   string s;cin >>;
      |                  ^
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] strAry = sc.nextLine();
    
    int count = 0;
    if(strAry[0] == '1') count++;
    if(strAry[1] == '1') count++;
    if(strAry[2] == '1') count++;    
    System.out.println(count);
    
    return;
  }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to String[]
    String[] strAry = sc.nextLine();
                                 ^
Main.java:9: error: bad operand types for binary operator '=='
    if(strAry[0] == '1') count++;
                 ^
  first type:  String
  second type: char
Main.java:10: error: bad operand types for binary operator '=='
    if(strAry[1] == '1') count++;
                 ^
  first type:  String
  second type: char
Main.java:11: error: bad operand types for binary operator '=='
    if(strAry[2] == '1') count++;    
                 ^
  first type:  String
  second type: char
4 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before ':' token
    6 |  cin >> s:
      |          ^
      |          ;
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'stirng' was not declared in this scope
    5 |  stirng s;
      |  ^~~~~~
a.cc:6:9: error: 's' was not declared in this scope
    6 |  cin >> s:
      |         ^
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'stirng' was not declared in this scope
    5 |  stirng s;
      |  ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |  cin  >> s:
      |          ^
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 stirng s;
 cin S:
 
  int ans = 0;
  for (int i = 0; i < 3; i++) {
    if (s[i] == '1') {
      ans++;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'stirng' was not declared in this scope
    5 |  stirng s;
      |  ^~~~~~
a.cc:6:5: error: expected ';' before 'S'
    6 |  cin S:
      |     ^~
      |     ;
a.cc:10:9: error: 's' was not declared in this scope
   10 |     if (s[i] == '1') {
      |         ^
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 stirng S;
 cin S:
 
  int ans = 0;
  for (int i = 0; i < 3; i++) {
    if (s[i] == '1') {
      ans++;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'stirng' was not declared in this scope
    5 |  stirng S;
      |  ^~~~~~
a.cc:6:5: error: expected ';' before 'S'
    6 |  cin S:
      |     ^~
      |     ;
a.cc:10:9: error: 's' was not declared in this scope
   10 |     if (s[i] == '1') {
      |         ^
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 stirng S;
 cin S:
 
  int ans = 0;
  for (int i = 0, i < 3; i++) {
    if (s[i] == '1') {
      ans++;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'stirng' was not declared in this scope
    5 |  stirng S;
      |  ^~~~~~
a.cc:6:5: error: expected ';' before 'S'
    6 |  cin S:
      |     ^~
      |     ;
a.cc:9:20: error: expected ';' before '<' token
    9 |   for (int i = 0, i < 3; i++) {
      |                    ^~
      |                    ;
a.cc:9:21: error: expected primary-expression before '<' token
    9 |   for (int i = 0, i < 3; i++) {
      |                     ^
a.cc:10:9: error: 's' was not declared in this scope
   10 |     if (s[i] == '1') {
      |         ^
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |       ans++;
      |       ^~~
      |       abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C

#include <stdio.h>

int main(){
 int map,ans=0;
  scanf("%d",&a);
  if(map%2!=0)ans++;
  if(map>=100)ans++;
  if((map>=10&&map<=100)||map>=110)ans++;
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d",&a);
      |               ^
main.c:5: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 S;
  cin>>S;
  int R=0;
  if(S[0]=='1'){
    R+=;
  }
  if(S[1]=='1'){
    R+=;
  }
  if(S[2]=='2'){
    R+=;
  }
  cout <<R;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before ';' token
    9 |     R+=;
      |        ^
a.cc:12:8: error: expected primary-expression before ';' token
   12 |     R+=;
      |        ^
a.cc:15:8: error: expected primary-expression before ';' token
   15 |     R+=;
      |        ^
Language: C++

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

int main() {
string S;
  cin>>S;
  int R=0;
  if(S[0]==1){
    R+=;
  }
  if(S[1]==1){
    R+=;
  }
  if(S[2]==2){
    R+=;
  }
  cout <<R;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before ';' token
    9 |     R+=;
      |        ^
a.cc:12:8: error: expected primary-expression before ';' token
   12 |     R+=;
      |        ^
a.cc:15:8: error: expected primary-expression before ';' token
   15 |     R+=;
      |        ^
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.nextInt();
        int count = 0;
        
        if(s.charAt(0) == '1')count++;
        if(s.charAt(1) == '1')count++;
        if(s.charAt(2) == '1')count++;
		
        System.out.println(count);
	 }
}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
        String s = sc.nextInt();
                             ^
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        
        if(s.charAt(0) == '1')count++;
        if(s.charAt(1) == '1')count++;
        if(s.charAt(2) == '1')count++;
		
        System.out.println(count);
	 }
}


Compiler output:
Main.java:8: error: cannot find symbol
        if(s.charAt(0) == '1')count++;
           ^
  symbol:   variable s
  location: class Main
Main.java:9: error: cannot find symbol
        if(s.charAt(1) == '1')count++;
           ^
  symbol:   variable s
  location: class Main
Main.java:10: error: cannot find symbol
        if(s.charAt(2) == '1')count++;
           ^
  symbol:   variable s
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        
        if(s.charAt(0) == '1')count++;
        if(s.charAt(1) == '1')count++;
        if(s.charAt(2) == '1')count++;
		
        System.out.println(count);
	 }
    }
}

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

import java.util.Scanner;

class ClassSample {
	  public static void main(String args[]){
        
        Scannar scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        int count = 0;
        
        if(s.charAt(0) == '1')count++;
        if(s.charAt(1) == '1')count++;
        if(s.charAt(2) == '1')count++;
		
        System.out.println(count);
	 }
}


Compiler output:
Main.java:6: error: cannot find symbol
        Scannar scan = new Scanner(System.in);
        ^
  symbol:   class Scannar
  location: class ClassSample
1 error
Language: Java

import java.util.Scanner;

public class ClassSample {
	  public static void main(String args[]){
        
        Scannar scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        
        int count = 0;
        
        if(s.charAt(0) == '1')count++;
        if(s.charAt(1) == '1')count++;
        if(s.charAt(2) == '1')count++;
		
        System.out.println(count);
	 }
}


Compiler output:
Main.java:3: error: class ClassSample is public, should be declared in a file named ClassSample.java
public class ClassSample {
       ^
Main.java:6: error: cannot find symbol
        Scannar scanner = new Scanner(System.in);
        ^
  symbol:   class Scannar
  location: class ClassSample
2 errors
Language: Java

import java.util.Scanner;

public class ClassSample {
	  public static void main(String args[]){
        
        Scannar scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        
        int count = 0;
        
        if(s.charAt(0) == "1")count++;
        if(s.charAt(1) == "1")count++;
        if(s.charAt(2) == "1")count++;
		
        System.out.println(count);
	 }
}

Compiler output:
Main.java:3: error: class ClassSample is public, should be declared in a file named ClassSample.java
public class ClassSample {
       ^
Main.java:6: error: cannot find symbol
        Scannar scanner = new Scanner(System.in);
        ^
  symbol:   class Scannar
  location: class ClassSample
Main.java:11: error: bad operand types for binary operator '=='
        if(s.charAt(0) == "1")count++;
                       ^
  first type:  char
  second type: String
Main.java:12: error: bad operand types for binary operator '=='
        if(s.charAt(1) == "1")count++;
                       ^
  first type:  char
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
        if(s.charAt(2) == "1")count++;
                       ^
  first type:  char
  second type: String
5 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,i=0;
  if((a/100)>1) i++;
  if((a%100)/10 >1) i++;
  if(((a%100)%10)/1 >1) i++
  cout << i;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before 'cout'
    8 |   if(((a%100)%10)/1 >1) i++
      |                            ^
      |                            ;
    9 |   cout << i;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,i=0;
  if((a/100)>1) i++;
  if((a%100)/10 >1) i++;
  if((a%100)%10)/1 >1) i++
  cout << i;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '/' token
    8 |   if((a%100)%10)/1 >1) i++
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,i=0;
  if((a/100)>1) i++;
  if((a%100)/10 >1) i++;
  if((a%100)%10)/1 >1) i++
  cout >> i;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '/' token
    8 |   if((a%100)%10)/1 >1) i++
      |                 ^
Language: Java

import java.util.Scanner;

public class ABC081A{

  public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    System.out.println("input str=?");
    String str =s.next();
    int sum = 0;

    for(int i =0;i<str.length();i++){
      char splitstr = str.charAt(i);
      if(splitstr == '1'){
        sum += 1;
      }else{
      }


    }
System.out.println(sum);




  }
}


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

import java.util.*;

public 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:
Main.java:8: error: cannot find symbol
        System.out.println(s.length);
                            ^
  symbol:   variable length
  location: variable s of type String
1 error
Language: Java

import java.util.*;

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


Compiler output:
Main.java:6: error: cannot find symbol
        s = sc.replaceAll("0","");
        ^
  symbol:   variable s
  location: class Main
Main.java:6: error: cannot find symbol
        s = sc.replaceAll("0","");
              ^
  symbol:   method replaceAll(String,String)
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
        System.out.println(s.length);
                           ^
  symbol:   variable s
  location: class Main
3 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String[] array = sc.split("");
        int num =0;
        for(int i=0;i<array.length;i++){
          int mas = Integer.parseInt(array[i]);
          if(mas==1){
         	num+=1;
          }
        }
        System.out.println(num);
    }
}


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

import java.util.*;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String[] array = sc.split("");
        int num =0;
        for(int i=0;i<array.length;i++){
          if(array[i].Integer.parseInt()==1){
         	num+=1;
          }
        }
        System.out.println(num);
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        String[] array = sc.split("");
                           ^
  symbol:   method split(String)
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
          if(array[i].Integer.parseInt()==1){
                     ^
  symbol:   variable Integer
  location: class String
2 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String[] array = sc.split("");
        int num =0;
        for(int i=0;i<array.length;i++){
          if(array[i]==1){
         	num+=1;
          }
        }
        System.out.println(num);
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        String[] array = sc.split("");
                           ^
  symbol:   method split(String)
  location: variable sc of type Scanner
Main.java:9: error: bad operand types for binary operator '=='
          if(array[i]==1){
                     ^
  first type:  String
  second type: int
2 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String[] array = sc.split("");
        int num =0;
        for(int i=0;i++;i<array.length){
          if(array[i]==1){
         	num+=1;
          }
        }
        System.out.println(num);
    }
}


Compiler output:
Main.java:8: error: not a statement
        for(int i=0;i++;i<array.length){
                         ^
1 error
Language: Java

import java.util.*

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String[] array = sc.split("");
        int num =0;
        for(int i=0;i++;i<array.length){
          if(array[i]==1){
         	num+=1;
          }
        }
        System.out.println(num);
    }
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:8: error: not a statement
        for(int i=0;i++;i<array.length){
                         ^
2 errors
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (count % 2 == 1) count ++;
    if (count / 100 == 1) count ++;
    if ((count % 100) % 10 == 1) count ++;
    System.output.println(count);
  }
}


Compiler output:
Main.java:10: error: cannot find symbol
    System.output.println(count);
          ^
  symbol:   variable output
  location: class System
1 error
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (count % 2 == 1) count ++;
    if (count / 100 == 1) count ++;
    if ((count % 100) % 10 == 1) count ++;
    System.put.println(count);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    System.put.println(count);
          ^
  symbol:   variable put
  location: class System
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:80: error: expected ';' before 'cout'
    6 |   S1 = S / 100; S2 = ( S - S1 * 100 ) / 10; S3 = ( S - ( S1 * 100 + S2 * 10 ) )
      |                                                                                ^
      |                                                                                ;
    7 |   cout << S1 + S2 + S3 << endl;
      |   ~~~~
Language: C++

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

int main() {
  string s;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |     if (number[i] == 1) {
      |               ^
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid types 'int[int]' for array subscript
    9 |     if (number[i] == 1) {
      |               ^
a.cc:12:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |       return;
      |       ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid types 'int[int]' for array subscript
    9 |     if (number[i] = 1) {
      |               ^
a.cc:12:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |       return;
      |       ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int n;
int A[210];

int main() {
  /* code */

  std::cin >> n;

  for (int i = 0; i < n; i++) {
    /* code */
    std::cin >> A[i];
  }

  int res = 0;

  while (true) {
    bool exist_odd = false;
    /* code */
    for (int i = 0; i < n; i++) {
      /* code */
      if (A[i] % 2 != 0 ) {
        /* code */
        exist_odd = true;
      }
      
      if (exist_odd) break;
      
      for (int i = 0; i < N; i++) {
            A[i] /= 2;
      }
    }
    res++;
  }

  std::cout << res << endl;
}


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

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  cout << count(s.begin(), s.end(), '1') << endl;
  return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  cout << count(s.begin(), s.end(), '1'); << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'count' was not declared in this scope
    7 |   cout << count(s.begin(), s.end(), '1'); << endl;
      |           ^~~~~
a.cc:7:43: error: expected primary-expression before '<<' token
    7 |   cout << count(s.begin(), s.end(), '1'); << endl;
      |                                           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int s1s2s3;
  cin >> s1s2s3;
  cout << s1 + s2 + s3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 's1' was not declared in this scope; did you mean 'y1'?
    6 |   cout << s1 + s2 + s3 << endl;
      |           ^~
      |           y1
a.cc:6:16: error: 's2' was not declared in this scope
    6 |   cout << s1 + s2 + s3 << endl;
      |                ^~
a.cc:6:21: error: 's3' was not declared in this scope
    6 |   cout << s1 + s2 + s3 << endl;
      |                     ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int () {
  int s1, s2, s3;
  cin >> s1 >> s2 >> s3;
  cout << s1 + s2 + s3 << endl;
}


Compiler output:
a.cc:3:6: error: expected unqualified-id before ')' token
    3 | int () {
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s1, s2, s3;
  cin >> s1;
  s3 = s1 % 2;
  s2 = s1 % 10 / 2;
  s1 = si / 100;
  
  cout << s1 + s2 + s3
    << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'si' was not declared in this scope; did you mean 's3'?
    8 |   s1 = si / 100;
      |        ^~
      |        s3
Language: C

#include <stdio.h>
int main(){
  int a,r=0;
  (scanf("%d",&a);a;a/=10)r+=a%10;
  printf("%d",r);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected ')' before ';' token
    4 |   (scanf("%d",&a);a;a/=10)r+=a%10;
      |   ~              ^
      |                  )
main.c:4:27: error: expected ';' before 'r'
    4 |   (scanf("%d",&a);a;a/=10)r+=a%10;
      |                           ^
      |                           ;