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

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

int main(){
  
  
  
  
#include<bits/stdc++.h>

using namespace std;

int main()
{
long long int n;
  cin>>n;
  int rem;
 long long  int sum=0;
  while(n>0){
   rem = n%10;
    
    sum+=rem;
    
    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:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main()
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main()
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  
  
  
  
#include<bits/stdc++.h>

using namespace std;

int main()
{
long long long int n;
  cin>>n;
  int rem;
 long long  int sum=0;
  while(n>0){
   rem = n%10;
    
    sum+=rem;
    
    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:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main()
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main()
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  
  
  
  
#include<bits/stdc++.h>

using namespace std;

int main()
{
int n;
  cin>>n;
  int rem;
  int sum=0;
  while(n>0){
   rem = n%10;
    
    sum+=rem;
    
    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:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main()
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main()
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[200010];
  cin >> a;
  int n=stlen(a);
  int sum=0;
  for(int i=0;i<n;++i){
    sum+=a[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:6:9: error: 'stlen' was not declared in this scope; did you mean 'strlen'?
    6 |   int n=stlen(a);
      |         ^~~~~
      |         strlen
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[200010];
  cin >> a;
  int n=stren(a);
  int sum=0;
  for(int i=0;i<n;++i){
    sum+=a[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:6:9: error: 'stren' was not declared in this scope; did you mean 'strlen'?
    6 |   int n=stren(a);
      |         ^~~~~
      |         strlen
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
char s[200010];
scanf(%s,s);
int len=strlen(s);
int sum=0;
rep(i,len)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:14:7: error: expected primary-expression before '%' token
   14 | scanf(%s,s);
      |       ^
a.cc:15:9: error: 'strlen' was not declared in this scope
   15 | int len=strlen(s);
      |         ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<vector>
  +++ |+#include <cstring>
    7 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
char s[200010];
cin>>s;
len=strlen(s);
int sum=0;
rep(i,len)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:15:1: error: 'len' was not declared in this scope; did you mean 'mblen'?
   15 | len=strlen(s);
      | ^~~
      | mblen
a.cc:15:5: error: 'strlen' was not declared in this scope
   15 | len=strlen(s);
      |     ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<vector>
  +++ |+#include <cstring>
    7 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

int main(){
char s[20000000];
cin>>s;
len=strlen(s);
rep(i,len)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:3:1: error: 'cin' was not declared in this scope
    3 | cin>>s;
      | ^~~
a.cc:4:1: error: 'len' was not declared in this scope
    4 | len=strlen(s);
      | ^~~
a.cc:4:5: error: 'strlen' was not declared in this scope
    4 | 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:5:5: error: 'i' was not declared in this scope
    5 | rep(i,len)sum+=s[i]-'0';
      |     ^
a.cc:5:1: error: 'rep' was not declared in this scope
    5 | rep(i,len)sum+=s[i]-'0';
      | ^~~
a.cc:6:4: error: 'sum' was not declared in this scope
    6 | if(sum%9==0)cout<<"Yes"<<endl;
      |    ^~~
a.cc:6:13: error: 'cout' was not declared in this scope
    6 | if(sum%9==0)cout<<"Yes"<<endl;
      |             ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 | if(sum%9==0)cout<<"Yes"<<endl;
      |                          ^~~~
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout<<"No"<<endl;
      |      ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 | else cout<<"No"<<endl;
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;

int digit(int n){
  while(n!=0){
    int x,sum=0;
    x=n%10
    n/=10;
    sum+=x;
  }
  return sum;
}

int main(){

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

Compiler output:
a.cc: In function 'int digit(int)':
a.cc:13:11: error: expected ';' before 'n'
   13 |     x=n%10
      |           ^
      |           ;
   14 |     n/=10;
      |     ~      
a.cc:17:10: error: 'sum' was not declared in this scope
   17 |   return sum;
      |          ^~~
a.cc: In function 'int main()':
a.cc:22:8: error: 'N' was not declared in this scope
   22 |   cin>>N;
      |        ^
Language: C

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

int main()
{
int a[10000];
int i=0;
int sum=0;
printf("please input:");
for(i=0;i<10000;i++)
{scanf("%d",&a[i]);
sum=sum+a[i];
}
if(sum%9==0)
printf("Yes");
else
printf("No");


Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | printf("No");
      | ^~~~~~
Language: C

#include<iostream>


using namespace std;
int main(){
	long long n, sum=0;
	cin>>n;
	while(1){
		sum+=n%10;
		if(n<10)break;
		n/=10;

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

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

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

    String s = sc.next();

    int ans = 0;
    for(int i = s.length(); i > 0; i--) {
      ans += Integer.parseInt(s.substring(i-1, i));
    }
    
    if(a%9 == 0) {
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:13: error: cannot find symbol
    if(a%9 == 0) {
       ^
  symbol:   variable a
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string y;
  int i;u
  for(i=0;i<i.size();i++)
  {
    u+=a[i];
  }
  if(u%9==0)
    cout<<"YES";
  else
    cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'u' was not declared in this scope
    6 |   int i;u
      |         ^
a.cc:7:15: error: request for member 'size' in 'i', which is of non-class type 'int'
    7 |   for(i=0;i<i.size();i++)
      |               ^~~~
a.cc:7:25: error: expected ';' before ')' token
    7 |   for(i=0;i<i.size();i++)
      |                         ^
      |                         ;
Language: C++

n = str(input())
s = 0
for x in n:
  s += int(x)
if s % 9 == 0:
  print('Yes')
else :
  print('No')

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

int main()
{
    ll N,temp,a,num=0;
    cin>> N;
    temp=N;
    while(temp!=0){
        a=temp%10;
        num = num + a - 0 ;
        temp = temp / 10 ;
        
    }
    
    
    if(num%9 == 0){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'll' was not declared in this scope
    3 |     ll N,temp,a,num=0;
      |     ^~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>> N;
      |     ^~~
a.cc:4:11: error: 'N' was not declared in this scope
    4 |     cin>> N;
      |           ^
a.cc:5:5: error: 'temp' was not declared in this scope
    5 |     temp=N;
      |     ^~~~
a.cc:7:9: error: 'a' was not declared in this scope
    7 |         a=temp%10;
      |         ^
a.cc:8:9: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |         num = num + a - 0 ;
      |         ^~~
      |         enum
a.cc:14:8: error: 'num' was not declared in this scope; did you mean 'enum'?
   14 |     if(num%9 == 0){
      |        ^~~
      |        enum
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<"Yes";
      |         ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<"No";
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  int x = 0, f = 0;
  for(int i = 0; i < s.size(); i++){
    if(9%s[i] == 0){
      x++;
    }
    else {
     f = 1;
      break;
  }
    if(f){
      cout << "NO" << endl;
    }
    else
      cout << "YES"<< endl;
}

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

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

#include<bits/stdc++.h>
using namespace std;
vector<int>a;
int main(){
	int s=0;
	a.resize(20001);
	for(int i=0;i<20001;i++){
		cin>>a[i];
		s+=a[i];
	}
	if(s%9==0)cout<<"Yes";
	else cout<<"NO";
	return 0;

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

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

int main(){
  int N, count;
  cin >> N;
  
  for(int i=0; i<200000; i++){
    count += N % 10
    N = (N - N % 10)/10
  }
  
  if(count % 9==0) cout << 'Yes' << endl;
  else cout << 'No' << endl;
  
}
  

Compiler output:
a.cc:13:28: warning: multi-character character constant [-Wmultichar]
   13 |   if(count % 9==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:9:20: error: expected ';' before 'N'
    9 |     count += N % 10
      |                    ^
      |                    ;
   10 |     N = (N - N % 10)/10
      |     ~
Language: C++

int main()
{
    long long 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:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "No" << endl;
      |         ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

long main()
{
    long n;
    cin >> n;
    if (n % 9 == 0) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "No" << endl;
      |         ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

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

int main(){
    long long n;
    cin >> n;
    vector<int> a(n);
    rep(i,n) cin >> a[i];
    long long ans = 0;
    int maxi = 0;
    rep(i,n){
        maxi = max(maxi,a[i]);
        int Bi = maxi;
        ans += Bi - a[i];
    }

    cout << ans << endl;

    return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ')' before 'cin'
    9 |     rep(i,n) cin >> a[i];
      |              ^~~
a.cc:2:21: note: to match this '('
    2 | #define rep(i,n) for(int i = 0; i < (n); i++
      |                     ^
a.cc:9:5: note: in expansion of macro 'rep'
    9 |     rep(i,n) cin >> a[i];
      |     ^~~
a.cc:12:13: error: expected ')' before '{' token
   12 |     rep(i,n){
      |             ^
a.cc:2:21: note: to match this '('
    2 | #define rep(i,n) for(int i = 0; i < (n); i++
      |                     ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,n){
      |     ^~~
Language: C++

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

void solve()
{
  string s;
  cin>>s;
  int sum=0;
 while(s[i]!='\0')
  {
    sum+=s[i]-'0';
   
   i++;
  }
  if(sum%9==0)
    cout<<"Yes";
  else
    cout<<"No";
  return;
  
  
}
int main()

{
   solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:9:10: error: 'i' was not declared in this scope
    9 |  while(s[i]!='\0')
      |          ^
Language: C++

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

void solve()
{
  string s;
  cin>>s;
  int sum=0;
  while(s[i]!='\0'
  {
    sum+=s[i]-'0';
  }
  if(sum%9==0)
    cout<<"Yes";
  else
    cout<<"No";
  return;
  
  
}
int main()

{
   solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:9:11: error: 'i' was not declared in this scope
    9 |   while(s[i]!='\0'
      |           ^
a.cc:9:19: error: expected ')' before '{' token
    9 |   while(s[i]!='\0'
      |        ~          ^
      |                   )
   10 |   {
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p = pair<int, int>;
#define INF 1001001001
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repX(i, n ,x) for (int i = x; i < (int)(n); i++)
#define repBack(i, n) for (int i = n; i >= 0; i--)
#define dup(x,y) (((x)+(y)-1)/(y))

int main() {
	double 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:14:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |         if(N%9==0)cout << "Yes" << endl;
      |            ~^~
      |            | |
      |            | int
      |            double
Language: C


int main(void) {
	// your code goes here
	int N;
	scanf("%d",&N);
	if(9N=0){
	printf("Yes");
	}else{
	printf("No");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d",&N);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d",&N);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:12: error: invalid suffix "N" on integer constant
    6 |         if(9N=0){
      |            ^~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("Yes");
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("No");
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void) {
	// your code goes here
	int N;
	scanf("%d",&N);
	if(N%9=0){
	printf("Yes");
	}else{
	printf("No");}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",&N);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",&N);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:15: error: lvalue required as left operand of assignment
    5 |         if(N%9=0){
      |               ^
main.c:6:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |         printf("Yes");
      |         ^~~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |         printf("No");}
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void) {
	// your code goes here
	int N,a;
	scanf("%d",&N,&a);
	if(N=9a){
	printf("Yes");
	}else{
	printf("No");}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:14: error: invalid suffix "a" on integer constant
    7 |         if(N=9a){
      |              ^~
Language: C

int main(void) {
	// your code goes here
	int N,a;
	scanf("%d",&N);
	if(N=9a){
	printf("Yes");
	}else{
	printf("No");}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",&N);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",&N);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:14: error: invalid suffix "a" on integer constant
    5 |         if(N=9a){
      |              ^~
main.c:6:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |         printf("Yes");
      |         ^~~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |         printf("No");}
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C


int main(void) {
	// your code goes here
	int,N,a;
	scanf("%d",&N,&a);
	if(9a=N){
	printf("Yes");
	}else{
	printf("No");}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected identifier or '(' before ',' token
    4 |         int,N,a;
      |            ^
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d",&N,&a);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d",&N,&a);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:21: error: 'N' undeclared (first use in this function)
    5 |         scanf("%d",&N,&a);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: 'a' undeclared (first use in this function)
    5 |         scanf("%d",&N,&a);
      |                        ^
main.c:6:12: error: invalid suffix "a" on integer constant
    6 |         if(9a=N){
      |            ^~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("Yes");
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("No");}
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C


int main(void) {
	// your code goes here
	int,N,a,b;
	scanf("%d",&N,&a,&b);
	if(9a=N){
	printf("Yes");
	}else{
	printf("No");}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected identifier or '(' before ',' token
    4 |         int,N,a,b;
      |            ^
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d",&N,&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d",&N,&a,&b);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:21: error: 'N' undeclared (first use in this function)
    5 |         scanf("%d",&N,&a,&b);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: 'a' undeclared (first use in this function)
    5 |         scanf("%d",&N,&a,&b);
      |                        ^
main.c:5:27: error: 'b' undeclared (first use in this function)
    5 |         scanf("%d",&N,&a,&b);
      |                           ^
main.c:6:12: error: invalid suffix "a" on integer constant
    6 |         if(9a=N){
      |            ^~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("Yes");
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("No");}
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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

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

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

int main(){
  int64 a;
  cin >>a;
  int b=0,c=0;
  while(true){
    a=a/10;
    b=a%10;
    c+=b;
    if(a<10) {
      if((c+b)%9==0){
        cout << "Yes" <<endl;
        break;
      }
      else {
        cout <<"No" <<endl;
        break;
      }
    }
  }
}


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

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

int main(){
  int_64 a;
  cin >>a;
  int b=0,c=0;
  while(true){
    a=a/10;
    b=a%10;
    c+=b;
    if(a<10) {
      if((c+b)%9==0){
        cout << "Yes" <<endl;
        break;
      }
      else {
        cout <<"No" <<endl;
        break;
      }
    }
  }
}


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

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

int main(){
  int_64t a;
  cin >>a;
  int b=0,c=0;
  while(true){
    a=a/10;
    b=a%10;
    c+=b;
    if(a<10) {
      if((c+b)%9==0){
        cout << "Yes" <<endl;
        break;
      }
      else {
        cout <<"No" <<endl;
        break;
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
    5 |   int_64t a;
      |   ^~~~~~~
      |   int64_t
a.cc:6:9: error: 'a' was not declared in this scope
    6 |   cin >>a;
      |         ^
Language: Java

import java.util.Scanner;

public  class test12{
	public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	String n = stdIn.next();
	int ans = 0;
	for(int i=0;i<n.length();i++){
		ans+= n.charAt(i)-'0';
	}
if(ans%9==0){
System.out.println("Yes");
}
else {
System.out.println("No");
}

}
}

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

import java.util.Scanner;

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


Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class?Main {
            ^
1 error
Language: C++

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

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

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

#include <stdio.h> #include<string.h> #include<math.h> int main() { int a,b,c,d,e,f,g,h,i,j,s=0; scanf("%d",&a); if(a%9==0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> #include<string.h> #include<math.h> int main() { int a,b,c,d,e,f,g,h,i,j,s=0; scanf("%d",&a); if(a%9==0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  	ios::sync_with_stdio(false);
  	cin.tie(nullptr);
	string s;
  	double sum=0;
  	cin>>s;
  	for(int i=0;i<s.length();i++){
    	sum=s[i]-'0';
      	sum%=9;
    }
  	if(sum==0)
      	cout<<"Yes\n";
  	else
      	cout<<"No\n";
  	return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |         sum%=9;
      |         ~~~^~~
a.cc:12:12: note:   in evaluation of 'operator%=(double, int)'
Language: Java

import java.util.Scanner;
/*
 * @author Parvez
 */
public class codeforces {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);

    int sm=0;
    String s=scn.next();
    for(int i=0;i<s.length();i++){
        sm+=s.charAt(i)-'0';
    }
    if(sm%9==0){
        System.out.print("Yes");
    }
    else System.out.print("No");

}}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	char N[200010];
  	cin >> N;
  	int n = strlen(N);
  	int sum = 0;
  	for(int i = 0; i<n; i++){
     sum += N.at(i) - '0';
    }
  sum %= 9;
  if(sum == 0) cout << "Yes" << endl;
  if(sum != 0) cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: request for member 'at' in 'N', which is of non-class type 'char [200010]'
   10 |      sum += N.at(i) - '0';
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	char N;
  	cin >> N;
  	int n = strlen(N);
  	int sum = 0;
  	for(int i = 0; i<n; i++){
     sum += N.at(i) - '0';
    }
  sum %= 9;
  if(sum == 0) cout << "Yes" << endl;
  if(sum != 0) cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |         int n = strlen(N);
      |                        ^
      |                        |
      |                        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:10:15: error: request for member 'at' in 'N', which is of non-class type 'char'
   10 |      sum += N.at(i) - '0';
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	cher N;
  	cin >> N;
  	int n = strlen(N);
  	int sum = 0;
  	for(int i = 0; i<n; i++){
     sum += N.at(i) - '0';
    }
  sum %= 9;
  if(sum == 0) cout << "Yes" << endl;
  if(sum != 0) cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |         cher N;
      |         ^~~~
      |         char
a.cc:6:16: error: 'N' was not declared in this scope
    6 |         cin >> N;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	cher N;
  	cin >> N;
  	int n = strlen(N);
  	int sum = 0;
  	for(int i = 0; i<n; i++){
     sum += N.at(i) - '0'
    }
  sum %= 9;
  if(sum == 0) cout << "Yes" << endl;
  if(sum != 0) cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |         cher N;
      |         ^~~~
      |         char
a.cc:6:16: error: 'N' was not declared in this scope
    6 |         cin >> N;
      |                ^
Language: C++

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

int main(){
	int N;
  	cin >> N;
  	string n = to_string(N);
  	int sum = 0;
  	for(int i = 0; i<N; i++){
     if(n.at(i) == "0") sum += 0;
     if(n.at(i) == "1") sum += 1;
      if(n.at(i) == "2") sum += 2;
      if(n.at(i) == "3") sum += 3;
      if(n.at(i) == "4") sum += 4;
      if(n.at(i) == "5") sum += 5;
      if(n.at(i) == "6") sum += 6;
      if(n.at(i) == "7") sum += 7;
      if(n.at(i) == "8") sum += 8;
      if(n.at(i) == "9") sum += 9;
    }
  sum %= 9;
  if(sum == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |      if(n.at(i) == "0") sum += 0;
      |         ~~~~~~~~^~~~~~
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |      if(n.at(i) == "1") sum += 1;
      |         ~~~~~~~~^~~~~~
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |       if(n.at(i) == "2") sum += 2;
      |          ~~~~~~~~^~~~~~
a.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       if(n.at(i) == "3") sum += 3;
      |          ~~~~~~~~^~~~~~
a.cc:14:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if(n.at(i) == "4") sum += 4;
      |          ~~~~~~~~^~~~~~
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |       if(n.at(i) == "5") sum += 5;
      |          ~~~~~~~~^~~~~~
a.cc:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |       if(n.at(i) == "6") sum += 6;
      |          ~~~~~~~~^~~~~~
a.cc:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if(n.at(i) == "7") sum += 7;
      |          ~~~~~~~~^~~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if(n.at(i) == "8") sum += 8;
      |          ~~~~~~~~^~~~~~
a.cc:19:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |       if(n.at(i) == "9") sum += 9;
      |          ~~~~~~~~^~~~~~
Language: C

#include <stdio.h>
#include <string.h>
 
int main(){
  char N[200001];
  scanf("%s", N);
 
  int S=0;
  int k=0;
  int L=strlen(N);
  
  while(k<L){
    S=S+N[k]-'0';
    k++;
  }
  
  if(S%9==0) printf("Yes\n");
  else print("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:8: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |   else print("No\n");
      |        ^~~~~
      |        printf
Language: C

#include <stdio.h>
int main(void){
  int i,s;
  char n[200001];
  setbuf(stdout,NULL);
  for(i=1;n[i]=="\n";i++){
    scanf("%c",&n[i]);
    s+=n[i]-"0";
  }
  if(s%9==0){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: warning: comparison between pointer and integer
    6 |   for(i=1;n[i]=="\n";i++){
      |               ^~
main.c:8:12: error: invalid operands to binary - (have 'int' and 'char *')
    8 |     s+=n[i]-"0";
      |        ~~~~^
      |         |  |
      |         |  char *
      |         char
Language: C

#include <stdio.h>
int main(void){
  double n;
  int s=0;
  setbuf(stdout,NULL);
  scanf("%lf",&n);
  while(n!=0){
    s+=n%10;
    n=n/10;
  }
  if(s%9==0){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: invalid operands to binary % (have 'double' and 'int')
    8 |     s+=n%10;
      |         ^
Language: C

#include <stdio.h>
int main(void){
  int n,s=0;
  setbuf(stdout,NULL);
  scanf("%d",&n);
  while(n\=0){
    s+=n%10;
    n=n/10;
  }
  if(s%9==0){
    printf("Yes");
  }else{
    printf("No");
  }

Compiler output:
main.c: In function 'main':
main.c:6:10: error: stray '\' in program
    6 |   while(n\=0){
      |          ^
main.c:14:3: error: expected declaration or statement at end of input
   14 |   }
      |   ^
Language: C++

def solve(s):
  suma = 0
  for x in s:
    suma += int(x)
  if suma % 9 == 0:
    return True
  return False

s = input()
x = solve(s)
if x == True: print("Yes")
else: print("No")

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def solve(s):
      | ^~~
Language: Java

import java.util.Scanner;
public class s
{
  public static void main(String[] args)
  {
      int a=0;
      int s=0;
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    int temp=n;
    while(temp>0)
    {
        a++;
        temp=temp/10;
    }
    temp=n;
    for(int i=0;i<a;i++)
    {
        s=s+(temp%10);
        temp=temp/10;
    }
    if(s%9==0)
    System.out.println("Yes");
    else
    System.out.println("No");
    
    
    
    
  }}

Compiler output:
Main.java:2: error: class s is public, should be declared in a file named s.java
public class s
       ^
1 error
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:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%s",s);
      |     ^~~~~
a.cc:4:13: 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:9: error: 'puts' was not declared in this scope
    8 |         puts("Yes");
      |         ^~~~
a.cc:10:9: error: 'puts' was not declared in this scope
   10 |         puts("No");
      |         ^~~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: request for member 'at' in 'num', which is of non-class type 'int'
    9 |     ans += num.at(i);
      |                ^~
Language: C++

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


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  int len = str.length(s);
  int ans =0;
  cin >> s;
  for(int i=0;i<len;i++){
    ans += s.at(i);
  }
  if(ans%9) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   int len = str.length(s);
      |             ^~~
      |             std
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  int len = strlen(s);
  int ans =0;
  cin >> s;
  for(int i=0;i<len;i++){
    ans += s.at(i);
  }
  if(ans%9) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    5 |   int 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;
  int len = strlen(s);
  int ans =0;
  cin >> s;
  for(int i=0;i<len;i++){
    ans += s.at(i);
  }
  if(ans%9) cout << "Yes" << endl;
  else cout << "No" << endl;
}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
	string s;
  cin >> s;
  int sum = 0;
  for(auto x : s) {
  	sum = (sum + x - '0')%9;
  }
  cout << (sum ? : "No" : "Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: operands to '?:' have different types 'int' and 'const char*'
   12 |   cout << (sum ? : "No" : "Yes");
      |            ~~~~^~~~~~~~
a.cc:12:24: error: expected ')' before ':' token
   12 |   cout << (sum ? : "No" : "Yes");
      |           ~            ^~
      |                        )
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int MOD=1000000007;
#define ll long long
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL);
int main()
{
ll s=0,i,l;
char n[2000010];
cin>>n;
l=n.length();
for(i=0;i<l;i++)
{
	s=s+n[i];
}



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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: request for member 'length' in 'n', which is of non-class type 'char [2000010]'
   11 | l=n.length();
      |     ^~~~~~
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: In function 'int main()':
a.cc:14:17: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   14 |     return cout << "Yes";
      |            ~~~~~^~~~~~~~
      |                 |
      |                 std::basic_ostream<char>
a.cc:16:16: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   16 |     return cout<< "No";
      |            ~~~~^~~~~~~
      |                |
      |                std::basic_ostream<char>
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: 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:16:16: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   16 |     return cout<< " No ";
      |            ~~~~^~~~~~~~~
      |                |
      |                std::basic_ostream<char>
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: 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:16:16: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   16 |     return cout<< " No " ;
      |            ~~~~^~~~~~~~~
      |                |
      |                std::basic_ostream<char>