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

#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, ans = 0;
int x[n];
cin >> n;
for (int i = 0; i < n; ++i) cin >> x[i];
ans = 0;
int flag = 1;
while (flag) {
        for (int i = 0; i < n; ++i) {
                if (x[i] % 2 != 0) {
                        flag = 0;
                        break;
                }
                else x[i] /= 2;
        }
        if (flag) ++ans;
}
cout << ans << endl;
}
~

Compiler output:
a.cc:23:2: error: expected class-name at end of input
   23 | ~
      |  ^
Language: C

#include <stdio.h>
int main() {

	int s[3], i, count = 0;

	scanf_s("%d%d%d", &s[0],&s[1],&s[2]);

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

	printf("%d", count);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", &s[0],&s[1],&s[2]);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {

	int s[3], i, count = 0;

	scanf_s("%d%d%d", s[0],s[1],s[2]);

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

	printf("%d", count);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", s[0],s[1],s[2]);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {

	int s[3], i, count = 0;

	scanf_s("%d", s[3]);

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

	printf("%d", count);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", s[3]);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[3],i;
	int count = 0;

	scanf_s("%d%d%d", s,3);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", s,3);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[3],i;
	int count = 0;

	scanf_s("%d%d%d", &s,2);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", &s,2);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[3],i;
	int count = 0;

	scanf_s("%d%d%d", &s,3);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d%d%d", &s,3);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[2];
	int count = 0;

	scanf_s("%d", &s);
	scanf_s("%d", &s);
	scanf_s("%d", &s);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &s);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[2];
	int count = 0;

	scanf_s("%d", &s[0]);
	scanf_s("%d", &s[1]);
	scanf_s("%d", &s[2]);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &s[0]);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int s[3];
	int count = 0;

	scanf_s("%d", &s[0]);
	scanf_s("%d", &s[1]);
	scanf_s("%d", &s[2]);

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

	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &s[0]);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main() {
	int s1, s2, s3;
	int result;

	cin >> s1 >> s2 >> s3;
	resut = s1 + s2 + s3;
	cout << result << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'resut' was not declared in this scope; did you mean 'result'?
    9 |         resut = s1 + s2 + s3;
      |         ^~~~~
      |         result
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[0]=="1") ans++;
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[1]=="1") ans++;
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(s[2]=="1") ans++;
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;
}

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

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

int main() {
  // ここにプログラムを追記
  string s;
  cin >> s;
  int n;
  n = s;
  cout << (n%10)+(n%100-n%10)/10+(n-n%100-n%10)-100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
    9 |   n = s;
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main() {
  // ここにプログラムを追記
  string s;
  cin >> s;
  int n;
  n = s
  cout << (n%10)+(n%100-n%10)/10+(n-n%100-n%10)-100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
    9 |   n = s
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
Language: C

#include<stdio.h>
#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:2:9: fatal error: string: No such file or directory
    2 | #include<string>
      |         ^~~~~~~~
compilation terminated.
Language: C++

int main() {
    string s;
  	int connter = 0;
    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:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string s;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
a.cc:4:12: error: 's' was not declared in this scope
    4 |     cin >> s;
      |            ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << counter << endl;
      |     ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |     cout << counter << endl;
      |                        ^~~~
Language: C++

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:2:5: error: 'string' was not declared in this scope
    2 |     string s;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> s;
      |     ^~~
a.cc:3:12: error: 's' was not declared in this scope
    3 |     cin >> s;
      |            ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << counter << endl;
      |     ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |     cout << counter << endl;
      |                        ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  char a;
  int i = 0, count = 0;
  
  while(i < 3){
      cin >> a;
      
      if(a[i] == '1'){
      count++;
      }
    i++
  }
      cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid types 'char[int]' for array subscript
   11 |       if(a[i] == '1'){
      |           ^
a.cc:14:8: error: expected ';' before '}' token
   14 |     i++
      |        ^
      |        ;
   15 |   }
      |   ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  char a;
  int i = 0, count = 0;
  
  while(i < 3){
      cin >> a;
      
      if(a == '1'){
      count++;
      }
    i++
  }
      cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected ';' before '}' token
   14 |     i++
      |        ^
      |        ;
   15 |   }
      |   ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string a, b, c;
  int i = 0, count = 0;
  
  while(i < 3){
      cin >> a;
      
      if(a = '1'){
      count++;
      }
  }
      cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(49)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |       if(a = '1'){
      |          ~~^~~~~
      |            |
      |            std::__cxx11::basic_string<char>
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
    6 |   cin >>a;
      |   ^~~
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(a.at(i)=="1"){
      |       ~~~~~~~^~~~~
Language: C

#include <stdio.h>

int num;

int main() {
  scanf("%d", &num);
  if (num == 111) {
    num = 3;
  }else{
    num = num % 3
  }
  printf("%d", num);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before '}' token
   10 |     num = num % 3
      |                  ^
      |                  ;
   11 |   }
      |   ~
Language: C

#include <stdio.h>

int num;

int main() {
  scanf("%d", &num);
  printf("%d", (int)(num　% 3));
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:25: error: stray '\343' in program
    7 |   printf("%d", (int)(num<U+3000>% 3));
      |                         ^~~~~~~~
Language: C

#include <stdio.h>

int num;

int main() {
  scanf("%d", &num);
  printf("%d", num　% 3);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:19: error: stray '\343' in program
    7 |   printf("%d", num<U+3000>% 3);
      |                   ^~~~~~~~
Language: C

#include <stdio.h>

int num;

int main() {
  scanf("&d", &num);
  printf("%d", num　% 3);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:19: error: stray '\343' in program
    7 |   printf("%d", num<U+3000>% 3);
      |                   ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s,n;
  cin >> s;
  n = 0;
  if(s.at(0)=='1'){
    n += 1;
  }else if(s.at(1)=='1'){
    n += 1;
  }else if(s.at(2)=='1'){
    n += 1;
  }
  cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)=='1'){
      |        ^~
a.cc:9:14: error: request for member 'at' in 's', which is of non-class type 'int'
    9 |   }else if(s.at(1)=='1'){
      |              ^~
a.cc:11:14: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |   }else if(s.at(2)=='1'){
      |              ^~
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++

#include<iostream>
using namespace std;
int main(){
	
  	int s1,s2,s3
  	cin >> s1;
  	cin >> s2;
  	cin >> s3;
  
  	int count = 0;

      if(s1 = 1){
      	count = count + 1;
      }
        if(s2 = 1){
      	count = count + 1;
      }
      if(s3 = 1){
      	count = count + 1;
      }

  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> s1;
      |         ^~~
a.cc:8:16: error: 's3' was not declared in this scope; did you mean 's2'?
    8 |         cin >> s3;
      |                ^~
      |                s2
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  	string x;
  	for (int i =0 ; i < 3; i++){
      x = s[i];
      if(x = 1){
      	count = count + 1;
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(1)' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |       if(x = 1){
      |          ~~^~~
      |            |
      |            std::__cxx11::basic_string<char>
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  	string s;
  	for (int i =0 ; i < 3; i++){
      s = s[i];
      if(s = 1){
      	count = count + 1;
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: conflicting declaration 'std::string s'
    9 |         string s;
      |                ^
a.cc:5:16: note: previous declaration as 'std::string s [3]'
    5 |         string s[3];
      |                ^
a.cc:11:9: error: incompatible types in assignment of 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   11 |       s = s[i];
      |       ~~^~~~~~
a.cc:12:12: error: incompatible types in assignment of 'int' to 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   12 |       if(s = 1){
      |          ~~^~~
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  	int s;
  	for (int i =0 ; i < 3; i++){
      s = s[i];
      if(s = 1){
      	count = count + 1;
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: conflicting declaration 'int s'
    9 |         int s;
      |             ^
a.cc:5:16: note: previous declaration as 'std::string s [3]'
    5 |         string s[3];
      |                ^
a.cc:11:9: error: incompatible types in assignment of 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   11 |       s = s[i];
      |       ~~^~~~~~
a.cc:12:12: error: incompatible types in assignment of 'int' to 'std::string [3]' {aka 'std::__cxx11::basic_string<char> [3]'}
   12 |       if(s = 1){
      |          ~~^~~
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  
  	for (int i =0 ; i < 3; i++){
      
      if(s[i]=1){
      	count = count + 1;
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(1)' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |       if(s[i]=1){
      |          ~~~~^~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  
  	for (int i =0 ; i < 3; i++){
      if(s[0]=1){
      	count = count + 1;
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: could not convert 's[0].std::__cxx11::basic_string<char>::operator=(1)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |       if(s[0]=1){
      |          ~~~~^~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

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

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  
  	for (int i =0 ; i < 3; i++){
      if(s[0]=1){
      	count = count + 1
      }
    }
  
  	cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: could not convert 's[0].std::__cxx11::basic_string<char>::operator=(1)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |       if(s[0]=1){
      |          ~~~~^~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:12:26: error: expected ';' before '}' token
   12 |         count = count + 1
      |                          ^
      |                          ;
   13 |       }
      |       ~
Language: C++

include<iostream>
using namespace std;
int main(){

	string s[3];
  	cin >> s[0] >> s[1] >> s[2];
  
  	int count = 0;
  
  	for (int i =0 ; i < 3; i++){
      if(s[0]=1){
      	count = count + 1
      }
    }
  
  	cout << count;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s[3];
      |         ^~~~~~
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> s[0] >> s[1] >> s[2];
      |         ^~~
a.cc:6:16: error: 's' was not declared in this scope
    6 |         cin >> s[0] >> s[1] >> s[2];
      |                ^
a.cc:12:26: error: expected ';' before '}' token
   12 |         count = count + 1
      |                          ^
      |                          ;
   13 |       }
      |       ~                   
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   16 |         cout << count;
      |         ^~~~
      |         count
Language: C++

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

int main() {
  int s, s2, s1, s0;
  cin >> s;
  s2 = s/100; \\ 100の位
  s1 = (s-s2*100)/10; \\ 10の位
  s0 = s-s1*10-s2*100; \\ 1の位
  cout << s2 + s1 + s0 << endl;
}


Compiler output:
a.cc:7:15: error: stray '\' in program
    7 |   s2 = s/100; \\ 100の位
      |               ^
a.cc:7:16: error: stray '\' in program
    7 |   s2 = s/100; \\ 100の位
      |                ^
a.cc:8:23: error: stray '\' in program
    8 |   s1 = (s-s2*100)/10; \\ 10の位
      |                       ^
a.cc:8:24: error: stray '\' in program
    8 |   s1 = (s-s2*100)/10; \\ 10の位
      |                        ^
a.cc:9:24: error: stray '\' in program
    9 |   s0 = s-s1*10-s2*100; \\ 1の位
      |                        ^
a.cc:9:25: error: stray '\' in program
    9 |   s0 = s-s1*10-s2*100; \\ 1の位
      |                         ^
a.cc: In function 'int main()':
a.cc:7:18: error: unable to find numeric literal operator 'operator""\U0000306e\U00004f4d'
    7 |   s2 = s/100; \\ 100の位
      |                  ^~~~~~~
a.cc:8:26: error: unable to find numeric literal operator 'operator""\U0000306e\U00004f4d'
    8 |   s1 = (s-s2*100)/10; \\ 10の位
      |                          ^~~~~~
a.cc:9:27: error: unable to find numeric literal operator 'operator""\U0000306e\U00004f4d'
    9 |   s0 = s-s1*10-s2*100; \\ 1の位
      |                           ^~~~~
Language: C++

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

int main() {
  int s, s2, s1, s0;
  cin >> s;
  s2 = s/100 \\ 100の位
  s1 = (s-s2*100)/10 \\ 10の位
  s0 = s-s1*10-s2*100 \\ 1の位
  cout << s2 + s1 + s0 << endl;
}


Compiler output:
a.cc:7:14: error: stray '\' in program
    7 |   s2 = s/100 \\ 100の位
      |              ^
a.cc:7:15: error: stray '\' in program
    7 |   s2 = s/100 \\ 100の位
      |               ^
a.cc:8:22: error: stray '\' in program
    8 |   s1 = (s-s2*100)/10 \\ 10の位
      |                      ^
a.cc:8:23: error: stray '\' in program
    8 |   s1 = (s-s2*100)/10 \\ 10の位
      |                       ^
a.cc:9:23: error: stray '\' in program
    9 |   s0 = s-s1*10-s2*100 \\ 1の位
      |                       ^
a.cc:9:24: error: stray '\' in program
    9 |   s0 = s-s1*10-s2*100 \\ 1の位
      |                        ^
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before numeric constant
    7 |   s2 = s/100 \\ 100の位
      |             ^   ~~~~~~~
      |             ;
Language: C++

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

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

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

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

int main() {
  int a, b, c;
  cin >> a b c ;
  cout << a+b+c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'b'
    6 |   cin >> a b c ;
      |           ^~
      |           ;
Language: C++

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

int main() {
  int a, b, c;
  cin >> abc ;
  cout << a+b+c << endl;
}


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

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

int main() {
  int a, b, c;
  cin >> abc ;
  cout << s1+s2+s3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'abc' was not declared in this scope; did you mean 'abs'?
    6 |   cin >> abc ;
      |          ^~~
      |          abs
a.cc:7:11: error: 's1' was not declared in this scope; did you mean 'y1'?
    7 |   cout << s1+s2+s3 << endl;
      |           ^~
      |           y1
a.cc:7:14: error: 's2' was not declared in this scope
    7 |   cout << s1+s2+s3 << endl;
      |              ^~
a.cc:7:17: error: 's3' was not declared in this scope
    7 |   cout << s1+s2+s3 << endl;
      |                 ^~
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++

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

  int S = 0;
	string ans;

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

Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:11: error: expected '}' before ';' token
    8 |   cin>>ans;
      |           ^
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:8:6: error: invalid user-defined conversion from 'std::basic_istream<char>' to 'int' [-fpermissive]
    8 |   cin>>ans;
      |   ~~~^~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(ans[0] == '1'){
      |   ^~
a.cc:12:5: error: expected unqualified-id before 'if'
   12 |     if(ans[1] == '1'){
      |     ^~
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(ans[2] == '1'){
      |     ^~
a.cc:18:3: error: 'cout' does not name a type
   18 |   cout<<S<<endl;
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:16: error: expected primary-expression before 'ans'
    5 |         string ans;
      |                ^~~
a.cc:5:16: error: expected '}' before 'ans'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>ans;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(ans[0] == "1"){
      |   ^~
a.cc:11:5: error: expected unqualified-id before 'if'
   11 |     if(ans[1] == "1"){
      |     ^~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if(ans[2] == "1"){
      |     ^~
a.cc:17:3: error: 'cout' does not name a type
   17 |   cout<<S<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:16: error: expected primary-expression before 's'
    5 |         string s;
      |                ^
a.cc:5:16: error: expected '}' before 's'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>s;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (s[0] == 1){
      |   ^~
a.cc:11:5: error: expected unqualified-id before 'if'
   11 |     if (s[1] == 1){
      |     ^~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if (s[2] == 1){
      |     ^~
a.cc:17:3: error: 'cout' does not name a type
   17 |   cout<<S<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main() {
  string a;
  int s;
  cin>>a;
  if(a[0]=="1"){
    s++;
  }
   if(a[1]=="1"){
    s++;
  }
   if(a[2] =="1"){
    s++;
  }
  
  cout<<s<<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(a[0]=="1"){
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |    if(a[1]=="1"){
a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |    if(a[2] =="1"){
Language: C++

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

int main() {
  string a;
  int s;
  cin>>a;
  if(a[0]="1"){
    s++;
  }
   if(a[1]="1"){
    s++;
  }
   if(a[2]"1"){
    s++;
  }
  
  cout<<s<<endl;// ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   if(a[0]="1"){
      |           ^~~
      |           |
      |           const char*
a.cc:11:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |    if(a[1]="1"){
      |            ^~~
      |            |
      |            const char*
a.cc:14:11: error: expected ')' before string constant
   14 |    if(a[2]"1"){
      |      ~    ^~~
      |           )
Language: C++

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

int main() {
  string a,b,c;
  int s;
  cin>>a>>b>>c;
  if(a="1"){
    s++;
  }
   if(b="1"){
    s++;
  }
   if(c="1"){
    s++;
  }
  
  cout<<s<<endl;// ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(((const char*)"1"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(a="1"){
      |      ~^~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:11:8: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(((const char*)"1"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |    if(b="1"){
      |       ~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:14:8: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"1"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |    if(c="1"){
      |       ~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
using namespace std;

int main(){
  string s;
  int a=0;
  
  for(int i=0;i<3;i++){
    if(s[i]==49)a=a+1
  }
  
  cout<<a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |     if(s[i]==49)a=a+1
      |                      ^
      |                      ;
   10 |   }
      |   ~
Language: C

#include <stdio.h>

int main()
{
	char s;
	int total=0;
	
	scanf("%s", s);
	
	for(int i=0; i<5; i++){
		if(s[i] == '1') total += 1;
	}
	
	printf("%d\n", total);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:21: error: subscripted value is neither array nor pointer nor vector
   11 |                 if(s[i] == '1') total += 1;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin >> s;

    auto ret = 0;
    for (auto &&i : v)
    {
        if (i == 1)
        {
            ret++;
        }
    }

    return ret;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'v' was not declared in this scope
    9 |     for (auto &&i : v)
      |                     ^
Language: C++

#include <iostream>

using namespace std;
int main()
{
    int a,b,c,d,N,g=0;
    cin>>N;
    for(int i=0;i<1;i++)
    {
        a=N/10;
        b=N%10;
        c=a/10;
        d=a%10;
    }
    if(b==1) g++;
    if(d==1) g++;
    if(c==1) g++;
    cout<<g;0
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: expected ';' before '}' token
   18 |     cout<<g;0
      |              ^
      |              ;
   19 | 
   20 | }
      | ~
Language: C++

#include <bits/stdc++.h>
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: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |   cin >> s
      |           ^
      |           ;
    8 |     if(s[0] =='1') ans++;
      |     ~~
Language: C++

#include<cstdio>
int main() {
    int s[3];
    for (int i=0;i<3;i++) 
    scanf("%d", &s[i]);

    int c=0;
    for (int i=0;i<3;i++) {
        if(s[i]==1) c++;
        else return;
    }
    printf("%d\n", c);
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a
    cin >> a ;
  int r1 = a % 2;
  int r1m = (a - r1) / 10;
  int r2 = r1m % 2;
  int r2m = (r1m -r2) / 10;
  cout << r1 + r2 + r2m <<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'cin'
    5 |     cin >> a ;
      |     ^~~
a.cc:6:12: error: 'a' was not declared in this scope
    6 |   int r1 = a % 2;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before 'cout'
    9 |   z = (a-100*x-10*y)
      |                     ^
      |                     ;
   10 |   cout << x+y+z << endl;
      |   ~~~~
Language: C++

#include <stdio.h>
int arr[210];
int main() {
  int num;
  scanf("%d", &num);
  for (int i = 0; i < num; i++) scanf("%d", (arr+i));
  int cnt = 0;
  for (int i = 0;;i++) {
    if (arr[i%num] % 2 == 0) arr[i%num] = arr[i%num] / 2;
    else {
      cnt = (i+1) / num;
      break;
    }
  }
  std::cout << cnt << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'cout' is not a member of 'std'
   15 |   std::cout << cnt << '\n';
      |        ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | int arr[210];
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'a' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c;
      |              ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c;
      |                    ^
a.cc:5:25: error: 'c' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c;
      |                         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'a' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c
      |              ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c
      |                    ^
a.cc:5:25: error: 'c' was not declared in this scope
    5 |   int s1s2s3=a*100+b*10+c
      |                         ^
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:7:11: error: 's1' was not declared in this scope; did you mean 'y1'?
    7 |   cout << s1+s2+s3 << endl;
      |           ^~
      |           y1
a.cc:7:14: error: 's2' was not declared in this scope
    7 |   cout << s1+s2+s3 << endl;
      |              ^~
a.cc:7:17: error: 's3' was not declared in this scope
    7 |   cout << s1+s2+s3 << endl;
      |                 ^~
Language: C++

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

int main() {
  int S1s2s3;
  cin >> s1 >> s2 >> s3;
  cout << s1+s2+s3 << endl;
}


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

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

int main() {
  int s1*100+s2*10+s3;
  cin >> s1 >> s2 >> s3;
  cout << s1+s2+s3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '*' token
    5 |   int s1*100+s2*10+s3;
      |         ^
a.cc:6:10: error: 's1' was not declared in this scope; did you mean 'y1'?
    6 |   cin >> s1 >> s2 >> s3;
      |          ^~
      |          y1
a.cc:6:16: error: 's2' was not declared in this scope
    6 |   cin >> s1 >> s2 >> s3;
      |                ^~
a.cc:6:22: error: 's3' was not declared in this scope
    6 |   cin >> s1 >> s2 >> s3;
      |                      ^~
Language: C++

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

int main() {
  int s1s2s3;

  cin >> s1 >> s2 >> s3;
  cout << s1+s2+s3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 's1' was not declared in this scope; did you mean 'y1'?
    7 |   cin >> s1 >> s2 >> s3;
      |          ^~
      |          y1
a.cc:7:16: error: 's2' was not declared in this scope
    7 |   cin >> s1 >> s2 >> s3;
      |                ^~
a.cc:7:22: error: 's3' was not declared in this scope
    7 |   cin >> s1 >> s2 >> s3;
      |                      ^~
Language: C++

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

int main() {
  int s1s2s3;
  cin >> s1 >> s2 >> s3;
  cout << s1+s2+s3 << endl;
}


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

#include <iostream>

int main() {
  std::string str;
  std::cin >> str;
  int cnt = 0;
  for (char& c : str)
  	cnt += (int)(c - '0')
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before 'return'
    8 |         cnt += (int)(c - '0')
      |                              ^
      |                              ;
    9 | 
   10 |   return 0;
      |   ~~~~~~
Language: C++

++.h>

#define rep(i,n) for(int i=0; i<(n); i++)
#define lep(j,n) for(int j=0; j<(n); j++)
#define reps(i,n) for(int i=1; i<(n); i++)
#define leps(j,n) for(int j=1; j<(n); j++)
#define pii pair<int,int>
#define gsort(x,n) sort((x),(x)+(n),greater<int>())
#define all(x) (x).begin(), (x).end()
#define int long long
#define setout(n,x) setw(n) << setfill(x)
#define Fixed fixed << setprecision(10)
const long long mod = 1000000007;
using namespace std;

#define return(Z) re:(Z)

long long h[10000010],x[10000010],z[10000010];

signed main(){

    cin.tie(0);
    ios::sync_with_stdio(false);

    string s;
    cin>>s;
    int a=0;
    rep(i,3) {
        if(s[i]=='1') a++;
    }
    cout<<a<<'\n';
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '++' token
    1 | ++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:22:5: error: 'cin' was not declared in this scope
   22 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | ++.h>
a.cc:23:5: error: 'ios' has not been declared
   23 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:25:5: error: 'string' was not declared in this scope
   25 |     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 | ++.h>
a.cc:26:10: error: 's' was not declared in this scope
   26 |     cin>>s;
      |          ^
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout<<a<<'\n';
      |     ^~~~
a.cc:31:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << s1+s2+s3 << 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:7:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << s1+s2+s3 << 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;

int main() {
  int a,b,c endl;

  cin >> a >> b >>c endl;

  cout <<  a+b+c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected initializer before 'endl'
    5 |   int a,b,c endl;
      |             ^~~~
a.cc:7:19: error: 'c' was not declared in this scope
    7 |   cin >> a >> b >>c endl;
      |                   ^
Language: C++

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

int main() {
  int a,b,c;

  cin >> a >> b >>c endl;

  cout <<  a+b+c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'endl'
    7 |   cin >> a >> b >>c endl;
      |                    ^~~~~
      |                    ;
Language: C++

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

int main() {
  int a,b,c;

  cin >> a >> b >>c endl;

  cout <<  a+b+c << endl;
}

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

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

int main() {
  int a,b,c;

  cin >> a >> b >>c;

  cout <<  a+b+c << endl;
}

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

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

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


Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>;
      |                         ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << ans << 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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << ans << 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:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

#include <bits/stdc++>;

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


Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++>;
      |                       ^
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>;
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++>

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

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