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

#inlucd <stdio.h>

int main()
{
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF )
        printf("%d\n", a+b );
    return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlucd
    1 | #inlucd <stdio.h>
      |  ^~~~~~
main.c: In function 'main':
main.c:6:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     while( scanf("%d %d", &a, &b) != EOF )
      |            ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlucd <stdio.h>
main.c:6:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     while( scanf("%d %d", &a, &b) != EOF )
      |            ^~~~~
main.c:6:12: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:38: error: 'EOF' undeclared (first use in this function)
    6 |     while( scanf("%d %d", &a, &b) != EOF )
      |                                      ^~~
main.c:6:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d\n", a+b );
      |         ^~~~~~
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'
Language: C

int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}

Compiler output:
main.c: In function 'main':
main.c:1:26: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
      |                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
      |                          ^~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:47: error: 'EOF' undeclared (first use in this function)
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
      |                                               ^~~
main.c:1:47: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:47: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:52: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
      |                                                    ^~~~~~
main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:52: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: error: expected ')' before 'a'
    1 | int main(){int a,b;while(scanf("%d%d",&a,&b)!=EOF){printf("%d\n"a+b);}return 0;}
      |                                                          ~      ^
      |                                                                 )
Language: C

#include<stdio.h>
int main()
{
 int a,b;
 while(scanf("%d %d",&a,&b!=EOF){
          printf("%d\n",(a+b));
         }
 return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:5:27: warning: comparison between pointer and integer
    5 |  while(scanf("%d %d",&a,&b!=EOF){
      |                           ^~
main.c:5:33: error: expected ')' before '{' token
    5 |  while(scanf("%d %d",&a,&b!=EOF){
      |       ~                         ^
      |                                 )
main.c:9:2: error: expected expression before '}' token
    9 |  }
      |  ^
Language: C

#include <stdio.h>

int main() {
椀nt a, b;
while(scanf("%d %d", &a, &b) != EOF) {
printf("%dn", a + b);
紀
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: unknown type name '\U00006900nt'
    4 | 椀nt a, b;
      | ^~~~
main.c:7:1: error: '\U00007d00' undeclared (first use in this function)
    7 | 紀
      | ^~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: expected ';' before 'return'
    7 | 紀
      |   ^
      |   ;
    8 | return 0;
      | ~~~~~~
main.c:9:1: error: expected declaration or statement at end of input
    9 | }
      | ^
Language: C

console.log('Hello World');

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | console.log('Hello World');
      |        ^
main.c:1:13: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    1 | console.log('Hello World');
      |             ^~~~~~~~~~~~~
Language: C

A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'B' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:32: error: 'EOF' undeclared (first use in this function)
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      |                                ^~~
main.c:1:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:42: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | A;main(B){scanf("%d%d",&A,&B)!=EOF||main(printf("%d\n",A+B));}
      |                                          ^~~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: expected ';' before string constant
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                                   ^~~~~~~~~~~~~~~
      |                                   ;
main.c:1:52: error: stray '\' in program
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                                                    ^
main.c:1:54: warning: missing terminating " character
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                                                      ^
main.c:1:54: error: missing terminating " character
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      |                                                      ^~~~~~~~~~~~~~~~~
main.c:1:1: error: expected declaration or statement at end of input
    1 | main(a,b){for(;scanf("%d%d",&a,&b)"=EOF;)printf("%d\n",a+b);return 0;}
      | ^~~~
Language: C

include <stdio.h>

int main(){
  int a,b;

  scanf("%d %d",&a,&b);

  printf("%d\n",a+b);

  return 0;
}

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

#include <stdio.h>

int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF)
    printf("%d\n",a+b);

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected declaration or statement at end of input
    6 |     printf("%d\n",a+b);
      |     ^~~~~~
Language: C

#include <stdio.h>
int main()
{
    while(scanf("%d,%d",&a,&b)!=EOF)
    {
      Printf("%d\n",a+b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: 'a' undeclared (first use in this function)
    4 |     while(scanf("%d,%d",&a,&b)!=EOF)
      |                          ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: 'b' undeclared (first use in this function)
    4 |     while(scanf("%d,%d",&a,&b)!=EOF)
      |                             ^
main.c:6:7: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |       Printf("%d\n",a+b);
      |       ^~~~~~
      |       printf
Language: C++

import java.util.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void doIt() {
		while(sc.hasNext()) {
			System.out.println(sc.nextInt() + sc.nextInt());
		}
	}
	public static void main(String[] args) {
		new Main().doIt();
	}

}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#incude<iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude<iostream>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<a+b<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |   cout<<a+b<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude<iostream>
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c
    while ( 1 ) {
    cin >> a >>b ;
    c = a+b;
    cout << c << endl;
    if ( cin.eof() ) { break; }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'while'
    5 |     while ( 1 ) {
      |     ^~~~~
Language: C++

#include<stdio.h>

int main(){
    int a, b;
    while( scanf_s("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |     while( scanf_s("%d %d", &a, &b) != EOF ){
      |            ^~~~~~~
      |            scanf
Language: C++

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

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

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


#include<stdio.h>

int main(){
    int a, b;
    while( scanf(%d

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before '%' token
    6 |     while( scanf(%d
      |                  ^
a.cc:6:19: error: 'd' was not declared in this scope
    6 |     while( scanf(%d
      |                   ^
a.cc:6:20: error: expected ')' at end of input
    6 |     while( scanf(%d
      |          ~         ^
      |                    )
a.cc:6:20: error: expected statement at end of input
a.cc:6:20: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>

int main(){
    int A << std::cin;
    int B << std::cin;
    std::cout << A+B << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before '<<' token
    4 |     int A << std::cin;
      |           ^~
a.cc:5:11: error: expected initializer before '<<' token
    5 |     int B << std::cin;
      |           ^~
a.cc:6:18: error: 'A' was not declared in this scope
    6 |     std::cout << A+B << std::endl;
      |                  ^
a.cc:6:20: error: 'B' was not declared in this scope
    6 |     std::cout << A+B << std::endl;
      |                    ^
Language: C++

#include <studio.h>

int main(){
int x,y;

while(scanf("%d %d",x, y) != EOF){
printf("%d\n", x + y);
}

}

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

#include <studio.h>

int main(){
int x,y;

while(scanf("%d %d",&x, &y) != EOF){
printf("%d\n", x + y);
}

}

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

#include <studio.h>

int main(){
int x,y;

while(scanf("%d %d",&x, &y) != EOF){
printf("%d\n", x + y);
}
return 0;
}

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

#include<cstdio>
using namespace std;
int main(void)
{
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF){
        printf("%d\n",a+b);
    }
    return 0;

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

#include<stdio.h>
int main(){
	
	int a,b;
	while (scanf_s("%d%d", &a, &b)!=EOF){
		printf("%d\n", a + b);
	}
	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         while (scanf_s("%d%d", &a, &b)!=EOF){
      |                ^~~~~~~
      |                scanf
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ')' before ';' token
    6 |     while( cin>>a>>b; ){
      |          ~          ^
      |                     )
a.cc:6:23: error: expected primary-expression before ')' token
    6 |     while( cin>>a>>b; ){
      |                       ^
Language: C++

#include <cstdio>

using namespace std;

int main() {
    int a, b;
    while (2 == scanf("%d %d", &a, &b)) {
        printf("%d
", a + b);
    }
}

Compiler output:
a.cc:8:16: warning: missing terminating " character
    8 |         printf("%d
      |                ^
a.cc:8:16: error: missing terminating " character
    8 |         printf("%d
      |                ^~~
a.cc:9:1: warning: missing terminating " character
    9 | ", a + b);
      | ^
a.cc:9:1: error: missing terminating " character
    9 | ", a + b);
      | ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
Language: C++

main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}
      | ^~~~
a.cc: In function 'int main()':
a.cc:1:23: error: 'scanf' was not declared in this scope
    1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}
      |                       ^~~~~
a.cc:1:45: error: 'printf' was not declared in this scope
    1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}
      |                                             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){int a,b;while(~scanf("%d %d",&a,&b)){printf("%d\n",a+b);}}
Language: C++

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

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

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

main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}

Compiler output:
a.cc:1:12: error: 'b' has not been declared
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |            ^
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      | ^~~~
a.cc:1:1: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
a.cc: In function 'int main(int, int)':
a.cc:1:38: error: 'b' was not declared in this scope
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                                      ^
a.cc:1:21: error: 'scanf' was not declared in this scope
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                     ^~~~~
a.cc:1:42: error: 'printf' was not declared in this scope
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                                          ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(int a,b){for(;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
Language: C++

#include <iostream>

int main()
{
while(c != EOF)    
{int a,b;
    std::cin >> a;
    std::cin >> b;

    std::cout << a + b << std::endl;

    return 0;
}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'c' was not declared in this scope
    5 | while(c != EOF)
      |       ^
Language: C++

include <iostream>
using namespace std;

int main(){

int a, b;
cin >> a >> b;
cout << a+b << endl;
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin >> a >> b;
      | ^~~
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout << a+b << endl;
      | ^~~~
a.cc:8:16: error: 'endl' was not declared in this scope
    8 | cout << a+b << endl;
      |                ^~~~
Language: C++

#include<iostream>
using namespace std;

int main ()
{
    while(cin >> a >> b)
    cout <<  a + b << endl;
    return 0;
}

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

out=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
	        out.append(k[0]+k[1])
	except:
		break

for i in out:
	print(i)

Compiler output:
a.cc:1:1: error: 'out' does not name a type
    1 | out=[]
      | ^~~
Language: C++

trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra

Compiler output:
a.cc:1:1: error: 'trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra' does not name a type
    1 | trf6tf67tf7itf7tfyitgytfygvytrdtrdtesrfdresfdrewrfdrrdzra
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include <cstdio>

using namespace std;

int main() {
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF) {
		printf("%d\n", a + b);
	return 0;
}

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

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

int main(int args, char **ppArgs)
{
	__asm volatile
	(
		"sub		$(12 + 8 + 8 + 4),	%esp					\n\t"	// (arg[0:2], a, b, "%d %d\0\0\0", "%d\n")
		"movl	$0x25206425,	(12 + 8 + 0)(%esp)	\n\t"
		"movl	$0x00000064,	(12 + 8 + 4)(%esp)	\n\t"	// "%d %d"
		"movl	$0x000A6425,	(12 + 8 + 8 + 0)(%esp)	\n\t"	// "%d\n"
		
		"L_Input:	\n\t"
		"lea		(12 + 8)(%esp),	%eax			\n\t"
		"movl	%eax,	0(%esp)	\n\t"
		"sub		$4,	%eax		\n\t"
		"movl	%eax,	4(%esp)	\n\t"
		"sub		$4,	%eax		\n\t"
		"movl	%eax,	8(%esp)	\n\t"
		"call		_scanf	\n\t"
		"cmp		$0xFFFFFFFF,	%eax	\n\t"
		"jz		L_Exit	\n\t"
		
		"L_Print:	\n\t"
		"lea		(12 + 8 + 8)(%esp),	%eax			\n\t"
		"movl	%eax,	0(%esp)	\n\t"
		"movl	(12 + 0)(%esp),	%eax	\n\t"
		"movl	(12 + 4)(%esp),	%ebx	\n\t"
		"add		%ebx,	%eax	\n\t"
		"movl	%eax,	4(%esp)	\n\t"
		"call		_printf	\n\t"
		"jmp	L_Input	\n\t"
		
		"L_Exit:	\n\t"
		"add		$(12 + 8 + 8 + 4),	%esp					\n\t"
	);
}

Compiler output:
/usr/bin/ld: /tmp/ccNweUs1.o: in function `L_Input':
a.cc:(.text+0x43): undefined reference to `_scanf'
/usr/bin/ld: /tmp/ccNweUs1.o: in function `L_Print':
a.cc:(.text+0x67): undefined reference to `_printf'
collect2: error: ld returned 1 exit status
Language: C++

#include <cardio>
int main(){
int a, b;

while(scanf("%d%d",&a,&b) != EOF){
printf("%d\n",a+b);
}

return 0;
}

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

#include <iostream>
 
int main(void){
  int a,b;
  while(cin){
    std::cin >> a >> b;
    std::cout << a+b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   while(cin){
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     std::cout << a+b << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        cout<<a+b<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope
    4 |     while(cin>>a>>b){
      |           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout<<a+b<<endl;
      |         ^~~~
a.cc:5:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |         cout<<a+b<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ')' before ';' token
    7 |     while(cin >> a >> b;)
      |          ~             ^
      |                        )
a.cc:7:25: error: expected primary-expression before ')' token
    7 |     while(cin >> a >> b;)
      |                         ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before '{' token
    7 | while{cin>>a>>b;
      |      ^
      |      (
a.cc:7:6: error: expected primary-expression before '{' token
a.cc:7:6: error: expected ')' before '{' token
    7 | while{cin>>a>>b;
      |      ^
      |      )
Language: C++

a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | a;main(b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
      |       ^
Language: C++

#include <iostream>using namespace std;int main(){    int a,b;    cin >> a >> b;    cout << a+b << endl;    return 0;}

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main(){    int a,b;    cin >> a >> b;    cout << a+b << endl;    return 0;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main(){    int a,b;    cin >> a >> b;    cout << a+b << endl;    return 0;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)      cout<<a+b<<endl;    return 0;}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)      cout<<a+b<<endl;    return 0;}
      |                         ^~~~~~~~~
a.cc:1:9: fatal error: iostream>usin: No such file or directory
    1 | #include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)      cout<<a+b<<endl;    return 0;}
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}

Compiler output:
a.cc:1:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |         ^~~~
a.cc: In function 'int main()':
a.cc:1:22: error: 'scanf' was not declared in this scope
    1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |                      ^~~~~
a.cc:1:42: error: 'printf' was not declared in this scope
    1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |                                          ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int a,b;main(){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
Language: C++

#import<cstdio>
int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |     ^~~~
a.cc:2:10: error: 'a' was not declared in this scope
    2 | int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |          ^
a.cc:2:12: error: 'b' was not declared in this scope
    2 | int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |            ^
a.cc:2:13: error: expression list treated as compound expression in initializer [-fpermissive]
    2 | int main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |             ^
Language: C++

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
int N=100000000;
while(N--){}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: 'scanf' was not declared in this scope
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |            ^~~~~
a.cc:3:38: error: 'EOF' was not declared in this scope
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |                                      ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:4:9: error: 'printf' was not declared in this scope
    4 |         printf("%d\n", a + b);
      |         ^~~~~~
a.cc:4:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iosteam>
int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
int N=100000000;
while(N--){}
    return 0;
}

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

#include <cstdio>
int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
long long N=1000000000000LL;
int s=0;
while(N--){s+=N;}
cout<<s<<endl;
    return 0;
}

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

#include <iostream>
#include <cstdio>
int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
long long N=1000000000000LL;
int s=0;
while(N--){s+=N;}
cout<<s<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<s<<endl;
      | ^~~~
      | std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:10: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 | cout<<s<<endl;
      |          ^~~~
      |          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |     ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         while(cin >> a >> b){
      |               ^~~
      |               std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |                 cout << a+b << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |                 cout << a+b << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int a,b,c;
int main(){
while(std::cin>>a>>b){
std::cout<<a+b+c<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | std::cout<<a+b+c<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int a,b;
int main(){
while(std::cin>>a>>b){
int c=0;
for(ll i=0;i<10000000000LL;i++)c++;
std::cout<<a+b+c/20000000000LL<<std::endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 | for(ll i=0;i<10000000000LL;i++)c++;
      |     ^~
a.cc:6:12: error: 'i' was not declared in this scope
    6 | for(ll i=0;i<10000000000LL;i++)c++;
      |            ^
Language: C++

#include <iostream>
int a,b;
int main(){
while(std::cin>>a>>b){
if(a+b>=1000000000)cout<<"fijeoawgjewjoagj";
else cout<<a+b<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | if(a+b>=1000000000)cout<<"fijeoawgjewjoagj";
      |                    ^~~~
      |                    std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | else cout<<a+b<<endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | else cout<<a+b<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
long long a,b;
int main(){
while(std::cin>>a>>b){
long long c=0;
while(c<10000000000LL)c++;
else std::cout<<(a+b+c)%c<<std::endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'else' without a previous 'if'
    7 | else std::cout<<(a+b+c)%c<<std::endl;
      | ^~~~
Language: C++

#include <iostream>
long long a,b;
int main(){
while(std::cin>>a>>b){
	long long c=0;
	while(c<a+b)c++;
	cout<<c<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<c<<endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout<<c<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

long long a,b;

int main(){
	while(cin>>a>>b){
		if(a<0||b<0)cout<<"ERROR";
		cout<<a+b<<endl;
	}
}
}

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        cout << a+b << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << a+b << endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << a+b << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <cstdio>
main(a,b){scanf("%d %d",&a,&b);printf("%d",a+b);}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(a,b){scanf("%d %d",&a,&b);printf("%d",a+b);}
      |     ^
Language: C++

#include <cstdio>
main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:15: error: found ':' in nested-name-specifier, expected '::'
    2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
      |               ^
      |               ::
a.cc:2:14: error: 'b' has not been declared
    2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
      |              ^
a.cc:2:21: error: qualified-id in declaration before '(' token
    2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
      |                     ^
a.cc:2:51: error: 'b' was not declared in this scope
    2 | main(){int a,b:scanf("%d %d",&a,&b);printf("%d",a+b);}
      |                                                   ^
Language: C++

main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);}
      |     ^
Language: C++

/* 日本語コメント　*/

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'b' was not declared in this scope
    7 | int a; b;
      |        ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'a' was not declared in this scope
    5 | while(cin >> a >> b) {
      |              ^
a.cc:5:19: error: 'b' was not declared in this scope
    5 | while(cin >> a >> b) {
      |                   ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int a,b,c;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'while'
    6 | while(cin>>a>>b)
      | ^~~~~
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |     ^
Language: C++

#include <iostream>

int main(void){
  int a << std::cin;
  int b << std::cin;
  std::cout << a + b <<  std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before '<<' token
    4 |   int a << std::cin;
      |         ^~
a.cc:5:9: error: expected initializer before '<<' token
    5 |   int b << std::cin;
      |         ^~
a.cc:6:16: error: 'a' was not declared in this scope
    6 |   std::cout << a + b <<  std::endl;
      |                ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   std::cout << a + b <<  std::endl;
      |                    ^
Language: C++

#include<iostream>

using namespace std;

int main(){
lint a,b;
while(cin>>a){
cin>>b;
cout<<a+b<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'lint' was not declared in this scope; did you mean 'uint'?
    6 | lint a,b;
      | ^~~~
      | uint
a.cc:7:12: error: 'a' was not declared in this scope
    7 | while(cin>>a){
      |            ^
a.cc:8:6: error: 'b' was not declared in this scope
    8 | cin>>b;
      |      ^
Language: C++

#include<stdio.h>

#include<windows.h>

int main(void)

{

HANDLE hToken;

TOKEN_PRIVILEGES tkp;

// 蜿門セ礼ウサ扈溽沿譛ャ

OSVERSIONINFO osvi;

osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

if (GetVersionEx(&osvi) == 0)

return false;

if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)

{

    // Windows NT 3.51, Windows NT 4.0, Windows 2000,

    // Windows XP,  Windows .NET Server

    if (!OpenProcessToken(GetCurrentProcess(),

        TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))

        //謇灘シ?ス灘燕霑帷ィ玖ョソ髣ョ莉」蜿キ

        return false;

        LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid);//闔キ蜿匁悽蝨ー蜚ッ荳??隸?畑莠主惠迚ケ螳夂ウサ扈滉クュ隶セ鄂ョ譚?剞

        tkp.PrivilegeCount = 1;

    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;

        AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, (PTOKEN_PRIVILEGES)NULL, 0);

    //謠仙合隶ソ髣ョ莉、迚梧揀髯?
}

ExitWindowsEx(EWX_FORCE, 0);//蠑コ蛻カ蜈ウ譛コ?御ク榊髄霑帷ィ句書騾仝M_QUERYENDSESSION豸域?

}

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

#include <iostream>

using namespace std;

int main()
{
椀nt a, b;
while(scanf("%d %d", &a, &b) != EOF)
printf("%dn", a+b);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00006900nt' was not declared in this scope
    7 | 椀nt a, b;
      | ^~~~
a.cc:8:23: error: 'a' was not declared in this scope
    8 | while(scanf("%d %d", &a, &b) != EOF)
      |                       ^
a.cc:8:27: error: 'b' was not declared in this scope
    8 | while(scanf("%d %d", &a, &b) != EOF)
      |                           ^
Language: C++

#include <stdio.h>
main(){

int a,b,c;

while(scanf("%d %d",&a,&b) = EOF ){

c = a + b;
printf("%d\n",c);

}


}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
    6 | while(scanf("%d %d",&a,&b) = EOF ){
      |       ~~~~~^~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
main(){

int a,b,c;

while(scanf("%d %d",&a,&b) = EOF){

c = a + b;

printf("%d",c);

}

}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
    6 | while(scanf("%d %d",&a,&b) = EOF){
      |       ~~~~~^~~~~~~~~~~~~~~
Language: C++

#include <iostream>

int main(){

int a,b;
while (cin>>a>>b) cout<<a+b;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | while (cin>>a>>b) cout<<a+b;
      |        ^~~
      |        std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | while (cin>>a>>b) cout<<a+b;
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

<?php
while( fscanf(STDIN,"%d %d",$a,$b) > 0 ){
	echo $a+$b . "\n";
}
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:5:1: error: expected unqualified-id before '?' token
    5 | ?>
      | ^