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

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

int main()
{
    int sum = 0;
    int a[200000];
    /*0桁 ~ 199999桁*/
    string n;
    cin >> n;
    int x.length(n);
    for(int i=0;i<x;i++){
        int f = stoi(n[i]);
        sum += f;
    }
    if(sum % 9 == 0){
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected initializer before '.' token
   13 |     int x.length(n);
      |          ^
a.cc:14:19: error: 'x' was not declared in this scope
   14 |     for(int i=0;i<x;i++){
      |                   ^
a.cc:15:21: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
   15 |         int f = stoi(n[i]);
      |                 ~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

#inlcude <iostream>
using namespace std;


int main(){
	string s; cin >> s;
	int s = 0;
	for(int i = 0; i < s.size(); i++){
		s += s[i] - '0';
	}
	cout << ((s % 9 == 0) ? "Yes" : "No") << endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s; cin >> s;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inlcude <iostream>
a.cc:6:19: error: 'cin' was not declared in this scope
    6 |         string s; cin >> s;
      |                   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <iostream>
a.cc:6:26: error: 's' was not declared in this scope
    6 |         string s; cin >> s;
      |                          ^
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << ((s % 9 == 0) ? "Yes" : "No") << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:50: error: 'endl' was not declared in this scope
   11 |         cout << ((s % 9 == 0) ? "Yes" : "No") << endl;
      |                                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <iostream>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector.at;
  int N, A;
  cin >> N;
  for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
  if((N/9)*9 == N){cout << "YES" << endl; A++;};
  if(A==0){cout << "NO" << endl;};
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before '.' token
    4 |   vector.at;
      |         ^
a.cc:7:28: error: missing template arguments before '.' token
    7 |   for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
      |                            ^
a.cc:7:48: error: missing template arguments before '.' token
    7 |   for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
      |                                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector.int;
  int N, A;
  cin >> X;
  for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
  if((N/9)*9 == N){cout << "YES" << endl; A++;};
  else if(A==0){cout << "NO" << endl;};
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before '.' token
    4 |   vector.int;
      |         ^
a.cc:6:10: error: 'X' was not declared in this scope
    6 |   cin >> X;
      |          ^
a.cc:7:28: error: missing template arguments before '.' token
    7 |   for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
      |                            ^
a.cc:7:48: error: missing template arguments before '.' token
    7 |   for(int i = 0; i < vector.at();i++){N+=vector.at(i)}
      |                                                ^
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if(A==0){cout << "NO" << endl;};
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector.int;
  int N;
  cin >> X;
  for(int i = 0; i < vec.at();i++){N+=vec.at(i)}
  if((N/9)*9 == N){cout << "YES" << endl;};
  else {cout << "NO" << endl;};
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before '.' token
    4 |   vector.int;
      |         ^
a.cc:6:10: error: 'X' was not declared in this scope
    6 |   cin >> X;
      |          ^
a.cc:7:22: error: 'vec' was not declared in this scope
    7 |   for(int i = 0; i < vec.at();i++){N+=vec.at(i)}
      |                      ^~~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else {cout << "NO" << endl;};
      |   ^~~~
Language: C++

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

int main(){
  string N;
  cin >> N;
  unsigned long long result = 0
  for(char c : N){
    int tmp = c - '0';
    result += tmp;
  }
  cout << (result % 9 == 0 ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(char c : N){
      |   ^~~
Language: C++

clude <bits/stdc++.h>


using namespace std;
int main(void){
    // Your code here!
  string s;
  cin>>s;
  long long sum=0;
  for(long long i=0;i<s.size();i++){
      sum+=s.at(i)-'1';
      
  }
 if (s=="0") cout<<"Yes"<<endl;
 
 else if(sum%9==0) cout<<"Yes"<<endl;
 else cout<<"No"<<endl;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s;
      |   ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>s;
      |   ^~~
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:14:14: error: 'cout' was not declared in this scope
   14 |  if (s=="0") cout<<"Yes"<<endl;
      |              ^~~~
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |  if (s=="0") cout<<"Yes"<<endl;
      |                           ^~~~
a.cc:16:20: error: 'cout' was not declared in this scope
   16 |  else if(sum%9==0) cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:16:33: error: 'endl' was not declared in this scope
   16 |  else if(sum%9==0) cout<<"Yes"<<endl;
      |                                 ^~~~
a.cc:17:7: error: 'cout' was not declared in this scope
   17 |  else cout<<"No"<<endl;
      |       ^~~~
a.cc:17:19: error: 'endl' was not declared in this scope
   17 |  else cout<<"No"<<endl;
      |                   ^~~~
Language: C++

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

#define fi first
#define se second
#define pb push_back

typedef long long ll;
typedef pair<int,int> ii;
typedef pair<ii,int> iii;

string n;

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    clock_t ck;
    ck = clock();
    cin >> n;
    ll sum = 0;
    for (int i = 0; i < n.length(); i++)
    {
        sum += s[i] - '0';
    }
    cout << (sum%9 == 0 ? "Yes" : "No") << '\n';
    ck = clock()-ck;
    cerr << "It took " << 1.0*ck/CLOCKS_PER_SEC << " sec\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 's' was not declared in this scope
   23 |         sum += s[i] - '0';
      |                ^
Language: C++

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

#define fi first
#define se second
#define pb push_back

typedef long long ll;
typedef pair<int,int> ii;
typedef pair<ii,int> iii;

string n;

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    clock_t ck;
    ck = clock();
    cin >> n
    ll sum = 0;
    for (int i = 0; i < n.length(); i++)
    {
        sum += s[i] - '0';
    }
    cout << (sum%9 == 0 ? "Yes" : "No") << '\n';
    ck = clock()-ck;
    cerr << "It took " << 1.0*ck/CLOCKS_PER_SEC << " sec\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before 'll'
   19 |     cin >> n
      |             ^
      |             ;
   20 |     ll sum = 0;
      |     ~~       
a.cc:23:9: error: 'sum' was not declared in this scope
   23 |         sum += s[i] - '0';
      |         ^~~
a.cc:23:16: error: 's' was not declared in this scope
   23 |         sum += s[i] - '0';
      |                ^
a.cc:25:14: error: 'sum' was not declared in this scope
   25 |     cout << (sum%9 == 0 ? "Yes" : "No") << '\n';
      |              ^~~
Language: C

	#include<stdio.h>
	int main()]
{
	int a=0,b,c,n,i,j;
	char s[200000],d[5];
	scanf("%s",s);
	for(b=0;s[b]!='\0';b++);
	for(i=0;i<b;i++){
		d[0]=s[i];
		c=atoi(d);
		a+=c;
	}
	if(a%9==0){
		printf("Yes");
	}
	else{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:19: error: expected declaration specifiers before ']' token
    2 |         int main()]
      |                   ^
main.c:21: error: expected '{' at end of input
Language: C

	#include<stdio.h>
	int main(void)]
{
	int a=0,b,c,n,i,j;
	char s[200000],d[5];
	scanf("%s",s);
	for(b=0;s[b]!='\0';b++);
	for(i=0;i<b;i++){
		d[0]=s[i];
		c=atoi(d);
		a+=c;
	}
	if(a%9==0){
		printf("Yes");
	}
	else{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:23: error: expected declaration specifiers before ']' token
    2 |         int main(void)]
      |                       ^
main.c:21: error: expected '{' at end of input
Language: C++

#include <iostream>
using namespace std
int main()
{
 	int n = 0;
  	char c = cin.get();
  	while (!cin.eof())
    {
     	n += c - '0'; 
    }
  if (c % 9)
  {
    cout << "No";
  }
  cout << "Yes";
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  string N;
  cin >> N;
  int sum = 0;
  for (int i = 0; i < N.length(); i++) {
    sum += (int)(N[i] - '0');
  }
  if (sum%9==0) {
    cout << "Yes" << endl;
  } else {
    cout < "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     cout < "No" << endl;
      |            ~~~~~^~~~~~~
Language: C++

#include <iostraem>
#include <string>
using namespace std;
int main()
{
  string N;
  cin >> N;
  int sum = 0;
  for (int i = 0; i < N.length(); i++) {
    sum += (int)(N[i] - '0');
  }
  if (sum%9==0) {
    cout << "Yes" << endl;
  } else {
    cout < "No" << endl;
  }
  return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

int main()
{
    unsigned long long N;
    cin >> N;

    if(N%9 == 0&&N!==0) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    };

    return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before '=' token
   10 |     if(N%9 == 0&&N!==0) {
      |                     ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    long sum = 0;
    for (int i = 0; i < N.length(); i++) {
      sum += Character.getNumbericValue(N.charAt(i));
    }
    if (sum % 9 != 0) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
      sum += Character.getNumbericValue(N.charAt(i));
                      ^
  symbol:   method getNumbericValue(char)
  location: class Character
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() 
{
	ll ans = 0;
	cin >> n;
	
	for(int i = 0; i<n.size(); i++)
		ans += (n[i] - '0');
	
	cout << (ans % 9 == 0 ? "Yes" : "No") << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope
    6 |         ll ans = 0;
      |         ^~
a.cc:7:16: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |         cin >> n;
      |                ^
      |                yn
a.cc:10:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |                 ans += (n[i] - '0');
      |                 ^~~
      |                 abs
a.cc:12:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |         cout << (ans % 9 == 0 ? "Yes" : "No") << endl;
      |                  ^~~
      |                  abs
Language: C++

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

int main() 
{
	fastIO;
	string n;
	ll ans = 0;
	cin >> n;
	
	for(int i = 0; i<n.size(); i++)
		ans += (n[i] - '0');
	
	cout << (ans % 9 == 0 ? "Yes" : "No") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'fastIO' was not declared in this scope
    6 |         fastIO;
      |         ^~~~~~
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll ans = 0;
      |         ^~
a.cc:12:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |                 ans += (n[i] - '0');
      |                 ^~~
      |                 abs
a.cc:14:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         cout << (ans % 9 == 0 ? "Yes" : "No") << endl;
      |                  ^~~
      |                  abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
 { int N,sum=0,x;
 cin>>N;
 while(N>0)
 {
 x=N%10;
 N=N/10;
 sum=sum+x;
 }
 if(sum%9==0)
 {
     cout<<"Yes"<<endl;
     return 0;
 }
 else{
    cout<<"No"<<endl;
    return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected '}' at end of input
   20 |  }
      |   ^
a.cc:4:2: note: to match this '{'
    4 |  { int N,sum=0,x;
      |  ^
Language: C++

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

int main(){

  string s;
cin >> s;

ll ans=0;

for( int i=0; i<s.size(); i++ ){

ans+=(s[i]-'0');
}

if(ans%9==0)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'll' was not declared in this scope
    9 | ll ans=0;
      | ^~
a.cc:13:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 | ans+=(s[i]-'0');
      | ^~~
      | abs
a.cc:16:4: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 | if(ans%9==0)
      |    ^~~
      |    abs
Language: C++

#include <iostream>

using namespace std;

int main()
{
	char s[200001];
	cin >> s;
	int len = strlen(s);
	int sum = 0;
	for (int i = 0; i < len; i++) {
		sum += s[i] - '0';
	}
	if (sum % 9 == 0) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
    9 |         int len = strlen(s);
      |                   ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'for'
    7 |   for(int i=0;i<s.size();i++){
      |   ^~~
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int i=0;i<s.size();i++){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  m=0;
  cin >> n;
  for(int i=0;i<n.size();i++){
    m = m+n.at(i);
  }
  if(m%9==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: request for member 'size' in 'n', which is of non-class type 'int'
    7 |   for(int i=0;i<n.size();i++){
      |                   ^~~~
a.cc:8:13: error: request for member 'at' in 'n', which is of non-class type 'int'
    8 |     m = m+n.at(i);
      |             ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  m=0;
  cin >> n;
  for(int i=0;i<n.size();i++){
    m += n[i];
  }
  if(m%9==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: request for member 'size' in 'n', which is of non-class type 'int'
    7 |   for(int i=0;i<n.size();i++){
      |                   ^~~~
a.cc:8:11: error: invalid types 'int[int]' for array subscript
    8 |     m += n[i];
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  m=0;
  cin >> n;
  for(int i=0;i<n.size();i++){
    m += n[i];
  }
  if(i%9==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: request for member 'size' in 'n', which is of non-class type 'int'
    7 |   for(int i=0;i<n.size();i++){
      |                   ^~~~
a.cc:8:11: error: invalid types 'int[int]' for array subscript
    8 |     m += n[i];
      |           ^
a.cc:10:6: error: 'i' was not declared in this scope
   10 |   if(i%9==0){
      |      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;

int main() {
  string N;cin>>N;
  
  ll sum=0;
  for(int i=0;i<N.size(),i++){
    sum+=int(N[i]);
  }
  
  if(sum%9==0) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before ')' token
   10 |   for(int i=0;i<N.size(),i++){
      |                             ^
      |                             ;
Language: C++

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

int main() {
  string  s;
  int t=0;
  cin >>s;

for (int i=0 ; i<s.size() ; i++)  
{ t+= s[i]-"0" ;}
if (t%9==0) {cout << "Yes" <<endl;
}
else {cout << "No" << endl;}
return 0 ;}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [2]' to binary 'operator-'
   10 | { t+= s[i]-"0" ;}
Language: C++

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

int main() {
  string  s;
  int t=0;
  cin >>s;

for (int i=0 ; i<s.size() ; i++)  
{ t+= s[i]-'0'}
if (t%9==0) {cout << "Yes" <<endl;
}
else {cout << "No" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before '}' token
   10 | { t+= s[i]-'0'}
      |               ^
      |               ;
Language: C++

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

int main() {
  string  s;
  int t=0;
  cin >>s;

for (int i=0 ; i<s.size() ; i++)  
{ t+= s[i]}
if (t%9==0) {cout << "Yes" <<endl;
}
else {cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before '}' token
   10 | { t+= s[i]}
      |           ^
      |           ;
Language: C++

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

int main() {
  string  s;
  int t=0;
  cin >>s;

for (int i=0 ; i<s.size() ; i++)  
{ t+= s[i]}
cout << t <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before '}' token
   10 | { t+= s[i]}
      |           ^
      |           ;
Language: C++

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

int main() {
  string  s;
  int t=0;
  cin >>s;

for (int i=0 ; i<s.size() i++)  
 t+= s[i]
cout << t <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'i'
    9 | for (int i=0 ; i<s.size() i++)
      |                          ^~
      |                          ;
a.cc:10:10: error: expected ';' before 'cout'
   10 |  t+= s[i]
      |          ^
      |          ;
   11 | cout << t <<endl;
      | ~~~~
Language: C++

#include <algorithm>
#include <map>
#include <string>
#include <cmath>
#include <iomanip>
#define rep(i,n) for (int i=0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main(){
    string n;
    cin >> n;
    int len = n.length();

    int sum = 0;
    rep(i, len) sum += n[i] - '0';
    if(sum%9 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin >> n;
      |     ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <iomanip>
  +++ |+#include <iostream>
    6 | #define rep(i,n) for (int i=0; i < (n); ++i)
a.cc:16:20: error: 'cout' was not declared in this scope
   16 |     if(sum%9 == 0) cout << "Yes" << endl;
      |                    ^~~~
a.cc:16:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:10: error: 'cout' was not declared in this scope
   17 |     else cout << "No" << endl;
      |          ^~~~
a.cc:17:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;

int n;

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

    string s;
    cin >> s;
    int n = 0;
    for (char c : s) {31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
        n += c - '0';
        n %= 9;
    }
    if (n) cout << "No\n";
    else cout << "Yes\n";

    return 0;
}

Compiler output:
a.cc:21:23: warning: integer constant is too large for its type
   21 |     for (char c : s) {31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:21:109: error: expected ';' before 'n'
   21 |     for (char c : s) {31415926535897932384626433832795028841971693993751058209749445923078164062862089986280
      |                                                                                                             ^
      |                                                                                                             ;
   22 |         n += c - '0';
      |         ~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String number = input.next();

		long sum = 0;

		for (int i = 0; i < number.length(); i++){
			sum += Character.getNumericValue(number.charAt(i));
		}
		System.out.println(sum % 9 == 0 ? "Yes" : "No");
}

Compiler output:
Main.java:14: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  long long int l=s.length();
  for(long long int i=0;i<l;i++)
    sum+=(int)s[i]-48;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum+=(int)s[i]-48;
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  int sum=0;
  for(int i=0;i<s.length();i++)
    sum+=stoi(s[i]);
  cout<<sum;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    9 |     sum+=stoi(s[i]);
      |          ~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
 
int main(){
	string s;
  	cin >> s;
  	
  	int ans = 0;
  	for(char c : s){
    	ans += (c-'0');
    }
  	ans %= 9;
  
  	if(x == 0) cout << "Yes" << endl;
  	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'x' was not declared in this scope
   17 |         if(x == 0) cout << "Yes" << endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
 
int main(){
	string s;
  	cin >> s;
  	
  	int ans = 0;
  	for(char c : s){
    	ans += (c-'0');
    }
  	x %= 9;
  
  	if(x == 0) cout << "Yes" << endl;
  	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'x' was not declared in this scope
   15 |         x %= 9;
      |         ^
Language: C++

#include<iostream>
using namespace std;


char s[200010];
int main(){
    scanf("%s",s);
    int len=strlen(s);
    int sum=0;
    for(int i=0;i<len;i++)sum+=s[i]-'0';
    if(sum%9==0){
        puts("Yes");
    }else{
        puts("No");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'strlen' was not declared in this scope
    8 |     int len=strlen(s);
      |             ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

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

int main() {
  int l,sum=0;
  string n; cin >> n;
  l=n.size();
  
  for(int i=0;i<l;i++){
  sum+=n.at(i)-'0';
  }
  
  if(n%9==0){
  cout << "Yes" <<endl;
  }else{
  cout << "No" << endl;
  }
  
  return 0;
  
  
  
  
}


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

int main(){
	string n;
	cin>>n;
	int len = n.size();
	int sum = 0;
	for(int i=0;i<len;i++){
		sum += (n[i] - '0');
	}
	if(sum % 9 == 0){
		printf("Yes\n");
	}else{
		printf("No\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string n;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>n;
      |         ^~~
a.cc:3:14: error: 'n' was not declared in this scope
    3 |         cin>>n;
      |              ^
a.cc:10:17: error: 'printf' was not declared in this scope
   10 |                 printf("Yes\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:12:17: error: 'printf' was not declared in this scope
   12 |                 printf("No\n");
      |                 ^~~~~~
a.cc:12:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
unsigned long long int N,rem,sum=0,t=0;
cin>>N;
  
while(N>0)
{
  rem=N%10;
  sum+=rem;
  N=N/10;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.*;
class Main{
 static int help(int a){
 int s=a;
    while(s>91){
      int p=0;
      while(a>0){
        p=p+a%10;
        a=a/10;
      }
      s=p;
    }
  }
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
   String n=sc.nextLine();
    int a=0;
    for(int i=0;i<n.length();i++){
    a=n.charAt(i)-'0';
    }
    if(a<91){
      if(a%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }}
    
    else{
      int b=help(a);
         if(b%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
   
  }}}


Compiler output:
Main.java:13: error: missing return statement
  }
  ^
1 error
Language: Java

import java.util.*;
class Main{
  int help(int a){
 int s=a;
    while(s>91){
      int p=0;
      while(a>0){
        p=p+a%10;
        a=a/10;
      }
      s=p;
    }
  }
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
   String n=sc.nextLine();
    int a=0;
    for(int i=0;i<n.length();i++){
    a=n.charAt(i)-'0';
    }
    if(a<91){
      if(a%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }}
    
    else{
      int b=help(a);
         if(b%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
   
  }}}

Compiler output:
Main.java:29: error: non-static method help(int) cannot be referenced from a static context
      int b=help(a);
            ^
1 error
Language: Java

import java.util.*;
class Main{
  int help(int a){
 int s=a;
    while(s>91){
      int p=0;
      while(a>0){
        p=p+a%10;
        a=a/10;
      }
      s=p;
    }
  }
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
   String n=sc.nextLine();
    int a=0;
    for(int i=0;i<n.length();i++){
    a=n.charAt(i)-'0';
    }
    if(a<91){
      if(a%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }}
    
    else{
      int b=help(a);
         if(b%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
   
  }}

Compiler output:
Main.java:36: error: reached end of file while parsing
  }}
    ^
1 error
Language: Java

import java.util.*;
class Main{
  int help(int k){
 int s=k;
    while(s>91){
      int p=0;
      while(k>0){
        p=p+k%10;
        k=k/10;
      }
      s=p;
    }
  }
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
   String n=sc.nextLine();
    int a=0;
    for(int i=0;i<n.length();i++){
    a=n.charAt(i)-'0';
    }
    if(a<91){
      if(a%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }}
    
    else{
      int b=help(a);
         if(b%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
   
  }}}

Compiler output:
Main.java:29: error: non-static method help(int) cannot be referenced from a static context
      int b=help(a);
            ^
1 error
Language: Java

import java.util.*;
class Main{
  int help(int k){
 int s=k;
    while(s>91){
      int p=0;
      while(k>0){
        p=p+k%10;
        k=k/10;
      }
      s=p;
    }
  }
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
   String n=sc.nextLine();
    int a=0;
    for(int i=0;i<n.length();i++){
    a=n.charAt(i)-'0';
    }
    if(a<91){
      if(a%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }}
    
    else{
      int b=help(a);
         if(b%9==0){
      System.out.println("Yes");
      }else{
        System.out.println("No");
      }
   
  }}

Compiler output:
Main.java:36: error: reached end of file while parsing
  }}
    ^
1 error
Language: Java

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

public class B{

	public static void main(String[] args) {
		FastReader in = new FastReader();
		PrintWriter out = new PrintWriter(System.out);
		char[] num = in.next().toCharArray();
		long ans = 0;
		for(char x:num) {
			ans+= x-'0'; 
		}
		out.println(ans%9==0?"Yes":"No");
		out.close();
	}

	static final Random random=new Random();
	//	static void ruffleSort(Pair[] a) {
	//		int n=a.length;//shuffle, then sort 
	//		for (int i=0; i<n; i++) {
	//			int oi=random.nextInt(n);
	//			Pair temp=a[oi];
	//			a[oi]=a[i]; a[i]=temp;
	//		}
	//		Arrays.sort(a);
	//	}
	static void ruffleSort(int[] a) {
		int n=a.length;//shuffle, then sort 
		for (int i=0; i<n; i++) {
			int oi=random.nextInt(n), temp=a[oi];
			a[oi]=a[i]; a[i]=temp;
		}
		Arrays.sort(a);
	}
	static void ruffleSort(char[] a) {
		int n=a.length;//shuffle, then sort 
		for (int i=0; i<n; i++) {
			int oi=random.nextInt(n);
			char temp=a[oi];
			a[oi]=a[i]; a[i]=temp;
		}
		Arrays.sort(a);
	}
	static class FastReader 
	{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException  e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 

		int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
	}
}

//class Pair implements Comparable<Pair>{
//    int a;
//    int b;
//    public Pair(int a, int b) {
//        this.a = a;
//        this.b = b;
//    }
//    public int compareTo(Pair o) {
//        if(this.a==o.a)
//            return this.b - o.b;
//        return this.a - o.a;
//    }   
//}

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

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;

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

  int sum = 0;
  for (char c : s){
    sum += (c - '0')
  }

  if (sum % 9 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ';' before '}' token
   14 |     sum += (c - '0')
      |                     ^
      |                     ;
   15 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;cin>>s;
  int sum = 0;
  for(int i=0;i<s.size();i++){
    sum = (sum+stoi(s[i]))%9;
  }
  if(sum %9==0){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    7 |     sum = (sum+stoi(s[i]))%9;
      |                ~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
char s[200010];
int main(){
  int s;
    cin>>s;
    int len=strlen(s);
    int sum=0;
    for(int i=0;i<len;i++)sum+=s[i]-'0';
    if(sum%9==0){
        puts("Yes");
    }else{
        puts("No");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: 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,
                 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:6:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |     int len=strlen(s);
      |                    ^
      |                    |
      |                    int
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:8:33: error: invalid types 'int[int]' for array subscript
    8 |     for(int i=0;i<len;i++)sum+=s[i]-'0';
      |                                 ^
Language: C++

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

int main() 
{
	string s;
	long long int sum=0;
    cin>>s;
    for(auto x:s)
        sum+=stoll(x);
    if(sum%9==0)
        cout<<"Yes";
    else
        cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: no matching function for call to 'stoll(char&)'
   10 |         sum+=stoll(x);
      |              ~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4180:3: note: candidate: 'long long int std::__cxx11::stoll(const std::string&, std::size_t*, int)'
 4180 |   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~~
/usr/include/c++/14/bits/basic_string.h:4180:23: note:   no known conversion for argument 1 from 'char' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4180 |   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
      |         ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4447:3: note: candidate: 'long long int std::__cxx11::stoll(const std::wstring&, std::size_t*, int)'
 4447 |   stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~~
/usr/include/c++/14/bits/basic_string.h:4447:24: note:   no known conversion for argument 1 from 'char' to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4447 |   stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |         ~~~~~~~~~~~~~~~^~~~~
Language: C++

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

int main() 
{
	string s;
	long long int sum=0;
    cin>>s;
    for(auto x:s)
        sum+=stoll(x);
    if(sum%9==0)
        cout<<"YES;
    else
        cout<<"NO";
}


Compiler output:
a.cc:12:15: warning: missing terminating " character
   12 |         cout<<"YES;
      |               ^
a.cc:12:15: error: missing terminating " character
   12 |         cout<<"YES;
      |               ^~~~~
a.cc: In function 'int main()':
a.cc:10:19: error: no matching function for call to 'stoll(char&)'
   10 |         sum+=stoll(x);
      |              ~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4180:3: note: candidate: 'long long int std::__cxx11::stoll(const std::string&, std::size_t*, int)'
 4180 |   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~~
/usr/include/c++/14/bits/basic_string.h:4180:23: note:   no known conversion for argument 1 from 'char' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4180 |   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
      |         ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4447:3: note: candidate: 'long long int std::__cxx11::stoll(const std::wstring&, std::size_t*, int)'
 4447 |   stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~~
/usr/include/c++/14/bits/basic_string.h:4447:24: note:   no known conversion for argument 1 from 'char' to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4447 |   stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |         ~~~~~~~~~~~~~~~^~~~~
a.cc:13:5: error: expected primary-expression before 'else'
   13 |     else
      |     ^~~~
Language: C++

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

char s[200010];
int main() {
    scanf("%s", s);
    int len = strlen(s);
    int sum = 0;
    for (int i = 0; i < len; i++)sum += s[i] - '0';
    if (sum % 9 == 0) {
        puts("Yes");
    }
    else {
        puts("No");
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'strlen' was not declared in this scope
    7 |     int len = strlen(s);
      |               ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<string>
  +++ |+#include <cstring>
    3 |
Language: C++

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

int main() {
	char n[200001];
	scanf("%s", n);
	int d = 0;
	for (int i = 0; i < strlen(n); i++) {
		d += n[i] - '0';
	}
	printf((d % 9 == 0) ? "Yes\n" : "No\n");
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'strlen' was not declared in this scope
    8 |         for (int i = 0; i < strlen(n); i++) {
      |                             ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<string>
  +++ |+#include <cstring>
    3 |
Language: C

#include<stdio.h>
void main()
{
  long int n,a,sum=0;
  scanf("%ld",&n);
  while(n>0)
  {
    a=n%10;
    sum=aum+a;
    n=n/10;
  }
if(sum%9==0)
  printf("Yes");
  else
    printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'aum' undeclared (first use in this function); did you mean 'sum'?
    9 |     sum=aum+a;
      |         ^~~
      |         sum
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream.h>
using namespace std
  int main()
{
  long int n, sum=0;
  cin>>n;
  for(int i=n; i!=0; i=i/10)
  {
    sum+=i;
  }
  if(sum%9==0)
  {
    cout<<"Yes";
  }
  else
  {
    cout<<"No;
  }
}

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

#include<iostream>
using namespace std;
const int MAX=200002;
char bit[MAX];
int main(){
    cin>>bit;
    int len=strlen(bit);
    int sum=0;
    for(int i=0;i<len;i++)
    {
        sum+=bit[i]-'0';
    }
    if(sum%9)
    {
        cout<<"No";
    }
    else
    {
        cout<<"Yes";
        /* code */
    }
    
    //system("pause");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'strlen' was not declared in this scope
    7 |     int len=strlen(bit);
      |             ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: Java

import java.util.*;
import static java.lang.System.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
      String s = sc.next();
      int sum = 0;
      
      for(int i=0; i<s.length(); i++){
        sum = sum + s[i];
      }
    if(sum % 9){
      out.println("Yes");
}else{
      out.println("No");
    }
}
}

Compiler output:
Main.java:11: error: array required, but String found
        sum = sum + s[i];
                     ^
Main.java:13: error: incompatible types: int cannot be converted to boolean
    if(sum % 9){
           ^
2 errors