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

#include<stdio.h>
int main(void){
  int s[2];
  scanf("%d %d %d",s[0,s[1],s[2]);
  printf("%d %d %d",s[2],s[0],s[1]);
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ']' before ')' token
    4 |   scanf("%d %d %d",s[0,s[1],s[2]);
      |                                 ^
      |                                 ]
Language: C

#include<stdio.h>
int main(void){
  int s[2];
  scanf("%d %d %d",s[0,s[1],s[2]);
  printf("%c %c %c",s[2],s[0],s[1]);
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ']' before ')' token
    4 |   scanf("%d %d %d",s[0,s[1],s[2]);
      |                                 ^
      |                                 ]
Language: C

#include<stdio.h>
int main(void){
  char s[2];
  scanf("%s",s);
  printf("%c %c %c",s[2],s[0],s[1])
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:5:36: error: expected ';' before 'return'
    5 |   printf("%c %c %c",s[2],s[0],s[1])
      |                                    ^
      |                                    ;
    6 |  return 0;
      |  ~~~~~~
Language: C

#include<stdio.h>
int main(void){
  char s[2];
  scanf("%s",s);
  printf("%S %s %s",s[2],s[0],s[1])
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:5:36: error: expected ';' before 'return'
    5 |   printf("%S %s %s",s[2],s[0],s[1])
      |                                    ^
      |                                    ;
......
    8 |  return 0;
      |  ~~~~~~
Language: Java

import java.util.*;

public class AtCoder_A{
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int a = input.nextInt();
		int b = input.nextInt();
		int c = input.nextInt();
		System.out.println(c + " " + a + " " + b);
	}
}

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

import java.util.*;

public class AtCoder_A{
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int a = input.nextInt();
		int b = input.nextInt();
		int c = input.nextInt();

		int swap = b;
		b = a;
		a = swap;

		a = c;
		c = swap;

		System.out.println(a + " " + b + " " + c);
	}
}

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

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

int main(){
    int A,B,C,D;
    cin >> A >> B >> >> C;
    D = A;
    A = B;
    B = D;
    D = A;
    A = C;
    C = D;
    cout << A << " " << B << " " << C << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected primary-expression before '>>' token
    6 |     cin >> A >> B >> >> C;
      |                      ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,y,z;
  cin>>x>>y>>z;
  cout<<z" " <<x" " << y<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before string constant
    6 |   cout<<z" " <<x" " << y<<endl;}
      |          ^~~
      |          ;
Language: C++

#include<bits/stdc++.h>
uisng namespace std;
int main(){
  int x,y,z;
  cin>>x>>y>>z;
  cout<<y<<z<<x<<endl;}

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>x>>y>>z;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<y<<z<<x<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<y<<z<<x<<endl;}
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
uisng namespace std;
int main(){
  int x,y,z;
  cin>>X>>Y>>Z;
  cout<<y<<z<<x<<endl;}

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>X>>Y>>Z;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 'X' was not declared in this scope
    5 |   cin>>X>>Y>>Z;
      |        ^
a.cc:5:11: error: 'Y' was not declared in this scope
    5 |   cin>>X>>Y>>Z;
      |           ^
a.cc:5:14: error: 'Z' was not declared in this scope
    5 |   cin>>X>>Y>>Z;
      |              ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<y<<z<<x<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<y<<z<<x<<endl;}
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int s[100]={0};
	int i;
	
	for(i=0; i<3; i++)
	{
		scanf("%d",&s[i]);
	}
	
	s[3] = s[0];
	/s[0] = s[2];
	s[2] = s[1];
	s[1] = s[3];
	
		for(i=0; i<4; i++)
	{
		printf("%d ",s[i]);
	}
	

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected expression before '/' token
   13 |         /s[0] = s[2];
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  cin>>X>>Y>>Z;
  cout<<Z<<" "<<X" "<<Y;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before string constant
    7 |   cout<<Z<<" "<<X" "<<Y;
      |                  ^~~
      |                  ;
Language: C++

#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp> 
//#include <ext/pb_ds/tree_policy.hpp>
//#include <functional> // for less
//using namespace __gnu_pbds;
using namespace std;
typedef long long  L;

#define max_(x, y) (((x) > (y)) ? (x) : (y))
#define min_(x, y) (((x) < (y)) ? (x) : (y))
#define ___ ios_base::sync_with_stdio(false);cin.tie(NULL);
#define Mx 200001
#define inf 1e15
const L MOD = 1e9+7;
const double pi = 2 * acos (0.0);

/*------------------------------Graph Moves----------------------------*/
//const int fx[]={+1,-1,+0,+0};
//const int fy[]={+0,+0,+1,-1};
//const int fx[]={+0,+0,+1,-1,-1,+1,-1,+1};   // Kings Move
//const int fy[]={-1,+1,+0,+0,+1,+1,-1,-1};  // Kings Move
//const int fx[]={-2, -2, -1, -1,  1,  1,  2,  2};  // Knights Move
//const int fy[]={-1,  1, -2,  2, -2,  2, -1,  1}; // Knights Move
/*---------------------------------------------------------------------*/


//typedef tree<L,null_type,less<L>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;

L a1,a2,a3,b1,b2,b3,c,c1,c2,c3,d,d1,d2,d3,d4,d5,e1,e2,e3,f,h,k,l,m,n,m1,m2,n1,n2,o,p,p1,p2,p3,p4,
q,q1,q2,q3,q4,r,s,t,u,v,x,y,z,sum,mx=-inf,mn=inf,flg,flg1,flg2,id1,id2,id3,id4,lim;

//double rat;
L A[Mx+5],B[Mx+5];


int main()
{
    scanf("%lld%lld%lld",&a,&b,&c);
    swap(a,b);
    swap(a,c);
    printf("%lld %lld %lld\n", a,b,c);
    return 0;
}
/// empty() lld lld push_back() top() pop() insert() upper_bound() lower_bound() memset() max() min() scanf continue


Compiler output:
a.cc: In function 'int main()':
a.cc:38:27: error: 'a' was not declared in this scope
   38 |     scanf("%lld%lld%lld",&a,&b,&c);
      |                           ^
a.cc:38:30: error: 'b' was not declared in this scope
   38 |     scanf("%lld%lld%lld",&a,&b,&c);
      |                              ^
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    swap(A,B);
    swap(A,C);
    A.println();
    B.println();
    C.println();
    
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    swap(A,B);
    ^
  symbol:   method swap(int,int)
  location: class Main
Main.java:11: error: cannot find symbol
    swap(A,C);
    ^
  symbol:   method swap(int,int)
  location: class Main
Main.java:12: error: int cannot be dereferenced
    A.println();
     ^
Main.java:13: error: int cannot be dereferenced
    B.println();
     ^
Main.java:14: error: int cannot be dereferenced
    C.println();
     ^
5 errors
Language: C++

#include <iostream>
#include <cstddef>

int main()
{
	ios_base::sync_with_studio(false);
	cin.tie(NULL);
  
	int a, b, c;
	cin >> a >> b >> c;
	swap(a, b);
	swap(a, c);
	cout << a << " " << b << " " << c;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'ios_base' has not been declared
    6 |         ios_base::sync_with_studio(false);
      |         ^~~~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin.tie(NULL);
      |         ^~~
      |         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:11:9: error: 'swap' was not declared in this scope
   11 |         swap(a, b);
      |         ^~~~
a.cc:11:9: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << a << " " << b << " " << c;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

using namespace std;

typedef long long 11;

int main()
{
	ios_base::sync_with_studio(false);
	cin.tie(NULL);
  
	int a, b, c;
	cin >> a >> b >> c;
	swap(a, b);
	swap(a, c);
	cout << a << " " << b << " " << c;
	return 0;
}

Compiler output:
a.cc:3:19: error: expected unqualified-id before numeric constant
    3 | typedef long long 11;
      |                   ^~
a.cc: In function 'int main()':
a.cc:7:9: error: 'ios_base' has not been declared
    7 |         ios_base::sync_with_studio(false);
      |         ^~~~~~~~
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin.tie(NULL);
      |         ^~~
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:8:17: error: 'NULL' was not declared in this scope
    8 |         cin.tie(NULL);
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | using namespace std;
a.cc:12:9: error: 'swap' was not declared in this scope
   12 |         swap(a, b);
      |         ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << a << " " << b << " " << c;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

int main()
{
	ios_base::sync_with_studio(false);
	cin.tie(NULL);
  
	int a, b, c;
	cin >> a >> b >> c;
	swap(a, b);
	swap(a, c);
	cout << a << " " << b << " " << c;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'ios_base' has not been declared
    3 |         ios_base::sync_with_studio(false);
      |         ^~~~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin.tie(NULL);
      |         ^~~
a.cc:4:17: error: 'NULL' was not declared in this scope
    4 |         cin.tie(NULL);
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | int main()
a.cc:8:9: error: 'swap' was not declared in this scope
    8 |         swap(a, b);
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << a << " " << b << " " << c;
      |         ^~~~
Language: C

#include<iostream>
using namespace std;
int main()
{
  int x, y, z;
  cin>>x>>y>>z;
  cout<<z<<" "<<x<<" "<<y;
  return 0;
}

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

#include <iostream>

int main() {
    int a, b, c, temp;
    cin>>a>>b>>c;
    temp = b;
    b = a;
    a = temp;
    temp = c;
    c = a;
    a = temp;
    cout<<a<<" "<<b<<" "<<c; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;
      |     ^~~
      |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<a<<" "<<b<<" "<<c;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <stdio.h>

int main(){
  int X,Y,Z;
  scanf("%d %d %d" ,&X,&Y,&Z);
  int T;W;
  T=X;
  X=Y;
  Y=T;
  T=Z;
  Z=X;
  X=T;
 
  
  printf("%d %d %d\n",X,Y,Z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'W' undeclared (first use in this function)
    6 |   int T;W;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#inlcude <stdio.h>
int main () {
  int a, b, c;
  scanf("%d%d%d",&a, &b, &c);
  printf("%d%d%d", c, a, b);
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d",&a, &b, &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude <stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d",&a, &b, &c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d%d%d", c, a, b);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#inlcude <stdio.h>
int main () {
  int a, b, c;
  scanf("%d%d%d",&a, &b, &c);
  printf("%d%d%d", &c, &a, &b);
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d",&a, &b, &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude <stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d",&a, &b, &c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d%d%d", &c, &a, &b);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define int long long
int32_t main(){
    IOS;
    int t;
    cin >> a >> b >> c;
    cout << c << a << b << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:10:12: error: 'a' was not declared in this scope
   10 |     cin >> a >> b >> c;
      |            ^
a.cc:10:17: error: 'b' was not declared in this scope
   10 |     cin >> a >> b >> c;
      |                 ^
a.cc:10:22: error: 'c' was not declared in this scope
   10 |     cin >> a >> b >> c;
      |                      ^
Language: C

＃include<stdio.h>


int main()
{

  int x ;
int y;
int z;

do{
printf(“X=”);  scanf(“%d”,x);
}while(100<x||x<0);

do{
printf(“Y=”);  scanf(“%d”,y);
}while(100<y||y<0);

do{
printf(“Z=”);  scanf(“%d”,z);
}while(100<z||z<0);

**/入れ替える
x=y;
y=z;
z=x;
**/

printf(“入れ替えました”);
printf(“X=%d Y=%d Z=%d”,x,y,z)



return();
}



Compiler output:
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ＃include<stdio.h>
      |          ^
main.c:12:8: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |        ^~~~~~~~
main.c:12:11: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                  ^~~~~~~~
main.c:12:22: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                                    ^~~~~~~~
main.c:12:25: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                                              ^~~~~~~~
main.c:16:8: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |        ^~~~~~~~
main.c:16:11: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                  ^~~~~~~~
main.c:16:22: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                                    ^~~~~~~~
main.c:16:25: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                                              ^~~~~~~~
main.c:20:8: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |        ^~~~~~~~
main.c:20:11: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                  ^~~~~~~~
main.c:20:22: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                                    ^~~~~~~~
main.c:20:25: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                                              ^~~~~~~~
main.c:29:8: error: stray '\342' in program
   29 | printf(<U+201C><U+5165><U+308C><U+66FF><U+3048><U+307E><U+3057><U+305F><U+201D>);
      |        ^~~~~~~~
main.c:29:23: error: stray '\342' in program
   29 | printf(<U+201C><U+5165><U+308C><U+66FF><U+3048><U+307E><U+3057><U+305F><U+201D>);
      |                                                                        ^~~~~~~~
main.c:30:8: error: stray '\342' in program
   30 | printf(<U+201C>X=%d Y=%d Z=%d<U+201D>,x,y,z)
      |        ^~~~~~~~
main.c:30:23: error: stray '\342' in program
   30 | printf(<U+201C>X=%d Y=%d Z=%d<U+201D>,x,y,z)
      |                              ^~~~~~~~
Language: C

＃include<stdio.h>


int main()
{

int x ;
int y;
int z;

do{
printf(“X=”);  scanf(“%d”,x);
}while(100<x||x<0);

do{
printf(“Y=”);  scanf(“%d”,y);
}while(100<y||y<0);

do{
printf(“Z=”);  scanf(“%d”,z);
}while(100<z||z<0);

**/入れ替える
x=y;
y=z;
z=x;
**/

printf(“入れ替えました”);
printf(“X=%d Y=%d Z=%d”,x,y,z)



return();
}



Compiler output:
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ＃include<stdio.h>
      |          ^
main.c:12:8: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |        ^~~~~~~~
main.c:12:11: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                  ^~~~~~~~
main.c:12:22: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                                    ^~~~~~~~
main.c:12:25: error: stray '\342' in program
   12 | printf(<U+201C>X=<U+201D>);  scanf(<U+201C>%d<U+201D>,x);
      |                                              ^~~~~~~~
main.c:16:8: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |        ^~~~~~~~
main.c:16:11: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                  ^~~~~~~~
main.c:16:22: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                                    ^~~~~~~~
main.c:16:25: error: stray '\342' in program
   16 | printf(<U+201C>Y=<U+201D>);  scanf(<U+201C>%d<U+201D>,y);
      |                                              ^~~~~~~~
main.c:20:8: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |        ^~~~~~~~
main.c:20:11: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                  ^~~~~~~~
main.c:20:22: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                                    ^~~~~~~~
main.c:20:25: error: stray '\342' in program
   20 | printf(<U+201C>Z=<U+201D>);  scanf(<U+201C>%d<U+201D>,z);
      |                                              ^~~~~~~~
main.c:29:8: error: stray '\342' in program
   29 | printf(<U+201C><U+5165><U+308C><U+66FF><U+3048><U+307E><U+3057><U+305F><U+201D>);
      |        ^~~~~~~~
main.c:29:23: error: stray '\342' in program
   29 | printf(<U+201C><U+5165><U+308C><U+66FF><U+3048><U+307E><U+3057><U+305F><U+201D>);
      |                                                                        ^~~~~~~~
main.c:30:8: error: stray '\342' in program
   30 | printf(<U+201C>X=%d Y=%d Z=%d<U+201D>,x,y,z)
      |        ^~~~~~~~
main.c:30:23: error: stray '\342' in program
   30 | printf(<U+201C>X=%d Y=%d Z=%d<U+201D>,x,y,z)
      |                              ^~~~~~~~
Language: C

#include <stdio.h>
 
int main(void){
int x,y,z;
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);
puts("%d %d %d",z,x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: too many arguments to function 'puts'
    8 | puts("%d %d %d",z,x,y);
      | ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include <stdio.h>
 
int main(void){
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
puts("%d %d %d",z,x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: too many arguments to function 'puts'
    6 | puts("%d %d %d",z,x,y);
      | ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include <stdio.h>
 
int main(void){
int x,y,z;
scanf("",&x,&y,&z);
puts("%d %d %d",z,x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: too many arguments to function 'puts'
    6 | puts("%d %d %d",z,x,y);
      | ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
int main(){
  int a, b, c;
  int t1, t2;
  scanf("%d%d%d", &a&b&c);
  t1 = a;
  t2 = b;
  a = c;
  b = t1;
  c = t2;
  printf("%d%d%d¥n", a, b, c);
  return 0
}
  

Compiler output:
main.c: In function 'main':
main.c:5:21: error: invalid operands to binary & (have 'int *' and 'int')
    5 |   scanf("%d%d%d", &a&b&c);
      |                   ~~^
      |                   |
      |                   int *
main.c:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main(void)
{
  int n,m,s,t;
  int total=0;
  int a[1000];
  double u;
  
  scanf("%d %d",&n, &m);
  for(S=0;s<n;s++){
    scanf("%d",a[n]);
    total=total+a[n];
  }
  
  u=1/(4*m);
  
  for(s=0;s<n;s++){
    if(a[n]>=total*u){
      t++;
    }
  }
  
  if(t>=m)
    puts("Yes");
  else
    puts("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'S' undeclared (first use in this function)
   11 |   for(S=0;s<n;s++){
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main()
{
int x,y,z;
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);

printf(“%d,%d,%d\n”,z,x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: stray '\342' in program
   10 | printf(<U+201C>%d,%d,%d\n<U+201D>,z,x,y);
      |        ^~~~~~~~
main.c:10:9: error: expected expression before '%' token
   10 | printf(“%d,%d,%d\n”,z,x,y);
      |         ^
main.c:10:17: error: stray '\' in program
   10 | printf(“%d,%d,%d\n”,z,x,y);
      |                 ^
main.c:10:19: error: stray '\342' in program
   10 | printf(<U+201C>%d,%d,%d\n<U+201D>,z,x,y);
      |                          ^~~~~~~~
Language: C

#include <stdio.h>

int main()
{
  int x,y,z;
  scanf("%d",&x);
  scanf("%d",&y);
  scanf("%d",&z);
  x=y;
  y=z;
  printf("%d,%d,%d\"n,&x,&y,&z);
         return 0;
         }

Compiler output:
main.c: In function 'main':
main.c:11:10: warning: missing terminating " character
   11 |   printf("%d,%d,%d\"n,&x,&y,&z);
      |          ^
main.c:11:10: error: missing terminating " character
   11 |   printf("%d,%d,%d\"n,&x,&y,&z);
      |          ^~~~~~~~~~~~~~~~~~~~~~~
main.c:12:10: error: expected expression before 'return'
   12 |          return 0;
      |          ^~~~~~
main.c:12:19: error: expected ';' before '}' token
   12 |          return 0;
      |                   ^
      |                   ;
   13 |          }
      |          ~
Language: C

#include <stdio.h>

int main()
{
int x,y,z;
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);

x=y;
y=z;

printf("%d,%d,%d\"n,&x,&y,&z);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:8: warning: missing terminating " character
   13 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^
main.c:13:8: error: missing terminating " character
   13 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
main.c:14:1: error: expected expression before 'return'
   14 | return 0;
      | ^~~~~~
main.c:14:10: error: expected ';' before '}' token
   14 | return 0;
      |          ^
      |          ;
   15 | }
      | ~
Language: C

#include <stdio.h>

int main()
{
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);

x=y;
y=z;

printf("%d,%d,%d\"n,&x,&y,&z);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'x' undeclared (first use in this function)
    5 | scanf("%d",&x);
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: 'y' undeclared (first use in this function)
    6 | scanf("%d",&y);
      |             ^
main.c:7:13: error: 'z' undeclared (first use in this function)
    7 | scanf("%d",&z);
      |             ^
main.c:12:8: warning: missing terminating " character
   12 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^
main.c:12:8: error: missing terminating " character
   12 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before 'return'
   13 | return 0;
      | ^~~~~~
main.c:13:10: error: expected ';' before '}' token
   13 | return 0;
      |          ^
      |          ;
   14 | }
      | ~
Language: C

#include <stdio.h>

int main()
{
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);

x=y
y=z

printf("%d,%d,%d\"n,&x,&y,&z);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'x' undeclared (first use in this function)
    5 | scanf("%d",&x);
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: 'y' undeclared (first use in this function)
    6 | scanf("%d",&y);
      |             ^
main.c:7:13: error: 'z' undeclared (first use in this function)
    7 | scanf("%d",&z);
      |             ^
main.c:9:4: error: expected ';' before 'y'
    9 | x=y
      |    ^
      |    ;
   10 | y=z
      | ~   
main.c:12:8: warning: missing terminating " character
   12 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^
main.c:12:8: error: missing terminating " character
   12 | printf("%d,%d,%d\"n,&x,&y,&z);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
  int x, y, z, t;
  
  scanf("%d %d %d",&x, &y &z);
  
  t=x;
  x=y;
  y=t;
  
  t=x:
  x=z;
  z=t;
  
  printf("%d %d %d", x, y, z);
}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: invalid operands to binary & (have 'int *' and 'int')
    7 |   scanf("%d %d %d",&x, &y &z);
      |                        ~~ ^
      |                        |
      |                        int *
main.c:13:6: error: expected ';' before ':' token
   13 |   t=x:
      |      ^
      |      ;
Language: C

#include <stdio.h>
int main(void){

int X,Y,Z;
int P;

scanf("%d,%d,%d", &X, &Y, &Z);

P = Y;
Y = X;
X = Z;
Z = p;

printf("%d %d %d", X, Y, Z);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'p' undeclared (first use in this function)
   12 | Z = p;
      |     ^
main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>
int main(void){

int X,Y,Z;
int P;

scanf("%d,%d,%d", &X, &Y, &Z);

P = Y;
Y = X;
X = Z;
Z = p;

printf("%d %d %d", X, Y, Z);

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,c,t;
  scanf("%d%d%d",&a &b &c);
  t=a;
  a=b;
  b=t;
  t=a;
  a=c;
  c=t;
  printf("%d%d%d",a b c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:21: error: invalid operands to binary & (have 'int *' and 'int')
    4 |   scanf("%d%d%d",&a &b &c);
      |                  ~~ ^
      |                  |
      |                  int *
main.c:11:20: error: expected ')' before 'b'
   11 |   printf("%d%d%d",a b c);
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(void)
{
  int a,b,c,num;
scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);

  a=num;
  a=c;
  c=b;
  b=num;
  
  printf("%d %d %d",a b c);
 
return 0;
}

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

#include <stdio.h>

int main(void){
  int x,y,z;
  int temp1,temp2;
  scanf("%d%d%d",&x&y&z);
  temp1 = x;
  x = y;
  y= temp1;
  
  temp2 = x;
  x = z;
  z = temp2;
  printf("%d %d %d",x,y,z);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d%d%d",&x&y&z);
      |                  ~~^
      |                  |
      |                  int *
Language: C

#include <stdio.h>
int main (){
  int a,b,c,tmp;
  scanf("%d"&a);
  scanf("%d"&b);
  scanf("%d"&c);
  tmp=a;
  a=b;
  b=tmp;
  tmp=a;
  a=c;
  c=tmp;
  printf("%d %d %d",a,b,c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: invalid operands to binary & (have 'char *' and 'int')
    4 |   scanf("%d"&a);
      |         ~~~~^
      |         |
      |         char *
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d"&b);
      |         ~~~~^
      |         |
      |         char *
main.c:6:13: error: invalid operands to binary & (have 'char *' and 'int')
    6 |   scanf("%d"&c);
      |         ~~~~^
      |         |
      |         char *
Language: C

#include <stdlib.h>
int main (){
  int a,b,c,tmp;
  scanf("%d"&a);
  scanf("%d"&b);
  scanf("%d"&c);
  tmp=a;
  a=b;
  b=tmp;
  tmp=a;
  a=c;
  c=tmp;
  printf("%d %d %d",a,b,c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d"&a);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <stdlib.h>
  +++ |+#include <stdio.h>
    2 | int main (){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d"&a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:13: error: invalid operands to binary & (have 'char *' and 'int')
    4 |   scanf("%d"&a);
      |         ~~~~^
      |         |
      |         char *
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d"&b);
      |         ~~~~^
      |         |
      |         char *
main.c:6:13: error: invalid operands to binary & (have 'char *' and 'int')
    6 |   scanf("%d"&c);
      |         ~~~~^
      |         |
      |         char *
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d %d %d",a,b,c);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main (){
  int a,b,c,tmp;
  scanf("%d"&a);
  scanf("%d"&b);
  scanf("%d"&c);
  tmp=a;
  a=b;
  b=tmp;
  tmp=a;
  a=c;
  c=tmp;
  printf("%d %d %d",a,b,c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d"&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main (){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d"&a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:13: error: invalid operands to binary & (have 'char *' and 'int')
    3 |   scanf("%d"&a);
      |         ~~~~^
      |         |
      |         char *
main.c:4:13: error: invalid operands to binary & (have 'char *' and 'int')
    4 |   scanf("%d"&b);
      |         ~~~~^
      |         |
      |         char *
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d"&c);
      |         ~~~~^
      |         |
      |         char *
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("%d %d %d",a,b,c);
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

void main (){
  int a,b,c,tmp;
  scanf("%d"&a);
  scanf("%d"&b);
  scanf("%d"&c);
  tmp=a;
  a=b;
  b=tmp;
  tmp=a;
  a=c;
  c=tmp;
  printf("%d %d %d",a,b,c);
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d"&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main (){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d"&a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:13: error: invalid operands to binary & (have 'char *' and 'int')
    3 |   scanf("%d"&a);
      |         ~~~~^
      |         |
      |         char *
main.c:4:13: error: invalid operands to binary & (have 'char *' and 'int')
    4 |   scanf("%d"&b);
      |         ~~~~^
      |         |
      |         char *
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d"&c);
      |         ~~~~^
      |         |
      |         char *
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("%d %d %d",a,b,c);
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main()
{
  int a,b,c,temp;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",$c);
  
  temp = a;
  a = b;
  b = temp;
  temp = a;
  a = c;
  c = temp;
  printf("%d %d %d\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: '$c' undeclared (first use in this function); did you mean 'c'?
    8 |   scanf("%d",$c);
      |              ^~
      |              c
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: Java


import java.util.Scanner;
public class MainB {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int X=in.nextInt();
		int Y=in.nextInt();
		int Z=in.nextInt();
		System.out.print(Z+" "+X+" "+Y);
	}
}


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

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

int main() {
  string x, y, z;
  cin >> x >> y >> z;
  cout << "z"+" "+"x"+" "+"y" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'const char [2]' and 'const char [2]' to binary 'operator+'
   10 |   cout << "z"+" "+"x"+" "+"y" << endl;
      |           ~~~^~~~
      |           |   |
      |           |   const char [2]
      |           const char [2]
Language: C++

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
     	int a,b,c;
      	cin>>a>>b>>c;
      	cout<<swap(swap(a,b),c)<<endl;
      	return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: invalid use of void expression
    7 |         cout<<swap(swap(a,b),c)<<endl;
      |                    ~~~~^~~~~
Language: C++

#include<bits/stdc++/h>
using namespace std;
int main()
{
 	int a,b,c;
  	cin>>a>>b>>c;
  	cout<<swap(swap(a,b),c)<<endl;
  	return 0;
}

Compiler output:
a.cc: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 a,b,c;
  int temp;
  cin>>a>>b>>c;
  temp= a;
  a=b;
  b=temp;
  temp= a;
  a=c;
  c=temp;
  cout<<a<<" "<<b<<" "<<c" ";
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before string constant
   14 |   cout<<a<<" "<<b<<" "<<c" ";
      |                          ^~~
      |                          ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c,temp;
  int temp;
  cin>>a>>b>>c>>temp;
  temp= a;
  a=b;
  b=temp;
  temp= a;
  a=c;
  c=temp;
  cout<<a<<b<<c;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: redeclaration of 'int temp'
    6 |   int temp;
      |       ^~~~
a.cc:5:13: note: 'int temp' previously declared here
    5 |   int a,b,c,temp;
      |             ^~~~
Language: C

#include<stdio.h>
int main(void)
{  
    int A,B,C;
    int tmp;
  
    scanf("%d%d%d",&X,&Y,&Z);
  
      tmp=A;
      A=B;
      B=tmp;
  
      tmp=A;
      A=C;
      C=tmp;
    
    printf("%d %d %d\n",A,B,C);

    return 0;
}
    
  
      
  

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'X' undeclared (first use in this function)
    7 |     scanf("%d%d%d",&X,&Y,&Z);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:24: error: 'Y' undeclared (first use in this function)
    7 |     scanf("%d%d%d",&X,&Y,&Z);
      |                        ^
main.c:7:27: error: 'Z' undeclared (first use in this function)
    7 |     scanf("%d%d%d",&X,&Y,&Z);
      |                           ^
Language: C++

#includie<bits/stdc++.h>
using namespace std;
int main()
{
  int x,y,z;
  cin>>x>>y>>z;
  cout<<z<<" "<<x<<" "<<y<<endl;
}

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

#include <bits/stdc++.h>
int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  swap(a,b);
  swap(a,c);
  printf("%d %d %d",a,b,c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'swap' was not declared in this scope
    6 |   swap(a,b);
      |   ^~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from a.cc:1:
/usr/include/c++/14/bits/regex.h:2230:5: note:   'std::__cxx11::swap'
 2230 |     swap(match_results<_Bi_iter, _Alloc>& __lhs,
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
In file included from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/stdexcept:38,
                 from /usr/include/c++/14/system_error:43,
                 from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
In file included from /usr/include/c++/14/filesystem:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_path.h:736:15: note:   'std::filesystem::__cxx11::swap'
  736 |   inline void swap(path& __lhs, path& __rhs) noexcept { __lhs.swap(__rhs); }
      |               ^~~~
Language: C++


ソースコード 

Copy
Copy
#include<stdio.h>
int main(void)
{
  int x,y,z;
  int a;
  
  scanf("%d",&x);
  scanf("%d",&y);
  scanf("%d",&z);
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  
  a=x;
  x=y;
  y=a;
  
  a=z;
  z=x;
  x=a;
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  return0;
}

Compiler output:
a.cc:2:1: error: '\U000030bd\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' does not name a type
    2 | ソースコード
      | ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'scanf' was not declared in this scope
   12 |   scanf("%d",&x);
      |   ^~~~~
a.cc:16:3: error: 'printf' was not declared in this scope
   16 |   printf("%d",x);
      |   ^~~~~~
a.cc:7:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    6 | #include<stdio.h>
  +++ |+#include <cstdio>
    7 | int main(void)
a.cc:31:3: error: 'return0' was not declared in this scope
   31 |   return0;
      |   ^~~~~~~