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

#include <iostream>
using namespase std;
 
main(void) {
int N, A, B;
cin >> N;
 
if(N==1) {
cout << "Hello World\n" ;
}
else if (N==2) {
cin >> A;
cin >> B;
cout << A+B <<endl ;
return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> N;
      | ^~~
      | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << "Hello World\n" ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 | 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:14:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 | 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)
      |     ^~~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | main(void) {
      |            ^
Language: C++

#include <iostram>
using namespase std;

main(void) {
int N, A, B;
cin >> N;

if(N==1) {
cout << "Hello World\n" ;
}
else if (N==2) {
cin >> A;
cin >> B;
cout << A+B <<endl ;
return 0;
}


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

#include <stdio.h>
int main(void){
  int a,b,c;
  scanf("%d",&a);
  if(a==1){
    printf("Hello World\n");
  }else if(a==2){
    scanf("%d",&b);
    scanf("%d",&c);
    printf("%d\n"a+b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ')' before 'a'
   10 |     printf("%d\n"a+b);
      |           ~      ^
      |                  )
Language: C

#include <stdio.h>
int main(void){
  int a,b,c;
  scanf("%d",&a);
  if(a==1){
    printf("Hello World\n");
  }else if(a==2){
    scanf("%d",&b);
    scanf("%d",&c);
    printf("%d"a+b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: expected ')' before 'a'
   10 |     printf("%d"a+b);
      |           ~    ^
      |                )
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<map>
using namespace std;
#define ll long long
int main(){
    int N,A,B;
    if(N==1){
      cout <<"Hello World"
    }else{
      cin >> A >> B;
      cout << A+B;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before '}' token
   11 |       cout <<"Hello World"
      |                           ^
      |                           ;
   12 |     }else{
      |     ~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<map>
using namespace std;
#define ll long long
int main(){
    int N,A,B;
    if(N=1){
      cout <<"Hello World"
    }else{
      cin >> A >> B;
      cout << A+B;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before '}' token
   11 |       cout <<"Hello World"
      |                           ^
      |                           ;
   12 |     }else{
      |     ~
Language: C

#include<stdio.h>

int main(void){
int N,A,B;
  
  scanf("%d",&N);
  
  if(N==1)
    printf("Hello World\n");
 
  scanf("%d",&A);
  scanf("%d",&B);
  
  if(N==2){
    scant("%d",A+B);
    printf("%d");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   15 |     scant("%d",A+B);
      |     ^~~~~
      |     scanf
Language: C

#include <stdio.h>

int main(void){
  
  int a,b,c;
  scanf("%d",&a);
  
  if(a==1){
    printf("Hello World");
  }
  
  else(a==2){
    scanf("%d",&b);
    scanf("%d",&c);
    printf("%d",b+c);
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before '{' token
   12 |   else(a==2){
      |             ^
      |             ;
Language: C

#include <stdio.h>
int main(void){
  
  int n,a,b;
scanf("%d",&n);

if(n==1){
  printf("HelloWorld");
}
else(n==2){
 scanf("%d",&a);
scanf("%d",&b);
printf("%d",&a+b);
}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected ';' before '{' token
   10 | else(n==2){
      |           ^
      |           ;
Language: C

#include〈stdio.h〉

int main(){
  
 int a,s,d;
  
  scanf("%d",&a);
  
  if(a==1){
   printf("Hello World\n");
  }

  if(a==2){
   scanf("%d",&s);
   scanf("%d",&d);
  }
  
   printf("%d\n",s+d);
  
  return 0;
  
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include〈stdio.h〉
      |         ^~
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include〈stdio.h〉
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&a);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:4: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |    printf("Hello World\n");
      |    ^~~~~~
main.c:10:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |    printf("%d\n",s+d);
      |    ^~~~~~
main.c:18:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int void(main){
  
  int n,a,b;
scanf("%d",&n);

if(n==1){
  printf("HelloWorld");
}
else(n==2){
 scanf("%d",&a);
scanf("%d",&b);
printf("%d",&a+b);
}
  return 0;
}

Compiler output:
main.c:2:5: error: two or more data types in declaration specifiers
    2 | int void(main){
      |     ^~~~
main.c:2:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int void(main){
      |               ^
Language: C

#include <stdio.h>
int void(main){
  
  int n,a,b;
scanf("%d",&a);

if(n==1){
  printf("HelloWorld");
}
else(n==2){
 scanf("%d",&a);
scanf("%d",&b);
printf("%d",&a+b);
}
  return 0;
}

Compiler output:
main.c:2:5: error: two or more data types in declaration specifiers
    2 | int void(main){
      |     ^~~~
main.c:2:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int void(main){
      |               ^
Language: C

#include <stdio.h>
int void(main){
  
  int n,a,b;
scanf("%d",&a);

if(n=1){
  printf("HelloWorld");
}
else(n=2){
 scanf("%d",&a);
scanf("%d",&b);
printf("%d",&a+b);
}
  return 0;
}

Compiler output:
main.c:2:5: error: two or more data types in declaration specifiers
    2 | int void(main){
      |     ^~~~
main.c:2:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int void(main){
      |               ^
Language: C

#include <stdio.h>
int main (void){
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
else if(x==2){
scanf(“%d\n”,&a);
scanf(“%d\n”,&b);
printf(“%d\n”,a+b);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(“%d”,&x);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |                 ^~~~~~~~
main.c:6:8: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |        ^~~~~~~~
main.c:6:9: error: 'Hello' undeclared (first use in this function); did you mean 'ftello'?
    6 | printf(“Hello World\n”);
      |         ^~~~~
      |         ftello
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: expected ')' before 'World'
    6 | printf(“Hello World\n”);
      |       ~      ^~~~~~
      |              )
main.c:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
main.c:6:22: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |                             ^~~~~~~~
main.c:9:7: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |       ^~~~~~~~
main.c:9:8: error: expected expression before '%' token
    9 | scanf(“%d\n”,&a);
      |        ^
main.c:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
main.c:9:12: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |                   ^~~~~~~~
main.c:10:7: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |       ^~~~~~~~
main.c:10:8: error: expected expression before '%' token
   10 | scanf(“%d\n”,&b);
      |        ^
main.c:10:10: error: stray '\' in program
   10 | scanf(“%d\n”,&b);
      |          ^
main.c:10:12: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |                   ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |        ^~~~~~~~
main.c:11:9: error: expected expression before '%' token
   11 | printf(“%d\n”,a+b);
      |         ^
main.c:11:11: error: stray '\' in program
   11 | printf(“%d\n”,a+b);
      |           ^
main.c:11:13: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |                    ^~~~~~~~
Language: Java

import java.io.*;
public class Main {
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
int a = Integer.parseInt(br.readLine());

if(a == 1){
System.out.println("Hello World");
} 
if(a == 2){
int b = Integer.parseInt(br.readLine());
int c = Integer.parseInt(br.readLine());
System.out.println(b + c);
}
}
}

Compiler output:
Main.java:4: error: ')' or ',' expected
BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
                                                                       ^
1 error
Language: C

#include <stdio.h>

int main(void){
  
  int a,b,c;
  scanf("%d",&a);
  
  if(a = 1){
    printf("Hello World");
  }
  
  else(a = 2){
    scanf("%d",&b);
    scanf("%d",&c);
    prinrf("%d",b+c);
  }
}

  return 0;


Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before '{' token
   12 |   else(a = 2){
      |              ^
      |              ;
main.c: At top level:
main.c:19:3: error: expected identifier or '(' before 'return'
   19 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>
int main (void){
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
else if(x==2){
scanf(“%d\n”,&a);
scanf(“%d\n”,&b);
printf(“%d\n”,a+b);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(“%d”,&x);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |                 ^~~~~~~~
main.c:6:8: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |        ^~~~~~~~
main.c:6:9: error: 'Hello' undeclared (first use in this function); did you mean 'ftello'?
    6 | printf(“Hello World\n”);
      |         ^~~~~
      |         ftello
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: expected ')' before 'World'
    6 | printf(“Hello World\n”);
      |       ~      ^~~~~~
      |              )
main.c:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
main.c:6:22: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |                             ^~~~~~~~
main.c:9:7: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |       ^~~~~~~~
main.c:9:8: error: expected expression before '%' token
    9 | scanf(“%d\n”,&a);
      |        ^
main.c:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
main.c:9:12: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |                   ^~~~~~~~
main.c:10:7: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |       ^~~~~~~~
main.c:10:8: error: expected expression before '%' token
   10 | scanf(“%d\n”,&b);
      |        ^
main.c:10:10: error: stray '\' in program
   10 | scanf(“%d\n”,&b);
      |          ^
main.c:10:12: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |                   ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |        ^~~~~~~~
main.c:11:9: error: expected expression before '%' token
   11 | printf(“%d\n”,a+b);
      |         ^
main.c:11:11: error: stray '\' in program
   11 | printf(“%d\n”,a+b);
      |           ^
main.c:11:13: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |                    ^~~~~~~~
Language: C++

#include <stdio.h>

int main(void){
  
  int a,b,c;
  scanf("%d",&a);
  
  if(a = 1){
    printf("Hello World");
  }
  
  else(a = 2){
    scanf("%d",&b);
    scanf("%d",&c);
    prinrf("%d",b+c);
  }
}

  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before '{' token
   12 |   else(a = 2){
      |              ^
      |              ;
a.cc: At global scope:
a.cc:19:3: error: expected unqualified-id before 'return'
   19 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>

int main(void){
int a,b,n;
scanf_s("%d",&n);
if(n==1){
printf("Hello World");}
else if(n==2){
scanf_s("%d",&a);
scanf_s("%d",&b);
printf("%d",a+b);}
return 0;
}

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

#include <stdio.h>
int main {
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
else if(x==2){
scanf(“%d\n”,&a);
scanf(“%d\n”,&b);
printf(“%d\n”,a+b);
}
return 0;
}

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int main {
      |          ^
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |       ^~~~~~~~
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&x);
      |                 ^~~~~~~~
main.c:6:8: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |        ^~~~~~~~
main.c:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
main.c:6:22: error: stray '\342' in program
    6 | printf(<U+201C>Hello World\n<U+201D>);
      |                             ^~~~~~~~
main.c:9:7: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |       ^~~~~~~~
main.c:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
main.c:9:12: error: stray '\342' in program
    9 | scanf(<U+201C>%d\n<U+201D>,&a);
      |                   ^~~~~~~~
main.c:10:7: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |       ^~~~~~~~
main.c:10:10: error: stray '\' in program
   10 | scanf(“%d\n”,&b);
      |          ^
main.c:10:12: error: stray '\342' in program
   10 | scanf(<U+201C>%d\n<U+201D>,&b);
      |                   ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |        ^~~~~~~~
main.c:11:11: error: stray '\' in program
   11 | printf(“%d\n”,a+b);
      |           ^
main.c:11:13: error: stray '\342' in program
   11 | printf(<U+201C>%d\n<U+201D>,a+b);
      |                    ^~~~~~~~
Language: C

#include <stdio.h>
int main(void){
  int a,b,n;
    scanf("%d",&n);
  if(n==1){
    printf("Hello World\n");
    else if(n==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected '}' before 'else'
    7 |     else if(n==2){
      |     ^~~~
main.c: At top level:
main.c:13:3: error: expected identifier or '(' before 'return'
   13 |   return 0;
      |   ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C++

#include <stdio.h>
int main {
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
else if(x==2){
scanf(“%d\n”,&a);
scanf(“%d\n”,&b);
printf(“%d\n”,a+b);
}
return 0;
}

Compiler output:
a.cc:4:7: error: extended character “ is not valid in an identifier
    4 | scanf(“%d”,&x);
      |       ^
a.cc:4:9: error: extended character ” is not valid in an identifier
    4 | scanf(“%d”,&x);
      |         ^
a.cc:6:8: error: extended character “ is not valid in an identifier
    6 | printf(“Hello World\n”);
      |        ^
a.cc:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
a.cc:6:21: error: extended character ” is not valid in an identifier
    6 | printf(“Hello World\n”);
      |                     ^
a.cc:9:7: error: extended character “ is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |       ^
a.cc:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
a.cc:9:11: error: extended character ” is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |           ^
a.cc:10:7: error: extended character “ is not valid in an identifier
   10 | scanf(“%d\n”,&b);
      |       ^
a.cc:10:10: error: stray '\' in program
   10 | scanf(“%d\n”,&b);
      |          ^
a.cc:10:11: error: extended character ” is not valid in an identifier
   10 | scanf(“%d\n”,&b);
      |           ^
a.cc:11:8: error: extended character “ is not valid in an identifier
   11 | printf(“%d\n”,a+b);
      |        ^
a.cc:11:11: error: stray '\' in program
   11 | printf(“%d\n”,a+b);
      |           ^
a.cc:11:12: error: extended character ” is not valid in an identifier
   11 | printf(“%d\n”,a+b);
      |            ^
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main {
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int a,b,x;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:10: note: to match this '{'
    2 | int main {
      |          ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf(“%d”,&x);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(x==1){
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else if(x==2){
      | ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
  if(a==1){
    printf("Hello World/n");
  else if (a==2){
    scanf("%d", &c);
  scanf("%d", &c);
printf("%d/n", a+b);
}
    }

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '}' before 'else'
    7 |   else if (a==2){
      |   ^~~~
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before 'return'
   14 | return 0;
      | ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,n;
    scanf("%d",&n);
  if(n==1){
    printf("Hello World\n");
    eles if(n==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: 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 | #inclde <stdio.h>
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(n==2){
      |     ^~~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(n==2){
      |         ^~~
      |         ;
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,n
    scanf("%d",&n);
  if(n==1){
    printf("Hello World\n");
    eles if(n==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:6: error: 'n' undeclared (first use in this function)
    5 |   if(n==1){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(n==2){
      |     ^~~~
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(n==2){
      |         ^~~
      |         ;
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,n
    scanf("%d",&n);
  if(N==1){
    printf("Hello World\n");
    eles if(n==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:6: error: 'N' undeclared (first use in this function)
    5 |   if(N==1){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(n==2){
      |     ^~~~
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(n==2){
      |         ^~~
      |         ;
Language: C++

#include <stdio.h>
int main {
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
if(x==2){
scanf(“%d\n”,&a);
scanf(“%d\n”,&b);
printf(“%d\n”,a+b);
}
return 0;
}

Compiler output:
a.cc:4:7: error: extended character “ is not valid in an identifier
    4 | scanf(“%d”,&x);
      |       ^
a.cc:4:9: error: extended character ” is not valid in an identifier
    4 | scanf(“%d”,&x);
      |         ^
a.cc:6:8: error: extended character “ is not valid in an identifier
    6 | printf(“Hello World\n”);
      |        ^
a.cc:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
a.cc:6:21: error: extended character ” is not valid in an identifier
    6 | printf(“Hello World\n”);
      |                     ^
a.cc:9:7: error: extended character “ is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |       ^
a.cc:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
a.cc:9:11: error: extended character ” is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |           ^
a.cc:10:7: error: extended character “ is not valid in an identifier
   10 | scanf(“%d\n”,&b);
      |       ^
a.cc:10:10: error: stray '\' in program
   10 | scanf(“%d\n”,&b);
      |          ^
a.cc:10:11: error: extended character ” is not valid in an identifier
   10 | scanf(“%d\n”,&b);
      |           ^
a.cc:11:8: error: extended character “ is not valid in an identifier
   11 | printf(“%d\n”,a+b);
      |        ^
a.cc:11:11: error: stray '\' in program
   11 | printf(“%d\n”,a+b);
      |           ^
a.cc:11:12: error: extended character ” is not valid in an identifier
   11 | printf(“%d\n”,a+b);
      |            ^
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main {
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int a,b,x;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:10: note: to match this '{'
    2 | int main {
      |          ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf(“%d”,&x);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(x==1){
      | ^~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(x==2){
      | ^~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,n
    scanf("%d",&n);
  if(N==1){
    printf("Hello World\n");
    eles if(N==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:6: error: 'N' undeclared (first use in this function)
    5 |   if(N==1){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(N==2){
      |     ^~~~
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(N==2){
      |         ^~~
      |         ;
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,N
    scanf("%d",&n);
  if(N==1){
    printf("Hello World\n");
    eles if(N==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
    }
  }
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:6: error: 'N' undeclared (first use in this function)
    5 |   if(N==1){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(N==2){
      |     ^~~~
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(N==2){
      |         ^~~
      |         ;
Language: C

#inclde <stdio.h>
int main(void){
  int a,b,N
    scanf("%d",&n);
  if(N==1){
    printf("Hello World\n");
    eles if(N==2){
      scanf("%d",&a);
      scanf("%d",&b);
      printf("%d\n",a+b);
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:6: error: 'N' undeclared (first use in this function)
    5 |   if(N==1){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("Hello World\n");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: error: 'eles' undeclared (first use in this function)
    7 |     eles if(N==2){
      |     ^~~~
main.c:7:9: error: expected ';' before 'if'
    7 |     eles if(N==2){
      |         ^~~
      |         ;
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
main.c:12:1: error: expected declaration or statement at end of input
Language: C++

#include <stdio.h>
int main {
int a,b,x;
scanf(“%d”,&x);
if(x==1){
printf(“Hello World\n”);
}
if(x==2){
scanf(“%d\n”,&a);
printf(“%d\n”,a+b);
}
return 0;
}

Compiler output:
a.cc:4:7: error: extended character “ is not valid in an identifier
    4 | scanf(“%d”,&x);
      |       ^
a.cc:4:9: error: extended character ” is not valid in an identifier
    4 | scanf(“%d”,&x);
      |         ^
a.cc:6:8: error: extended character “ is not valid in an identifier
    6 | printf(“Hello World\n”);
      |        ^
a.cc:6:20: error: stray '\' in program
    6 | printf(“Hello World\n”);
      |                    ^
a.cc:6:21: error: extended character ” is not valid in an identifier
    6 | printf(“Hello World\n”);
      |                     ^
a.cc:9:7: error: extended character “ is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |       ^
a.cc:9:10: error: stray '\' in program
    9 | scanf(“%d\n”,&a);
      |          ^
a.cc:9:11: error: extended character ” is not valid in an identifier
    9 | scanf(“%d\n”,&a);
      |           ^
a.cc:10:8: error: extended character “ is not valid in an identifier
   10 | printf(“%d\n”,a+b);
      |        ^
a.cc:10:11: error: stray '\' in program
   10 | printf(“%d\n”,a+b);
      |           ^
a.cc:10:12: error: extended character ” is not valid in an identifier
   10 | printf(“%d\n”,a+b);
      |            ^
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main {
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int a,b,x;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:10: note: to match this '{'
    2 | int main {
      |          ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf(“%d”,&x);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(x==1){
      | ^~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(x==2){
      | ^~
a.cc:12:1: error: expected unqualified-id before 'return'
   12 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include <stdio.h> 
int main （void ）
{
	int N 、A 、B ;
	scanf （"％d" 、\n ）; 
	if （N == 1 ）{   
		printf （"Hello World \ n" ）;
	}
	else { 
		scanf_（"％d％d" 、＆A 、＆B ）;  
		printf （"％d \ n" 、A + B ）;
	}
	0を返します。 
}

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\U0000ff08void'
    2 | int main （void ）
      |          ^~~~~~
main.c:2:10: error: unknown type name '\U0000ff08void'; did you mean 'void'?
    2 | int main （void ）
      |          ^~~~~~
      |          void
main.c:4:15: error: stray '\343' in program
    4 |         int N <U+3001>A <U+3001>B ;
      |               ^~~~~~~~
main.c:4:19: error: stray '\343' in program
    4 |         int N <U+3001>A <U+3001>B ;
      |                         ^~~~~~~~
main.c:5:23: error: stray '\343' in program
    5 |         scanf <U+FF08>"<U+FF05>d" <U+3001>\n <U+FF09>;
      |                                   ^~~~~~~~
main.c:5:25: error: stray '\' in program
    5 |         scanf （"％d" 、\n ）;
      |                         ^
main.c:10:34: error: stray '\343' in program
   10 |                 scanf_<U+FF08>"<U+FF05>d<U+FF05>d" <U+3001><U+FF06>A <U+3001><U+FF06>B <U+FF09>;
      |                                                    ^~~~~~~~
main.c:10:40: error: stray '\343' in program
   10 |                 scanf_<U+FF08>"<U+FF05>d<U+FF05>d" <U+3001><U+FF06>A <U+3001><U+FF06>B <U+FF09>;
      |                                                                      ^~~~~~~~
main.c:11:36: error: stray '\343' in program
   11 |                 printf <U+FF08>"<U+FF05>d \ n" <U+3001>A + B <U+FF09>;
      |                                                ^~~~~~~~
main.c:13:9: error: invalid suffix "を返します" on integer constant
   13 |         0を返します。
      |         ^~~~~~~~~~~
main.c:13:20: error: stray '\343' in program
   13 |         0<U+3092><U+8FD4><U+3057><U+307E><U+3059><U+3002>
      |                                                  ^~~~~~~~
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
  if(a==1)
    printf("Hello World")
  else if (a==2)
    scanf("%d", &c);
  scanf("%d", &c);
printf("%d/n", a+b);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ';' before 'else'
    6 |     printf("Hello World")
      |                          ^
      |                          ;
    7 |   else if (a==2)
      |   ~~~~
Language: C++

#include〈stdio.h〉

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

  scanf("%d",&a);
  
  if(a==1)｛
    printf("Hello World");
  ｝else if(a==2)｛
    scanf("%d",&b);
    scanf("%d",&c);
  ｝
  
  printf("%d",b+c);
 
  return 0;

｝

Compiler output:
a.cc:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈stdio.h〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008stdio
    1 | #include〈stdio.h〉
      |  ^~~~~~~~~~~~~~
a.cc:1:17: error: extended character 〉 is not valid in an identifier
    1 | #include〈stdio.h〉
      |                 ^
a.cc:3:11: error: expected initializer before '\U0000ff5b'
    3 | int main()｛
      |           ^~
a.cc:7:8: error: expected constructor, destructor, or type conversion before '(' token
    7 |   scanf("%d",&a);
      |        ^
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(a==1)｛
      |   ^~
a.cc:11:3: error: '\U0000ff5delse' does not name a type
   11 |   ｝else if(a==2)｛
      |   ^~~~~~
a.cc:13:10: error: expected constructor, destructor, or type conversion before '(' token
   13 |     scanf("%d",&c);
      |          ^
a.cc:14:3: error: '\U0000ff5d' does not name a type
   14 |   ｝
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0;
      |   ^~~~~~
a.cc:20:1: error: '\U0000ff5d' does not name a type
   20 | ｝
      | ^~
Language: C

#include <stdio.h>
int main(void)
{
	int N, A, B;
	scanf_s("%d", &N);
	if (N == 1) {
		printf("Hello World\n");
	}
	else {
		scanf_s("%d %d", &A, &B);
		printf("%d\n", A + B);
	}
	return 0;
}

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

#include <stdio.h>
int main(void)
{
	int N, A, B;
	scanf_s("%d", &N);
	if (N == 1) {
		printf("Hello World");
	}
	else {
		scanf_s("%d %d", &A, &B);
		printf("%d", A + B);
	}
	return 0;
}

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

#include <stdio.h>

int main(void) {
int a,b,x;
scanf(“%d”,&x);
if(x==1) {
printf(“Hello World”);
}
if(x==2) {
scanf(“%d”,&a);
scanf(“%d”,&b);
printf(“%d”,a+b);
}
return 0;
}

Compiler output:
a.cc:5:7: error: extended character “ is not valid in an identifier
    5 | scanf(“%d”,&x);
      |       ^
a.cc:5:9: error: extended character ” is not valid in an identifier
    5 | scanf(“%d”,&x);
      |         ^
a.cc:7:8: error: extended character “ is not valid in an identifier
    7 | printf(“Hello World”);
      |        ^
a.cc:7:15: error: extended character ” is not valid in an identifier
    7 | printf(“Hello World”);
      |               ^
a.cc:10:7: error: extended character “ is not valid in an identifier
   10 | scanf(“%d”,&a);
      |       ^
a.cc:10:9: error: extended character ” is not valid in an identifier
   10 | scanf(“%d”,&a);
      |         ^
a.cc:11:7: error: extended character “ is not valid in an identifier
   11 | scanf(“%d”,&b);
      |       ^
a.cc:11:9: error: extended character ” is not valid in an identifier
   11 | scanf(“%d”,&b);
      |         ^
a.cc:12:8: error: extended character “ is not valid in an identifier
   12 | printf(“%d”,a+b);
      |        ^
a.cc:12:10: error: extended character ” is not valid in an identifier
   12 | printf(“%d”,a+b);
      |          ^
a.cc: In function 'int main()':
a.cc:5:7: error: '\U0000201c' was not declared in this scope
    5 | scanf(“%d”,&x);
      |       ^
a.cc:5:9: error: 'd\U0000201d' was not declared in this scope
    5 | scanf(“%d”,&x);
      |         ^~
a.cc:7:8: error: '\U0000201cHello' was not declared in this scope
    7 | printf(“Hello World”);
      |        ^~~~~~
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
 if(a=1)
   printf("Hello World");
  if else(a=2)
    printf("%d", b+c);
  
   



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(a=2)
      |      ^~~~
      |      (
Language: C

#include <stdio.h>
int main(void)
{
scanf_s("%d",&N);
if (N =1){
printf("Hello World");
}
else{
scanf_s("%d %d",&A,&B);
pritnf("%d",A+B);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scanf_s("%d",&N);
      | ^~~~~~~
      | scanf
main.c:4:15: error: 'N' undeclared (first use in this function)
    4 | scanf_s("%d",&N);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:18: error: 'A' undeclared (first use in this function)
    9 | scanf_s("%d %d",&A,&B);
      |                  ^
main.c:9:21: error: 'B' undeclared (first use in this function)
    9 | scanf_s("%d %d",&A,&B);
      |                     ^
main.c:10:1: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 | pritnf("%d",A+B);
      | ^~~~~~
      | printf
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
 if(a=1)
   printf("Hello World");
  if else(a=2)
    printf("%d", b+c);
  else
   



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(a=2)
      |      ^~~~
      |      (
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
 if(a=1)
   printf("Hello World");
  if else(a=2)
    printf("%d", b+c);
  else
    break;



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(a=2)
      |      ^~~~
      |      (
main.c:12:5: error: break statement not within loop or switch
   12 |     break;
      |     ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  if (n = 1){
    cout << "Hello World" << endl;
  }
  if (n = 2){
    cout << A + B << endl;

return 0;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'A' was not declared in this scope
   11 |     cout << A + B << endl;
      |             ^
a.cc:11:17: error: 'B' was not declared in this scope
   11 |     cout << A + B << endl;
      |                 ^
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
 if(a=1)
   printf("Hello World");
  if else(a=2)
    printf("%d", b+c);
  break;



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(a=2)
      |      ^~~~
      |      (
main.c:11:3: error: break statement not within loop or switch
   11 |   break;
      |   ^~~~~
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
  scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
 if(a=1)
   printf("Hello World");
  if else(a=2)
    printf("%d", b+c);



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(a=2)
      |      ^~~~
      |      (
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{ 
     int N;
    cin>>N;
     if(N==1){
    cout<<"Hello World"<<endl;
}
    else (N==2)
{
    int A, B;
    cin>>A>>B;
    cout<<A+B<<endle;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '{' token
   10 |     else (N==2)
      |                ^
      |                ;
   11 | {
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int u,s,c;
    cin>>n;
    if(u==1)
        cout<<"Hello World"<<endl;
    else
    {
        cin>>s>>c;
        cout<<s+c<<endl;
    }
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int u,s,c;
    cin>>u;
    if(n==1)
        cout<<"Hello World"<<endl;
    else
    {
        cin>>s>>c;
        cout<<s+c<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'n' was not declared in this scope
    7 |     if(n==1)
      |        ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,a,b;
    cin>>n;
    if(n==1)
        cout<<"Hello World"<<endl;
    else
    {
        cin>>a>>b;
        cout<<a+b<<endl;
    }
}


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

#include<bits/stdc++.h>

using namespace std;
int main()
{
    int X,J,K,sum;
    scanf("%d",&X);
    if(X==1)
    {
        printf("Hello World");
    }
    else if(X==2)
    {
        scanf("%d%d",&J,&K);
        sum=J+K;
        printf("%d",sum);2
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |         printf("%d",sum);2
      |                           ^
      |                           ;
   17 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin >> n;
	if (n == 1)cout << "Hello World";
	else
	{
		int a, int b;
		cin >> a >> b;
		cout << a + b;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected unqualified-id before 'int'
   10 |                 int a, int b;
      |                        ^~~
a.cc:11:29: error: 'b' was not declared in this scope
   11 |                 cin >> a >> b;
      |                             ^
Language: C

#include <stdio.h>

int main(){
  int n,a,b;
  scanf("%d",&n)
  if(n==1){
    printf("Hello World");
  }else{
    scanf("%d %d",&a,&b);
    printf("%d",a+b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'if'
    5 |   scanf("%d",&n)
      |                 ^
      |                 ;
    6 |   if(n==1){
      |   ~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  if(n==1){
    cout<<"Hello World"<<endl;
  }else{
    cin>>a>>b;
    cout<<a+b<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     cin>>a>>b;
      |          ^
a.cc:9:13: error: 'b' was not declared in this scope
    9 |     cin>>a>>b;
      |             ^