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

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

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


Compiler output:
a.cc:14:20: warning: missing terminating " character
   14 |     return cout << "Yes;
      |                    ^
a.cc:14:20: error: missing terminating " character
   14 |     return cout << "Yes;
      |                    ^~~~~
a.cc:16:19: warning: missing terminating " character
   16 |     return cout<< " No ;
      |                   ^
a.cc:16:19: error: missing terminating " character
   16 |     return cout<< " No ;
      |                   ^~~~~~
a.cc: In function 'int main()':
a.cc:15:3: error: expected primary-expression before 'else'
   15 |   else
      |   ^~~~
a.cc:14:19: error: expected ';' before 'else'
   14 |     return cout << "Yes;
      |                   ^
      |                   ;
   15 |   else
      |   ~~~~             
a.cc:17:3: error: expected primary-expression before 'return'
   17 |   return 0;
      |   ^~~~~~
a.cc:16:18: error: expected ';' before 'return'
   16 |     return cout<< " No ;
      |                  ^
      |                  ;
   17 |   return 0;
      |   ~~~~~~
Language: C

include  <stdio.h>

int main(){
  int N;
    scanf("%d",&N);
  
  if(N%9==0){
    printf("Yes\n");
   }else{
     printf("No\n");
   }
  return 0;
}

Compiler output:
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include  <stdio.h>
      |          ^
Language: C

#include <stdio.h>

int main(void){
 	float nine_c;
  	float loop;
  	int nine_div;
 	int dig, sum;	
  	scanf("%f", nine_c);
  
  	for(loop = nine_c; loop > 0; loop--){
     
      dig = nine_c % 10;
      sum = sum + dig;
      nine_c = nine_c / 10;  
    }
	if((sum % 9) == 0){
      printf("Yes");
    }
  	else{
      printf("No");
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: invalid operands to binary % (have 'float' and 'int')
   12 |       dig = nine_c % 10;
      |                    ^
Language: C

#include <stdio.h>

int main(void){
 	double nine_c;
  	double loop;
  	int nine_div;
 	int dig, sum;	
  	scanf("%f", nine_c);
  
  	for(loop = nine_c; loop > 0; loop--){
     
      dig = nine_c % 10;
      sum = sum + dig;
      nine_c = nine_c / 10;  
    }
	if((sum % 9) == 0){
      printf("Yes");
    }
  	else{
      printf("No");
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: invalid operands to binary % (have 'double' and 'int')
   12 |       dig = nine_c % 10;
      |                    ^
Language: C

#include <stdio.h>
typedef long long ll;
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main()
{
   int N,sum=0,tmp=0;
   scanf("%d", &N);

while (N>0)
{
   sum+=N%10;
   N=N/10;
}
if (sum%9==0)
{
 printf("Yes");
}
else
{
   printf("No");

}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include  <stdio.h>

int main(){
  int N,a,b;
    scanf("%d %d %d",&N,&a,&b);
  
 a=N/10;
 b=N%10;
  if(a+b=9){
    printf("Yes\n");
   }else{
     printf("No\n");
   }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: lvalue required as left operand of assignment
    9 |   if(a+b=9){
      |         ^
Language: C

#include  <stdio.h>

int main(){
  int N a b;
    scanf("%d　%d　%d",&N,&a,&b);
  
 N=10*a+b
   if(a+b=9){
    printf("Yes\n");
   }else{
     printf("No\n");
   }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    4 |   int N a b;
      |         ^
main.c:4:9: error: unknown type name 'a'
main.c:5:25: error: 'N' undeclared (first use in this function)
    5 |     scanf("%d　%d　%d",&N,&a,&b);
      |                         ^
main.c:5:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:28: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d　%d　%d",&N,&a,&b);
      |                            ^
main.c:7:10: error: expected ';' before 'if'
    7 |  N=10*a+b
      |          ^
      |          ;
    8 |    if(a+b=9){
      |    ~~
Language: C++

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

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

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


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

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

int	main(void)
{
	char	num[200010];
	char	*tmp;
	int		res;

	scanf("%s", num);
	tmp = num;
	while (*tmp):
	{
		res += *tmp - '0';
		tmp++;
	}
	if (res % 9)
		printf("No\n");
	else
		printf("Yes\n");
	return (0);
}


Compiler output:
main.c: In function 'main':
main.c:12:21: error: expected expression before ':' token
   12 |         while (*tmp):
      |                     ^
main.c:19:9: error: 'else' without a previous 'if'
   19 |         else
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
  {
  string str;
  cin>>str;
  ll c=0;
  for(ll i=0;i<str.length();i++)
    {
    c+=(int)(str[i]-'0');
    
    }
  if(c%9)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '}' token
   17 |     cout<<"Yes"<<endl
      |                      ^
      |                      ;
   18 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'll' was not declared in this scope
    7 |   ll c=0;
      |   ^~
a.cc:8:9: error: expected ';' before 'i'
    8 |   for(ll i=0;i<str.length();i++)
      |         ^~
      |         ;
a.cc:8:14: error: 'i' was not declared in this scope
    8 |   for(ll i=0;i<str.length();i++)
      |              ^
a.cc:10:5: error: 'c' was not declared in this scope
   10 |     c+=(int)(str[i]-'0');
      |     ^
a.cc:13:6: error: 'c' was not declared in this scope
   13 |   if(c%9)
      |      ^
a.cc:16:22: error: expected ';' before '}' token
   16 |     cout<<"Yes"<<endl
      |                      ^
      |                      ;
   17 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
using boost::multiprecision::cpp_int;
#define ll long long int
int main()
{
   cpp_int n;
   cin>>n;
   cpp_int count=0;
   while(n>0)
   {
       cpp_int k=(n%10)
       n/=10;
       if(k>0)
       count=count+k;
       n/=10;
   }
   if(count%9==0)
   cout<<"Yes"<<endl;
   else
   cout<<"No"<<endl;
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
using boost::multiprecision::cpp_int;
#define ll long long int
int main()
{
   cpp_int n;
   cin>>n;
   ll count=0;
   while(n>0)
   {
       if(n%9)
       count+=(n%9);
       n/=9;
   }
   if(count%9==0)
   cout<<"Yes"<<endl;
   else
   cout<<"No"<<endl;
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin >> x;
  
  if(x % 9 == 0){
    cout << "yes" << endl;
  } else {
    cout << "no" << endl;
  }
      
 }

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x;
  
  cin >> x;
  
  if(x % 9 == 0){
    cout << "yes" << endl;
  else {
    cout << "no" << endl;
  }
      
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else {
      |   ^~~~
a.cc:9:17: note: to match this '{'
    9 |   if(x % 9 == 0){
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin >> x;
  
  if(x % 9 == 0){
    cout << "yes" << endl;
  else {
    cout << "no" << endl;
  }
      
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'x' was not declared in this scope
    5 |   cin >> x;
      |          ^
a.cc:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:17: note: to match this '{'
    7 |   if(x % 9 == 0){
      |                 ^
Language: C++

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

int main(){
  string n
  int ans = 0;
  cin >> n;
  for(char c : n){
    ans += (c - '0');
  }
  ans %= 9;
  if(ans == 0) cout << 'Yes' << endl;
  else cout << 'No' << endl;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:13:24: warning: multi-character character constant [-Wmultichar]
   13 |   if(ans == 0) cout << 'Yes' << endl;
      |                        ^~~~~
a.cc:14:16: warning: multi-character character constant [-Wmultichar]
   14 |   else cout << 'No' << endl;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'int'
    7 |   int ans = 0;
      |   ^~~
a.cc:8:10: error: 'n' was not declared in this scope
    8 |   cin >> n;
      |          ^
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans += (c - '0');
      |     ^~~
      |     abs
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans %= 9;
      |   ^~~
      |   abs
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
	char s[100000];
	int i, j, p = 0, a, k;
	gets(s);
	a = strlen(s);
	for (i = 0; i < a; i++)
	{
		p = p + (s[i] - '0');
		p = p % 9;
	}
	if (p % 9 == 0)
		printf("Yes\n");
	else
		printf("No\n");
		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
	char s[100000];
	int i, j, p = 0, a, k;
	gets(s);
	a = strlen(s);
	for (i = 0; i < a; i++)
	{
		p = p + (s[i] - s[0]);
		p = p % 9;
	}
	if (p % 9 == 0)
		printf("Yes\n");
	else
		printf("No\n");
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

n = input()
s = 0
for i in range(len(n)):
    s += int(n[i])
if s % 3 == 0:
    print('Yes')
else:
    print('No')


Compiler output:
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('Yes')
      |           ^~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = input()
      | ^
Language: Java

//package atcoder.beginnercontest.r176;

import java.util.Scanner;

/**
 * @author pribic (Priyank Doshi)
 * @since 29/08/20
 */
public class ProblemB {

  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      String n = sc.next();
      int sum = 0;

      for (char c : n.toCharArray())
        sum += (c - '0');
      System.out.println(sum % 9 == 0 ? "Yes" : "No");
    }
  }
}

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

#include<bits/stdc++.h>
using namespace std;
tyedef long long ll;
int main()
{
  string s;
  cin>>s;
  ll l=s.length();
  ll sum=0;
  for(ll i=0;i<l;i++)
  {
    sum+=(int)s[i]-'0';
  }
  if(sum%9==0)
    cout<<"Yes";
  else
    cout<<"No";
    
  return 0;
}
  


Compiler output:
a.cc:3:1: error: 'tyedef' does not name a type; did you mean 'typedef'?
    3 | tyedef long long ll;
      | ^~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope
    8 |   ll l=s.length();
      |   ^~
a.cc:9:5: error: expected ';' before 'sum'
    9 |   ll sum=0;
      |     ^~~~
      |     ;
a.cc:10:9: error: expected ';' before 'i'
   10 |   for(ll i=0;i<l;i++)
      |         ^~
      |         ;
a.cc:10:14: error: 'i' was not declared in this scope
   10 |   for(ll i=0;i<l;i++)
      |              ^
a.cc:10:16: error: 'l' was not declared in this scope
   10 |   for(ll i=0;i<l;i++)
      |                ^
a.cc:12:5: error: 'sum' was not declared in this scope
   12 |     sum+=(int)s[i]-'0';
      |     ^~~
a.cc:14:6: error: 'sum' was not declared in this scope
   14 |   if(sum%9==0)
      |      ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define rep(i, n)  for(ll i = 0; i < (n); ++i)
#define rep1(i,n)  for(ll i = 1;i <= (n); ++i)
#define pb push_back
#define M 1000000007
unordered_map<ll,ll>mp;

int main()
{
    fastIO
	string st;
  cin>>st;
  int rem=0;
  for(ll i=0;i<st.length();i++)
  {
    rem+=(st[i]-'0')
      rem=rem%9;
  }
  if(rem==0)
    cout<<"Yes";
  else
    cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before 'rem'
   19 |     rem+=(st[i]-'0')
      |                     ^
      |                     ;
   20 |       rem=rem%9;
      |       ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'endl'
   10 |     cout << "No" endl;
      |                 ^~~~~
      |                 ;
Language: C++

#include<map>
#include<set>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include<functional>
#include<iterator>
#include<iostream>
#include "bits/stdc++.h"
#define IO ios_base::sync_with_stdio(false);cin.tie(0);
#define mem(a,val) memset(a,val,sizeof(a))
#define pb push_back
using namespace std;

void solu (){

}

int main(void){
    string temp;
	while(cin>>temp){int n=0;
	    for(int i=0;i<temp.length();i++){
	        n+=temp[i]-48;
	    }
        if(n%9==0)
            cout<<"Yes\n";
            else
                cout<<"No\n"<;
            temp.clear();
	}


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:30: error: expected primary-expression before ';' token
   29 |                 cout<<"No\n"<;
      |                              ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'sum' was not declared in this scope
   13 |   if(sum%9==0)
      |      ^~~
Language: C++

 #include<bits/stdc++.h>
#include<string.h>
using namespace std;   
int main(){
    string s;
    long len;
    cin >> s;
    int sum=0;
    len = strlen(s);
    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:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    9 |     len = strlen(s);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

 #include<bits/stdc++.h>
using namespace std;   
int main(){
    string s;
    long len;
    cin >> s;
    int sum=0;
    len = strlen(s);
    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:8:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |     len = strlen(s);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: Java

import java.util.Scanner;

public class App {

    private static final int NINE＿VAL = 9;

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        final String indexStr = sc.next();
        String[] Array = indexStr.split("");
        int iTotalVal = 0;
        for (String i : Array) {
            iTotalVal += Integer.parseInt(i);
        }

        String outputVal = "";
        // 入力された文字の総数が9の倍数か？
        if (0 == (iTotalVal % NINE＿VAL)) {
            outputVal = "Yes";
        } else {
            outputVal = "No";
        }
        System.out.print(outputVal);
    }
}


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

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

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

Compiler output:
a.cc:16:20: warning: missing terminating " character
   16 |         else cout<<"No<<endl;
      |                    ^
a.cc:16:20: error: missing terminating " character
   16 |         else cout<<"No<<endl;
      |                    ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'longlong' was not declared in this scope
    7 |   longlong sum=0;
      |   ^~~~~~~~
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum+=N.at(i);
      |     ^~~
a.cc:11:6: error: 'sum' was not declared in this scope
   11 |   if(sum%9==0){
      |      ^~~
Language: C++

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

int main() {
 string N;
 int length;
 int T2;
 cin >> N;
 length=N.size();
 int i,sum;
 sum=0;
 for (i=0; i<N.size(); ++i){
   sum=sum + atoi(N.at(i));
 }
 string flag=Yes;
 if (sum%9!=0) {
   flag=No;
 }
 
 
  
 cout << flag << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   13 |    sum=sum + atoi(N.at(i));
      |                   ~~~~^~~
      |                       |
      |                       __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:15:14: error: 'Yes' was not declared in this scope
   15 |  string flag=Yes;
      |              ^~~
a.cc:17:9: error: 'No' was not declared in this scope; did you mean 'N'?
   17 |    flag=No;
      |         ^~
      |         N
Language: C++

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

using namespace std;

int main() {
  string s;
  cin >> s;
  int sum = 0;
  for (int i = 0; i < s.len(); i++) {
    sum += s[i] - '0';
    if (sum % 9 == 0)
      sum = 0;
  }
  cout << (!sum ? "Yes" : "No") << '\n';

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'len'
   12 |   for (int i = 0; i < s.len(); i++) {
      |                         ^~~
Language: Java

import java.util.*;
public class solution{
  public static void main(String args[]){
    Scanner s= new Scanner(System.in);
    int n=s.nextInt();
    int sum=0;
    while(n>0){
      rem=n%10;
      sum=sum+rem;
      n=m/10;
    }
    if(sum%9==0){
      System.out.println("Yes");
    }
    else{
      println("No");
    }
  }
}

Compiler output:
Main.java:2: error: class solution is public, should be declared in a file named solution.java
public class solution{
       ^
Main.java:8: error: cannot find symbol
      rem=n%10;
      ^
  symbol:   variable rem
  location: class solution
Main.java:9: error: cannot find symbol
      sum=sum+rem;
              ^
  symbol:   variable rem
  location: class solution
Main.java:10: error: cannot find symbol
      n=m/10;
        ^
  symbol:   variable m
  location: class solution
Main.java:16: error: cannot find symbol
      println("No");
      ^
  symbol:   method println(String)
  location: class solution
5 errors
Language: C++

#include<iostream>
using namespace std;
typedef long long ll;
int main(){
  int n;
  cin>>n;
  ll int sum=0;
  int val=n;
  while(val!=0){
    sum=sum+val%10;
    val=val/10;}
  if(sum%9==0){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: two or more data types in declaration of 'sum'
    7 |   ll int sum=0;
      |   ^~
a.cc:10:5: error: 'sum' was not declared in this scope
   10 |     sum=sum+val%10;
      |     ^~~
a.cc:12:6: error: 'sum' was not declared in this scope
   12 |   if(sum%9==0){
      |      ^~~
Language: C

#include<stdio.h>
int main()
{
  char N[1E200000]={};
  int num[1E200000]={};
  int sum=0;
  scanf("%s",&N);
 for{int i=0;i<=1E2000000;i++)
 {
  if(N[i]=="0")
   {
     num[i]=0;
   }
 else if(N[i]=="1")
   {
     num[i]=1;
   }
 else if(N[i]=="2")
   {
     num[i]=2;
   }
 else if(N[i]=="3")
   {
     num[i]=3;
   }
 else if(N[i]=="4")
   {
     num[i]=4;
   }
 else if(N[i]=="5")
   {
     num[i]=5;
   }
 else if(N[i]=="6")
   {
     num[i]=6;
   }
 else if(N[i]=="7")
   {
     num[i]=7;
   }
 else if(N[i]=="8")
   {
     num[i]=8;
   }
 else if(N[i]=="9")
   {
     num[i]=9;
   }
 }
     for(int j=0;j<=1E200000;j++)
     {
       sum+=num[j];
     }
     if(sum%9=0)
     {
printf("Yes");
     }
     else
     {printf("No");
     }
return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:4:3: warning: floating constant exceeds range of 'double' [-Woverflow]
    4 |   char N[1E200000]={};
      |   ^~~~
main.c:4:8: error: size of array 'N' has non-integer type
    4 |   char N[1E200000]={};
      |        ^
main.c:5:3: warning: floating constant exceeds range of 'double' [-Woverflow]
    5 |   int num[1E200000]={};
      |   ^~~
main.c:5:7: error: size of array 'num' has non-integer type
    5 |   int num[1E200000]={};
      |       ^~~
main.c:8:5: error: expected '(' before '{' token
    8 |  for{int i=0;i<=1E2000000;i++)
      |     ^
      |     (
main.c:8:14: error: 'i' undeclared (first use in this function)
    8 |  for{int i=0;i<=1E2000000;i++)
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:2: warning: floating constant exceeds range of 'double' [-Woverflow]
    8 |  for{int i=0;i<=1E2000000;i++)
      |  ^~~
main.c:8:30: error: expected ';' before ')' token
    8 |  for{int i=0;i<=1E2000000;i++)
      |                              ^
      |                              ;
main.c:8:30: error: expected statement before ')' token
main.c:51:6: warning: floating constant exceeds range of 'double' [-Woverflow]
   51 |      for(int j=0;j<=1E200000;j++)
      |      ^~~
main.c:55:14: error: lvalue required as left operand of assignment
   55 |      if(sum%9=0)
      |              ^
main.c:63:5: error: expected declaration or statement at end of input
   63 |     }
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: conversion from 'll' {aka 'long long int'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |    string s=n-'0';
      |             ~^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: conversion from 'll' {aka 'long long int'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |    string s=n-'0';
      |             ~^~~~
a.cc:11:19: error: expected ';' before '}' token
   11 |        a+=s[i]+'0'
      |                   ^
      |                   ;
   12 |    }
      |    ~
Language: C++

#include<iostream>
using namespace std;
int main(){
  char n[];
  cin>>n;
  int res=0;
  for(int i=0;i++;){
    if(n[i]=='\0')break;
    res+=n[i]-'0';
  }
  cout<<(res%9==0)?"Yes":"No"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: storage size of 'n' isn't known
    4 |   char n[];
      |        ^
a.cc:11:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout<<(res%9==0)?"Yes":"No"<<endl;
      |                          ~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  char n[];
  cin>>n;
  int res=0;
  while(int i=0;i++;){
    if(n[i]=='\0')break;
    res+=n[i]-'0';
  }
  cout<<(res%9==0)?"Yes":"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: storage size of 'n' isn't known
    4 |   char n[];
      |        ^
a.cc:7:16: error: expected ')' before ';' token
    7 |   while(int i=0;i++;){
      |        ~       ^
      |                )
a.cc:7:17: error: 'i' was not declared in this scope
    7 |   while(int i=0;i++;){
      |                 ^
a.cc:7:21: error: expected primary-expression before ')' token
    7 |   while(int i=0;i++;){
      |                     ^
a.cc:11:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout<<(res%9==0)?"Yes":"No"<<endl;
      |                          ~~~~^~~~~~
Language: C++

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

int main() {
   string n;
   cin >> n;
   int sum = 0;
   rep(i, n.length()) 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:8:8: error: 'i' was not declared in this scope
    8 |    rep(i, n.length()) sum += (int)n[i];
      |        ^
a.cc:8:4: error: 'rep' was not declared in this scope
    8 |    rep(i, n.length()) sum += (int)n[i];
      |    ^~~
Language: C++

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

int main() {
    string N;
    cin >> N;
    int sum;
    for (int i = 0; i < N.length(); ++i) {
        sum += N[i] 
    }

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

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

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

   cin>>s;
   int i=0;
   len=s.length();
   while(s[i]!=len)
   {

       sum=sum+s[i]-'0';
       i++;
   }
   if(sum%9==0)
   {
        cout<<"Yes"<<endl;

   }
   else
    cout<<"No"<<endl;



   }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'len' was not declared in this scope
   10 |    len=s.length();
      |    ^~~
Language: C

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

int main(void){
	char s[200010];
	int i, len, ans;

	if (scanf("%s", s)
	i = 0;
	ans = 0;
	len = strlen(s);
	while (i < len){
		ans = ans + (s[i] -'0');
		i++;
	}
	if  (ans % 9 == 0){
		printf("yes\n");
	}else{
		printf("no\n");
	}
	return (0);
}


Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ')' before 'i'
    8 |         if (scanf("%s", s)
      |            ~              ^
      |                           )
    9 |         i = 0;
      |         ~                  
main.c:22:1: error: expected expression before '}' token
   22 | }
      | ^
Language: C++

import sys, os.path

# if(os.path.exists('input.txt')):
#     sys.stdin = open('input.txt',"r")
#     sys.stdout = open('output.txt',"w")

sys.setrecursionlimit(10 ** 5)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))

def solve():
    sum=0
    lst = list(input())
    for _ in range(len(lst)):
        sum+=int(lst[_])
    if sum%9==0:
        print("YES")
    else:
        print("NO")
solve()

Compiler output:
a.cc:3:8: error: token "." is not valid in preprocessor expressions
    3 | # if(os.path.exists('input.txt')):
      |        ^
a.cc:3: error: unterminated #if
    3 | # if(os.path.exists('input.txt')):
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, os.path
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

import sys, os.path

if(os.path.exists('input.txt')):
    sys.stdin = open('input.txt',"r")
    sys.stdout = open('output.txt',"w")
else:
    break

sys.setrecursionlimit(10 ** 5)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))

def solve():
    sum=0
    lst = list(input())
    for _ in range(len(lst)):
        sum+=int(lst[_])
    if sum%9==0:
        print("YES")
    else:
        print("NO")
solve()

Compiler output:
a.cc:3:19: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    3 | if(os.path.exists('input.txt')):
      |                   ^~~~~~~~~~~
a.cc:4:22: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    4 |     sys.stdin = open('input.txt',"r")
      |                      ^~~~~~~~~~~
a.cc:5:23: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    5 |     sys.stdout = open('output.txt',"w")
      |                       ^~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, os.path
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

import sys, os.path

if(os.path.exists('input.txt')):
    sys.stdin = open('input.txt',"r")
    sys.stdout = open('output.txt',"w")

sys.setrecursionlimit(10 ** 5)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))

def solve():
    sum=0
    lst = list(input())
    for _ in range(len(lst)):
        sum+=int(lst[_])
    if sum%9==0:
        print("YES")
    else:
        print("NO")
solve()

Compiler output:
a.cc:3:19: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    3 | if(os.path.exists('input.txt')):
      |                   ^~~~~~~~~~~
a.cc:4:22: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    4 |     sys.stdin = open('input.txt',"r")
      |                      ^~~~~~~~~~~
a.cc:5:23: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    5 |     sys.stdout = open('output.txt',"w")
      |                       ^~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, os.path
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  string s;
  cin>>s;
  ll sum = 0;
  for(int i=0;i<s.size();i++){
    sum+=stoi(s[i]);
  }
  if(sum%9)
	  cout<<"No\n";
  else
      cout<<"Yes\n";
  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<iostream>
using namespace std;
int main(){
    char str[200010];
    cin>>str;
    int len=str.size();
    int sum=0;
    for(int i=0;i<len;i++)sum+=s[i]-'0';
    if(sum%9==0){
        cout<<"Yes";
    }else{
        cout<<"No";
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: request for member 'size' in 'str', which is of non-class type 'char [200010]'
    6 |     int len=str.size();
      |                 ^~~~
a.cc:8:32: error: 's' was not declared in this scope
    8 |     for(int i=0;i<len;i++)sum+=s[i]-'0';
      |                                ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    char str[200010];
    cin>>s;
    int len=s.size();
    int sum=0;
    for(int i=0;i<len;i++)sum+=str[i]-'0';
    if(sum%9==0){
        cout<<"Yes";
    }else{
        cout<<"No";
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 's' was not declared in this scope
    5 |     cin>>s;
      |          ^
Language: Java

import java.util.*;
class Main{

    public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int res =0;
    for(int i=0; i<s.length(); i++) {
    res += Integer.parseInt(s.charAt(i));
    res = res%9;
    }
    if(res==0)
    System.out.println("Yes");
    else
    System.out.println("No");
     //   System.out.println("Hello World");
    }
}


Compiler output:
Main.java:9: error: incompatible types: char cannot be converted to String
    res += Integer.parseInt(s.charAt(i));
                                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int sum=0;
  	string no;
  	cin >> no;
  	for(int i=0;i<no.lenght();i++){
    sum = sum + int(s[i])-48;
    }
  	if(sum%9==0)	cout <<"Yes\n";
  	else	cout <<"No\n"
  
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
    8 |         for(int i=0;i<no.lenght();i++){
      |                          ^~~~~~
      |                          length
a.cc:9:21: error: 's' was not declared in this scope
    9 |     sum = sum + int(s[i])-48;
      |                     ^
a.cc:12:30: error: expected ';' before 'return'
   12 |         else    cout <<"No\n"
      |                              ^
      |                              ;
   13 | 
   14 |         return 0;
      |         ~~~~~~
Language: C++

#include "pch.h"
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int main()
{

	int N;
	cin >> N;

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

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

#include <iostream>

int main(){
	char N[200010]; std::cin >> N;
	unsigned long long int sum{};
	for (auto i = 0; i < (sizeof(N) / sizeof(*N)); ++i){
		int n = (int)(N[i] - '0');
		sum += n;
	}
	if (sum % 9 == 0) std::cout << "Yes" << std::endl;
	else std::cout << "No" << std::endl;
	return 0;

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

#include <iostream>

int main(){
	char N[200010]; std::cin >> N;
	unsigned long long int sum{};
	for (int i = 0; i < (sizeof(N) / sizeof(*N)); ++i){
		int n = (int)(N[i] - '0');
		sum += n;
	}
	if (sum % 9 == 0) std::cout << "Yes" << std::endl;
	else std::cout << "No" << std::endl;
	return 0;

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

#include<bits/stdc++.h>
#define   endl   '\n'
#define   ll long long 
using namespace std;
 
char s[200010];
int main() {
  string s;
  cin >> s;
  ll sum  = 0;
  for (int i = 0; i < strlen(s); i++) {
  	sum += s[i]-'0';
  } 
  
  sum%9 == 0 ? cout << "No" : cout << "Yes";

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   11 |   for (int i = 0; i < strlen(s); i++) {
      |                              ^
      |                              |
      |                              std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/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:15:45: error: expected '}' at end of input
   15 |   sum%9 == 0 ? cout << "No" : cout << "Yes";
      |                                             ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#define   endl   '\n'
#define   ll long long 
using namespace std;

string s[200010];
int main() {
  string s;
  cin >> s;
  ll sum  = 0;
  for (int i = 0; i < strlen(s); i++) {
  	sum += s[i]-'0';
  } 
  
  sum%9 == 0 ? cout << "No" : cout << "Yes";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   11 |   for (int i = 0; i < strlen(s); i++) {
      |                              ^
      |                              |
      |                              std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |     int len = strlen(n);
      |                      ^
      |                      |
      |                      std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

    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:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%s",s);
      |         ^~~~~
a.cc:4:17: error: 'strlen' was not declared in this scope
    4 |         int len=strlen(s);
      |                 ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 |     char s[200010];
a.cc:8:13: error: 'puts' was not declared in this scope
    8 |             puts("Yes");
      |             ^~~~
a.cc:10:13: error: 'puts' was not declared in this scope
   10 |             puts("No");
      |             ^~~~
Language: C++

int main()
{
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  
  int s[200010];
  cin>>s;
  int len=strlen(s);
  
  for(int i=0;i<len;i++){
    int sum+=i;

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'ios_base' has not been declared
    3 |   ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
      |   ^~~~~~~~
a.cc:3:33: error: 'cin' was not declared in this scope
    3 |   ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
      |                                 ^~~
a.cc:3:45: error: 'cout' was not declared in this scope
    3 |   ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
      |                                             ^~~~
a.cc:4:9: error: 'chrono' has not been declared
    4 |   srand(chrono::high_resolution_clock::now().time_since_epoch().count());
      |         ^~~~~~
a.cc:4:3: error: 'srand' was not declared in this scope
    4 |   srand(chrono::high_resolution_clock::now().time_since_epoch().count());
      |   ^~~~~
a.cc:8:11: error: 'strlen' was not declared in this scope
    8 |   int len=strlen(s);
      |           ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | int main()
a.cc:11:12: error: expected initializer before '+=' token
   11 |     int sum+=i;
      |            ^~
a.cc:14:6: error: 'sum' was not declared in this scope
   14 |   if(sum%9=0) cout<<"Yes"
      |      ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (i = 0; i < n; i++)
#define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll long long
#define si(x) scanf("%d", &x)
#define sl(x) scanf("%lld", &x)
#define ss(s) scanf("%s", s)
#define pi(x) printf("%d\n", x)
#define pl(x) printf("%lld\n", x)
#define ps(s) printf("%s\n", s)
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
#define tr(it, a) for (auto it = a.begin(); it != a.end(); it++)
#define PI 3.1415926535897932384626
typedef pair<int, int> pii;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pii> vpii;
typedef vector<pl> vpl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
mt19937_64 rang(chrono::high_resolution_clock::now().time_since_epoch().count());
int rng(int lim)
{
  uniform_int_distribution<int> uid(0, lim - 1);
  return uid(rang);
}
int mpow(int base, int exp);
void ipgraph(int n, int m);
void dfs(int u, int par);

const int mod = 1'000'000'007;
const int N = 3e5, M = N;
//=======================

vi g[N];
int a[N];

void solve()
{
  int i, j, n, m;
}

int main()
{
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  
  int s[200010];
  cin>>s;
  int len=strlen(s);
  
  for(int i=0;i<len;i++){
    int sum+=i;

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


}

int mpow(int base, int exp)
{
  base %= mod;
  int result = 1;
  while (exp > 0)
  {
    if (exp & 1)
      result = ((ll)result * base) % mod;
    base = ((ll)base * base) % mod;
    exp >>= 1;
  }
  return result;
}

void ipgraph(int n, int m)
{
  int i, u, v;
  while (m--)
  {
    cin >> u >> v;
    u--, v--;
    g[u].pb(v);
    g[v].pb(u);
  }
}

void dfs(int u, int par)
{
  for (int v : g[u])
  {
    if (v == par)
      continue;
    dfs(v, u);
  }
}


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