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

	int num;
	cin >> num;
	int p1 = 0, p2 = 0;

	for (int i = 0; i < num; i++)
	{
		string w1, w2;
		cin >> w1;
		cin >> w2;

		if (w1 > w2)
			p2 += 3;
		else if (w2 > w1)
			p1 += 3;
		else
		{
			p1++;
			p2++;
		}

	}
	cout << p1 << " " << p2 << endl;


}

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> num;
      |         ^~~
a.cc:5:9: error: expected unqualified-id before 'for'
    5 |         for (int i = 0; i < num; i++)
      |         ^~~
a.cc:5:25: error: 'i' does not name a type
    5 |         for (int i = 0; i < num; i++)
      |                         ^
a.cc:5:34: error: 'i' does not name a type
    5 |         for (int i = 0; i < num; i++)
      |                                  ^
a.cc:22:9: error: 'cout' does not name a type
   22 |         cout << p1 << " " << p2 << endl;
      |         ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include <bits/stdc++.h>
int array[2000000];

int main(void)
{
    int n;
    int a, b;
    a = b = 0;
    scanf("%d", &n);
    string s1, s2;
    while (cin >> s1 >> s2){
        if (s1 > s2) a += 3;
        else if (s1 < s2) b += 3;
        else a++, b++;
    }
    printf("%d %d\n", a, b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'string' was not declared in this scope
   10 |     string s1, s2;
      |     ^~~~~~
a.cc:10:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:11:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |     while (cin >> s1 >> s2){
      |            ^~~
      |            std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:19: error: 's1' was not declared in this scope; did you mean 'y1'?
   11 |     while (cin >> s1 >> s2){
      |                   ^~
      |                   y1
a.cc:11:25: error: 's2' was not declared in this scope
   11 |     while (cin >> s1 >> s2){
      |                         ^~
Language: C++

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

int n;
int a,b,c = 0;
char name[6453];
char name2[3453];
int cou;
int main()
{
    scanf("%d",&n);

    for(int i = 0; i < n; i++)
    {
        scanf("%s %s",name,name2);
        cou = strlen(name);
        if(cou < strlen(name2))cou = strlen(name2);
        c = 0;
        for(int j = 0; j < cou; j++)
        {
            if(name[j] > name2[j])
            {
                a = a + 3;
                break;
            }
            else if(name[j] < name2[j])
            {
                b = b + 3;
                break;
            }
            c++;
        }
        if(c == cou)
        {
            a = a + 1;
            b = b + 1;
        }
    }
    printf("%d %d\n",a,b);
}




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

int n;
int a,b,c = 0;
char name[6453];
char name2[3453];
int cou;
int main()
{
    scanf("%d",&n);

    for(int i = 0; i < n; i++)
    {
        scanf("%s %s",name,name2);
        cou = strlen(name);
        if(cou < strlen(name2))cou = strlen(name2);
        c = 0;
        for(int j = 0; j < cou; j++)
        {
            if(name[j] > name2[j])
            {
                a = a + 3;
                break;
            }
            else if(name[j] < name2[j])
            {
                b = b + 3;
                break;
            }
            c++;
        }
        if(c == cou)
        {
            a = a + 1;
            b = b + 1;
        }
    }
    printf("%d %d\n",a,b);
}

Compiler output:
a.cc:48:5: error: redefinition of 'int n'
   48 | int n;
      |     ^
a.cc:4:5: note: 'int n' previously declared here
    4 | int n;
      |     ^
a.cc:49:5: error: redefinition of 'int a'
   49 | int a,b,c = 0;
      |     ^
a.cc:5:5: note: 'int a' previously declared here
    5 | int a,b,c = 0;
      |     ^
a.cc:49:7: error: redefinition of 'int b'
   49 | int a,b,c = 0;
      |       ^
a.cc:5:7: note: 'int b' previously declared here
    5 | int a,b,c = 0;
      |       ^
a.cc:49:9: error: redefinition of 'int c'
   49 | int a,b,c = 0;
      |         ^
a.cc:5:9: note: 'int c' previously defined here
    5 | int a,b,c = 0;
      |         ^
a.cc:50:6: error: redefinition of 'char name [6453]'
   50 | char name[6453];
      |      ^~~~
a.cc:6:6: note: 'char name [6453]' previously declared here
    6 | char name[6453];
      |      ^~~~
a.cc:51:6: error: redefinition of 'char name2 [3453]'
   51 | char name2[3453];
      |      ^~~~~
a.cc:7:6: note: 'char name2 [3453]' previously declared here
    7 | char name2[3453];
      |      ^~~~~
a.cc:52:5: error: redefinition of 'int cou'
   52 | int cou;
      |     ^~~
a.cc:8:5: note: 'int cou' previously declared here
    8 | int cou;
      |     ^~~
a.cc:53:5: error: redefinition of 'int main()'
   53 | int main()
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
Language: C++

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

int n;
int a,b,c = 0;
char name[6453];
char name2[3453];
int cou;
int main()
{
    scanf("%d",&n);

    for(int i = 0; i < n; i++)
    {
        scanf("%s %s",name,name2);
        cou = strlen(name);
        if(cou < strlen(name2))cou = strlen(name2);
        c = 0;
        for(int j = 0; j < cou; j++)
        {
            if(name[j] > name2[j])
            {
                a = a + 3;
                break;
            }
            else if(name[j] < name2[j])
            {
                b = b + 3;
                break;
            }
            c++;
        }
        if(c == cou)
        {
            a = a + 1;
            b = b + 1;
        }
    }
    printf("%d %d\n",a,b);
}
#include<stdio.h>
#include<string.h>

int n;
int a,b,c = 0;
char name[6453];
char name2[3453];
int cou;
int main()
{
    scanf("%d",&n);

    for(int i = 0; i < n; i++)
    {
        scanf("%s %s",name,name2);
        cou = strlen(name);
        if(cou < strlen(name2))cou = strlen(name2);
        c = 0;
        for(int j = 0; j < cou; j++)
        {
            if(name[j] > name2[j])
            {
                a = a + 3;
                break;
            }
            else if(name[j] < name2[j])
            {
                b = b + 3;
                break;
            }
            c++;
        }
        if(c == cou)
        {
            a = a + 1;
            b = b + 1;
        }
    }
    printf("%d %d\n",a,b);
}

Compiler output:
a.cc:44:5: error: redefinition of 'int n'
   44 | int n;
      |     ^
a.cc:4:5: note: 'int n' previously declared here
    4 | int n;
      |     ^
a.cc:45:5: error: redefinition of 'int a'
   45 | int a,b,c = 0;
      |     ^
a.cc:5:5: note: 'int a' previously declared here
    5 | int a,b,c = 0;
      |     ^
a.cc:45:7: error: redefinition of 'int b'
   45 | int a,b,c = 0;
      |       ^
a.cc:5:7: note: 'int b' previously declared here
    5 | int a,b,c = 0;
      |       ^
a.cc:45:9: error: redefinition of 'int c'
   45 | int a,b,c = 0;
      |         ^
a.cc:5:9: note: 'int c' previously defined here
    5 | int a,b,c = 0;
      |         ^
a.cc:46:6: error: redefinition of 'char name [6453]'
   46 | char name[6453];
      |      ^~~~
a.cc:6:6: note: 'char name [6453]' previously declared here
    6 | char name[6453];
      |      ^~~~
a.cc:47:6: error: redefinition of 'char name2 [3453]'
   47 | char name2[3453];
      |      ^~~~~
a.cc:7:6: note: 'char name2 [3453]' previously declared here
    7 | char name2[3453];
      |      ^~~~~
a.cc:48:5: error: redefinition of 'int cou'
   48 | int cou;
      |     ^~~
a.cc:8:5: note: 'int cou' previously declared here
    8 | int cou;
      |     ^~~
a.cc:49:5: error: redefinition of 'int main()'
   49 | int main()
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
Language: C++

#include<stdio.h>
int main(){
  int n,i,j,c=0,f,d=0,e=0;
  char a[101],b[101];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s %s",a,b);
    int x=strlen(a),y=strlen(b);
    if(x<=y){
      f=x;
    }
    if(x>y){
      f=y;
    }
    for(j=0;j<f;j++){
      if(a[c]!=b[c]){
	if(a[c]>b[c]){
	  d+=3;
	  break;
	}
	if(a[c]<b[c]){
	  e+=3;
	  break;
	}
      }
      c++;
      if(c==f){
	d++;
	e++;
      }
    }
    c=0;
  }
  printf("%d %d\n",d,e);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'strlen' was not declared in this scope
    8 |     int x=strlen(a),y=strlen(b);
      |           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:9:11: error: 'y' was not declared in this scope
    9 |     if(x<=y){
      |           ^
a.cc:12:10: error: 'y' was not declared in this scope
   12 |     if(x>y){
      |          ^
Language: C++

#include<stdio.h>
int main(){
  int n,i,j,c=0,f,d=0,e=0;
  char a[101],b[101];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s %s",a,b);
    int x=strlen(a),y=strlen(b);
    if(x<=y){
      f=x;
    }
    if(x>y){
      f=y;
    }
    for(j=0;j<f;j++){
      if(a[c]!=b[c]){
	if(a[c]>b[c]){
	  d+=3;
	  break;
	}
	if(a[c]<b[c]){
	  e+=3;
	  break;
	}
      }
      c++;
      if(c==f){
	if(x<y){
	  d+=3;
	}
	if(x>y){
	  e+=3;
	}
	d++;
	e++;
      }
    }
    c=0;
  }
  printf("%d %d\n",d,e);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'strlen' was not declared in this scope
    8 |     int x=strlen(a),y=strlen(b);
      |           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:9:11: error: 'y' was not declared in this scope
    9 |     if(x<=y){
      |           ^
a.cc:12:10: error: 'y' was not declared in this scope
   12 |     if(x>y){
      |          ^
a.cc:28:14: error: 'y' was not declared in this scope
   28 |         if(x<y){
      |              ^
a.cc:31:14: error: 'y' was not declared in this scope
   31 |         if(x>y){
      |              ^
Language: C++

#include<stdio.h>
int main(){
  int n,i,j,c=0,f,d=0,e=0;
  char a[1001],b[1001];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s %s",a,b);
    int x=strlen(a),y=strlen(b);
    if(x<=y){
      f=x;
    }
    if(x>y){
      f=y;
    }
    for(j=0;j<f;j++){
      if(a[c]!=b[c]){
	if(a[c]>b[c]){
	  d+=3;
	  break;
	}
	if(a[c]<b[c]){
	  e+=3;
	  break;
	}
      }
      c++;
      if(c==f){
	if(x<y){
	  d+=3;
	}
	if(x>y){
	  e+=3;
	}
	d++;
	e++;
      }
    }
    c=0;
  }
  printf("%d %d\n",d,e);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'strlen' was not declared in this scope
    8 |     int x=strlen(a),y=strlen(b);
      |           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:9:11: error: 'y' was not declared in this scope
    9 |     if(x<=y){
      |           ^
a.cc:12:10: error: 'y' was not declared in this scope
   12 |     if(x>y){
      |          ^
a.cc:28:14: error: 'y' was not declared in this scope
   28 |         if(x<y){
      |              ^
a.cc:31:14: error: 'y' was not declared in this scope
   31 |         if(x>y){
      |              ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n,t=0,h=0;
string a,b;
cin >> n;
for(int i=0;i<n;i++){
cin >> a >> b;
if(a>b)t+=3;
if(a<b)h+=3;
if(a==b){t++;h++}
}
cout << t << " " << h << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before '}' token
   12 | if(a==b){t++;h++}
      |                 ^
      |                 ;
Language: C++

#include <iostream>
#include <string>
#define MAX 100
using namespace std ;

int main()
{
	int n;
	int t=0,h=0;
	char tarou[MAX], hanako[MAX];
	
	cin >> n ;
	
	for(;n>0;n--){
		
		cin >> tarou >> hanako ;
		
		if(strcmp(tarou, hanako)>0){
			t = 3;
		}
		
		if(strcmp(tarou, hanako)==0){
			t++;
			h++;
		}
		
		if(strcmp(tarou, hanako)<0){
			h+=3;
		}
	}    
	
	cout << t << ' ' << h << endl ;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'strcmp' was not declared in this scope
   18 |                 if(strcmp(tarou, hanako)>0){
      |                    ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
a.cc:22:20: error: 'strcmp' was not declared in this scope
   22 |                 if(strcmp(tarou, hanako)==0){
      |                    ^~~~~~
a.cc:22:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:27:20: error: 'strcmp' was not declared in this scope
   27 |                 if(strcmp(tarou, hanako)<0){
      |                    ^~~~~~
a.cc:27:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

// ・AOJ10027(stringの練習問題)#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

int main() {
	int n, tarou_p, hanako_p;
	string tarou, hanako;
	scanf("%d", &n);
	for (int i=0; i<n; i++) {
		cin >> tarou;
		cin >> hanako;
		if (tarou == hanako) {
			tarou_p++; hanako_p++;
		} else if (tarou < hanako){
			hanako_p+=3;
		} else { tarou_p+=3; }
	}
	printf("%d %d", tarou_p, hanako_p);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'cin' was not declared in this scope
   12 |                 cin >> tarou;
      |                 ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <string>
  +++ |+#include <iostream>
    4 |
Language: C++

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

using namespace std;
 
int main(){

  string a,b;
  int ap=0,bp=0,n;
  cin >> n;
  for(i = 1 ; i<n ; i++){
    cin >> a >> b;
    if( a > b){
      ap += 3;
    }else if(b > a){
      bp += 3;
    }
    else{
      ap += 1;
      bp += 1;
    }
  }
    
    cout << ap << bp;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i = 1 ; i<n ; i++){
      |       ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string a,b;
    int n=0;
    int sumA=0;
    int sumB=0;
    cin >> n;
    int i=0;
    while(i<n){
    cin >> a >> b;
    if(a[0]>b[0]){
        sumA +=3;}
    else if(a[0]<b[0]){
        sumB+=3;}
    else if(a[0]=b[0]){
        sumA +=1 ,sumB +=1;}
    }
    cout << sum A << " " << sumB << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'sum' was not declared in this scope; did you mean 'sumB'?
   20 |     cout << sum A << " " << sumB << endl;
      |             ^~~
      |             sumB
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string a,b;
    int n=0;
    int sumA=0;
    int sumB=0;
    cin >> n;
    int i=0;
    while(i<n){{
    cin >> a >> b;
    if(a[0]>b[0]){
        sumA +=3;}
    else if(a[0]<b[0]){
        sumB+=3;}
    else if(a[0]==b[0]){
        sumA +=1; 
        sumB +=1;}
    }
    i++
    }
    cout << sumA << " " << sumB << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: expected ';' before '}' token
   21 |     i++
      |        ^
      |        ;
   22 |     }
      |     ~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string a,b;
    int n=0;
    int sumA=0;
    int sumB=0;
    cin >> n;
    int i=0;
    while(i<n){{
    cin >> a >> b;
    if(a[0]>b[0]){
        sumA +=3;}
    else if(a[0]<b[0]){
        sumB+=3;}
    else if(a[0]==b[0]){
        sumA +=1; 
        sumB +=1;}
    i++;
    }
    cout << sumA << " " << sumB << endl;
    return 0;
}

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

#include <iostream>
using namespace std;

int main() {
int n,pa=0,pb=0;
cin>>n;
string a,b;
while(int k=0 ; k<n; k++){
	cin>>a>>b;
	if(a>b){
		pa=pa+3;
	}
	if(a<b){
		pb=pb+3;
	}
	else{
		pa=pa+1;
		pb=pb+1;
	}
	}
	cout<<pa<<" "<<pb<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ')' before ';' token
    8 | while(int k=0 ; k<n; k++){
      |      ~       ^~
      |              )
a.cc:8:17: error: 'k' was not declared in this scope
    8 | while(int k=0 ; k<n; k++){
      |                 ^
Language: C++

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

int main(){
    
    int n;
    int tarou_p=0,hanako_p=0;
    char tarou[100],hanako[100];
    
    scanf("%d",&n);
    
    for (int i=0; i<n; i++) {
        scanf("%s %s",tarou,hanako);
        
        if (strcmp(tarou,hanako)>0) {
            tarou_p +=3;
        }else if(strcmp(tarou,hanako)==0) {
            tarou_p++;
            hanako_p++;
        }else (strcmp(tarou,hanako)<0){
            hanako+=3;
        }
    }
    
    printf("%d %d\n",tarou_p,hanako_p);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:39: error: expected ';' before '{' token
   20 |         }else (strcmp(tarou,hanako)<0){
      |                                       ^
      |                                       ;
Language: Java

package Volume100;
import java.util.*;
public class a10032 {
    public static void main(String[] args) {
    	Scanner s=new Scanner(System.in);
    	Stack<String> st=new Stack<String>();
        while(true){
        	String com=s.next();
        	if(com.equals("push")){
        		String cc=s.next();
        		st.push(cc);
        	}
        	else if(com.equals("pop"))System.out.println(st.pop());
        	else if(com.equals("quit"));
        }
    }
}

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String block[] = new String[1000];
    int counter = 0;
    while (true) {
      String command = sc.next();
      if (command.equals("quit")) {
        break;
      }
      else if (comannd.equals("pop") {
        System.out.println(block[counter]);
        block[counter] = null;
        counter--;
          }
        }
      else {
        String color = sc.next();
        block[counter] = color;
        counter++;
      }
    }
  }
}

Compiler output:
Main.java:12: error: ')' expected
      else if (comannd.equals("pop") {
                                    ^
Main.java:18: error: 'else' without 'if'
      else {
      ^
Main.java:25: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String block[] = new String[1000];
    int counter = 0;
    while (true) {
      String command = sc.next();
      if (command.equals("quit")) {
        break;
      }
      else if (comannd.equals("pop")) {
        System.out.println(block[counter]);
        block[counter] = null;
        counter--;
          }
        }
      else {
        String color = sc.next();
        block[counter] = color;
        counter++;
      }
    }
  }
}

Compiler output:
Main.java:18: error: 'else' without 'if'
      else {
      ^
Main.java:25: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String block[] = new String[1000];
    int counter = 0;
    while (true) {
      String command = sc.next();
      if (command.equals("quit")) {
        break;
      }
      else if (comannd.equals("pop")) {
        System.out.println(block[counter]);
        block[counter] = null;
        counter--;
      }
      else {
        String color = sc.next();
        block[counter] = color;
        counter++;
      }
    }
  }
}

Compiler output:
Main.java:12: error: cannot find symbol
      else if (comannd.equals("pop")) {
               ^
  symbol:   variable comannd
  location: class Main
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;
import java.util.Stack;

public class Test {
	public static void main(String args[]) {
		Stack<String> s = new Stack<String>();
		ArrayList<String> answer = new ArrayList<String>();
		Scanner scanner = new Scanner(System.in);
		while (true) {
			String order = scanner.next();
			if (order.equals("push")) {
				String color = scanner.next();
				s.push(color);
			} else if (order.equals("pop")) {
				String color = s.pop();
				answer.add(color);
			} else {
				break;
			}
		}
		for (String c : answer) {
			System.out.println(c);
		}
	}
}

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

#include<stdio.h>
#include<string.h>
iint main(){
  char jenga[1001],cmd[5],dast[];
  int i=0,j=0;
  while(1){
    scanf("%s",cmd);
    if(strcmp(cmd,"quit")==0)break;
    else if(strcmp(cmd,"push")==0){
    }
    else if(strlen(cmd)==0){
      jenga[i]=cmd;
      i++;
    }
    else if(strcmp(cmd,"pop")==0){
      i--;
      dast[j]=jenga[i];
      j++;
    }
  }
  for(i=0;i<j;i++){
    printf("%s",dast[j]);
  }
  return(0);
}

Compiler output:
main.c:3:1: error: unknown type name 'iint'; did you mean 'int'?
    3 | iint main(){
      | ^~~~
      | int
main.c: In function 'main':
main.c:4:27: error: array size missing in 'dast'
    4 |   char jenga[1001],cmd[5],dast[];
      |                           ^~~~
main.c:12:15: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |       jenga[i]=cmd;
      |               ^
Language: C

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

int main()
{
	int stack[1000];
	int stackpt = stack;
	while(1)
	{
		int s[5];
		scanf("%s",s);
		if(strcmp(s,"push") == 0)
		{
			stackpt++;
			*stackpt = getchar();
		}
		else if(strcmp(s,"pop") == 0)
		{
			printf("%c",*stackpt);
			stackpt--;
		}
		else
			break;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    7 |         int stackpt = stack;
      |                       ^~~~~
main.c:12:27: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
   12 |                 if(strcmp(s,"push") == 0)
      |                           ^
      |                           |
      |                           int *
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int *'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:15:25: error: invalid type argument of unary '*' (have 'int')
   15 |                         *stackpt = getchar();
      |                         ^~~~~~~~
main.c:17:32: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
   17 |                 else if(strcmp(s,"pop") == 0)
      |                                ^
      |                                |
      |                                int *
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int *'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:19:37: error: invalid type argument of unary '*' (have 'int')
   19 |                         printf("%c",*stackpt);
      |                                     ^~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 1000

int main(int argc, const char * argv[]){
  int n,m;
  char command[6], pop[MAX],push[MAX];
  char c,d;
  int a=1;
  int j=0;
  int x,y,i;

  while(a){
    gets(command);
    if(strncmp(command, "push",4)==0){
      if(command[4] != '\0'){
       for(x=MAX; x>0; x--){
        push[x] = push[x-1];
      }
      push[0]= command[5];
      }
      else{
        printf("This command is invalid.\n");
      }
    }
    else if(strcmp(command, "pop")==0){
      d = push[0];
      for(y=1; y<MAX; y++){
        push[y-1] = push[y];
      }
      pop[j++] = d;
    }
    else if(strcmp(command, "quit")==0){
      break;
    }
    else{
      printf("This command is invalid.\n");
    }
  }

  for(i=0; i<j; i++){
   printf("%c\n", pop[i]);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   14 |     gets(command);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
	char m[1001],cmd[5];
	char *p=m;
	char ch;
	
	while(1){
		scanf("%s",cmd);
		if(!strcmp(cmd,"push")){scanf(" %c",&ch);*p=ch;p++;}
		if(!strcmp(cmd,"pop")){p--;putchar(*p);}
		if(!strcmp(cmd,"quit")){*p='\0';break;}
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:14:9: error: expected declaration or statement at end of input
   14 |         return 0;
      |         ^~~~~~
Language: C

#include<iostream>
#include<cstdio>
#include<cstring>
#include<vector>
#include<string>
#include<math.h>
#include<algorithm>
#include<set>
#define PI 3.1415927
using namespace std;

int main(){
  char word; //読み込み文字(色）
  string rule; //命令読み取り
  vector<char> mt; //山への積み上げ
  vector<char> ans; //出力結果格納（山からの取り出し）
  int i=0;
  while(1){
    cin >> rule;
    if(rule=="quit") break;
    else if(rule=="push"){
      cin >> word;
      mt.push_back(word);
      i++;
    }
    else if(rule=="pop"){
      ans.push_back(mt[i-1]);
      mt.erase(mt.begin() + i-1);
      i--;
    }
  }
  for(i=0;i<ans.size();i++){
    cout << ans[i] <<endl;
  }

  
  
 return 0;
}

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

char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}

Compiler output:
main.c:1:11: error: size of array 's' has non-integer type
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |           ^
main.c:1:18: error: return type defaults to 'int' [-Wimplicit-int]
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |                  ^~~~
main.c: In function 'main':
main.c:1:18: error: type of 'p' defaults to 'int' [-Wimplicit-int]
main.c:1:31: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |                               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
main.c:1:31: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |                               ^~~~~
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:73: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |                                                                         ^~~~~~~
main.c:1:73: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:83: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | char c[5],s[2e3];main(p){for(;scanf("%s ",c),p*(*c-'q');c[1]-'o'?s[p++]=getchar():printf("%c\n",s[--p]));}
      |                                                                                   ^~~~~~
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:83: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}

Compiler output:
main.c:1:10: warning: data definition has no type or storage class
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |          ^
main.c:1:10: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:17: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                 ^
main.c:1:19: error: return type defaults to 'int' [-Wimplicit-int]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                   ^~~~
main.c: In function 'main':
main.c:1:26: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                          ^~~~
main.c:1:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                                                       ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
main.c:1:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                                                       ^~~~~~
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:75: error: expected ')' before ':' token
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                                                             ~             ^
      |                                                                           )
main.c:1:88: error: expected ':' before ')' token
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |                                                                                        ^
      |                                                                                        :
main.c: At top level:
main.c:1:6: warning: array 'c' assumed to have one element
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]:s[p++]=c[5]));}
      |      ^
Language: C

char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}

Compiler output:
main.c:1:10: warning: data definition has no type or storage class
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |          ^
main.c:1:10: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:17: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                 ^
main.c:1:19: error: return type defaults to 'int' [-Wimplicit-int]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                   ^~~~
main.c: In function 'main':
main.c:1:26: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                          ^~~~
main.c:1:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                                                       ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
main.c:1:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                                                       ^~~~~~
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:83: error: lvalue required as left operand of assignment
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |                                                                                   ^
main.c: At top level:
main.c:1:6: warning: array 'c' assumed to have one element
    1 | char c[];s[999],p;main(){gets(c),*c-113&&main(c[3]-32?printf("%c\n",s[--p]):s[p++]=c[5]);}
      |      ^
Language: C

char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}

Compiler output:
main.c:1:10: error: return type defaults to 'int' [-Wimplicit-int]
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |          ^~~~
main.c: In function 'main':
main.c:1:10: error: type of 'p' defaults to 'int' [-Wimplicit-int]
main.c:1:22: error: array size missing in 's'
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |                      ^
main.c:1:31: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |                               ^~~~
main.c:1:64: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |                                                                ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
main.c:1:70: error: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types]
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |                                                                     ~^~~~
      |                                                                      |
      |                                                                      int *
main.c:1:70: note: expected 'const char *' but argument is of type 'int *'
main.c: At top level:
main.c:1:6: warning: array 'c' assumed to have one element
    1 | char c[];main(p){int s[];for(;gets(c),*c-='q';c[3]?s[p++]=c[5]:puts(s+--p));}
      |      ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define PI 3.14159265358979323

//void quick(int *,long long,long long);
int comp(char *a,char *b);

int main(){

	int i;
	char a[10];
	char a1[5]="push";
	char a2[5]="pop";
	char a3[5]="quit";
	char b[1001];
	char c;

	i=0;
	scanf("%s%*c",a);
	while(comp(a,a3)!=0){
		if(comp(a,a1)==0){
			scanf("%c",&c);
			b[i]=c;
			i++;
		}
		if(comp(a,a2)==0){
			i--;
			printf("%c\n",b[i]);
		}
		scanf("%s%*c",a);
	}
	
	//for(i=0;i<=10000000000;i++);
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccp9T9hw.o: in function `main':
main.c:(.text+0x62): undefined reference to `comp'
/usr/bin/ld: main.c:(.text+0xae): undefined reference to `comp'
/usr/bin/ld: main.c:(.text+0x10a): undefined reference to `comp'
collect2: error: ld returned 1 exit status
Language: C

push a
push b
push c
pop
pop
push t
pop
quit

Compiler output:
main.c:1:1: error: unknown type name 'push'
    1 | push a
      | ^~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'push'
    2 | push b
      | ^~~~
main.c:2:1: error: unknown type name 'push'
Language: C++


#include<bits/stdc++.h>

using namespace std;
#define PI acos(-1)

int main(){
	stack<char>stck;
	string order;
	char ms;
	
	while(cin>>order){
		if(order=="push"){
			cin>>ms;
			stck.push(ms);
		}
		if(order=="pop"){
			cout<<stck.top()<<endl;
			stck.pop();
		}
		if(order="quit"){
			break;
		}
		
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: could not convert 'order.std::__cxx11::basic_string<char>::operator=(((const char*)"quit"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   21 |                 if(order="quit"){
      |                    ~~~~~^~~~~~~
      |                         |
      |                         std::__cxx11::basic_string<char>
Language: C++

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


int main() {
	std::string order;
	std::stack<char> st;;
	char color[2], buf[10];

	while(1) {
		scanf("%s", buf);
		order = buf;
		if(order == "quit") break;
		if(order == "push") {
			scanf("%c", &color[0]);
			st.push(color[0]);
		} else if(order == "pop") {
			printf("%c\n", st.top());
			st.pop();
		}
	}

	return 0;

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

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

int main(void)
{
    char s[128];
    stack<char> s;
    while (scanf("%s%*c", s)){
        if (*s == 'q') break;
        char c = getchar();
        if (s[1] == 'u') stack.push(c);
        else {
            printf("%c\n", stack.top());
            stack.pop();
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: conflicting declaration 'std::stack<char> s'
    7 |     stack<char> s;
      |                 ^
a.cc:6:10: note: previous declaration as 'char s [128]'
    6 |     char s[128];
      |          ^
a.cc:11:31: error: expected unqualified-id before '.' token
   11 |         if (s[1] == 'u') stack.push(c);
      |                               ^
a.cc:13:33: error: missing template arguments before '.' token
   13 |             printf("%c\n", stack.top());
      |                                 ^
a.cc:14:18: error: expected unqualified-id before '.' token
   14 |             stack.pop();
      |                  ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  stack<char> st;
  while(1){
    string s;
    cin>>s;
    if(s == "quit") break;
    else if(s == "push"){
      char c;
      cin>>c;
      st.push(c);
    }else if(s == "pop"){
      cout << st.top() << endl;
      st.pop();
    }
  }
  return 0;
}
    
    

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'stack' was not declared in this scope
    4 |   stack<char> st;
      |   ^~~~~
a.cc:4:9: error: expected primary-expression before 'char'
    4 |   stack<char> st;
      |         ^~~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>s;
      |     ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
a.cc:12:7: error: 'st' was not declared in this scope; did you mean 'std'?
   12 |       st.push(c);
      |       ^~
      |       std
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << st.top() << endl;
      |       ^~~~
a.cc:14:15: error: 'st' was not declared in this scope; did you mean 'std'?
   14 |       cout << st.top() << endl;
      |               ^~
      |               std
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |       cout << st.top() << endl;
      |                           ^~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  stack<char> st;
  while(1){
    string s;
    cin>>s;
    if(s == "quit") break;
    else if(s == "push"){
      char c;
      cin>>c;
      st.push(c);
    }else if(s == "pop"){
      cout << st.top() << endl;
      st.pop();
    }
  }
}
    
    

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'stack' was not declared in this scope
    4 |   stack<char> st;
      |   ^~~~~
a.cc:4:9: error: expected primary-expression before 'char'
    4 |   stack<char> st;
      |         ^~~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>s;
      |     ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s;
      |          ^
a.cc:12:7: error: 'st' was not declared in this scope; did you mean 'std'?
   12 |       st.push(c);
      |       ^~
      |       std
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << st.top() << endl;
      |       ^~~~
a.cc:14:15: error: 'st' was not declared in this scope; did you mean 'std'?
   14 |       cout << st.top() << endl;
      |               ^~
      |               std
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |       cout << st.top() << endl;
      |                           ^~~~
Language: C++

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

int main(){
    string str;
    stack<char> st; 
    while(cin>>str,str!="quit"){
        if(str=="push"){
            char x;
            cin>>x;
            st.push(x);
        }else if(str=="pop"){
            cout<<st.top()<<endl;
            st.pop;
        }   
    }   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: invalid use of non-static member function 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = char; _Sequence = std::deque<char, std::allocator<char> >]'
   16 |             st.pop;
      |             ~~~^~~
In file included from /usr/include/c++/14/stack:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_stack.h:291:7: note: declared here
  291 |       pop()
      |       ^~~
Language: C++

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

struct col{
	char c;
	struct col *next;
};

int main(){
	char script[10];
	char mt[1000];
	int num=0;
	col *start=NULL;
	col *end=NULL;
	col *buf;
	while(gets(script)){
		if(script[0]=='p'){//push or pop
			if(script[1]=='u'){//push
				mt[num++]=script[5];
			}
			else{
				if(start==NULL){
					start=new col();
					start->c=mt[--num];
					start->next=NULL;
					end=start;
				}
				else{
					buf=new col();
					buf->c=mt[--num];
					buf->next=NULL;
					end->next=buf;
					end=buf;
				}
			}
		}
		else break;
	}
	buf=start;
	while(buf!=NULL){
		cout<<buf->c<<endl;;
		buf=buf->next;
	}
	return 0;
}

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

#include <iostream>
#include <vector>
#include <cstdlib>
#include <algorithm>
#include <time.h>
#include <cstdio>
#include <stack>
#include <queue>
#include <cmath>
using namespace std;
int main(){
	string c;
	char s;
	stack<char> S;
	while(cin >> c && (c!="quit"){
		if( c == "pop" ){
			cout << S.top() << endl;
			S.pop();
		}else{
			cin >> s;
			S.push(s);
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:38: error: expected ')' before '{' token
   15 |         while(cin >> c && (c!="quit"){
      |              ~                       ^
      |                                      )
Language: C++

// ・AOJ10032(stackの練習問題)
#include <iostream>
#include <stack>
#include <string>

using namespace std;

int main(void) {
	stack<string> s;
	string meirei, color;

	cin >> mwirei;
	while (meirei != "quit") {
		if (meirei == "push") {
			cin >> color;
			stack.push(color);
		} else if (meirei == "pop") {
			cout << stack.top() << endl;
			stack.pop();
		}
		cin >> meirei;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'mwirei' was not declared in this scope; did you mean 'meirei'?
   12 |         cin >> mwirei;
      |                ^~~~~~
      |                meirei
a.cc:16:30: error: expected unqualified-id before '.' token
   16 |                         stack.push(color);
      |                              ^
a.cc:18:38: error: missing template arguments before '.' token
   18 |                         cout << stack.top() << endl;
      |                                      ^
a.cc:19:30: error: expected unqualified-id before '.' token
   19 |                         stack.pop();
      |                              ^
Language: C++

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

int main(void)
{
	char* op;
	char* op_f;
	char* opland;
	string popn;
	char queue[1000];
	int pointer = 0;
	
	while(cin.getline(op,sizeof(char[20])),strcmp(op,"quit") != 0)
	{
		op_f = strtok(op," ");
		opland = strtok(NULL," ");
		
		if(strcmp(op_f,"push") == 0)
		{
		 queue[pointer] = opland[0];
		 pointer++;
 		}
 		if(strcmp(op_f,"pop") == 0)
 		{
			popn += queue[pointer - 1];
			popn += '\n';
			pointer--;
 		}
	}
	
	cout<<popn;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:48: error: 'strcmp' was not declared in this scope
   14 |         while(cin.getline(op,sizeof(char[20])),strcmp(op,"quit") != 0)
      |                                                ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:16:24: error: 'strtok' was not declared in this scope; did you mean 'strtoq'?
   16 |                 op_f = strtok(op," ");
      |                        ^~~~~~
      |                        strtoq
Language: C++

s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}

Compiler output:
a.cc:1:3: warning: multi-character character constant [-Wmultichar]
    1 | s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}
      |   ^~~~
a.cc:1:37: warning: multi-character character constant [-Wmultichar]
    1 | s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}
      |                                     ^~~~~~
a.cc:1:61: warning: multi-character character constant [-Wmultichar]
    1 | s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}
      |                                                             ^~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}
      | ^
a.cc:1:13: error: expected constructor, destructor, or type conversion before '(' token
    1 | s['~~'];main(i){for(;gets(s);)s[0]=='hsup'?s[++i]=s[1]:s[0]-'pop'?:printf("%c\n",s[i--]>>8);}
      |             ^