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

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

int find(const char *str, const char *word)
{
    int cnt = 0;
    for (const char *p = str; *p; ++p) {
        if (isaplha(*p) && tolower(*p) == tolower(*word)) {
            const char *q = p, *w = word;
            for ( ; tolower(*q) == tolower(*w) && *w; ++q, ++w) ;
            if (*w == '\0') ++cnt;
        }
    }
    return cnt;
}

void tolowerall(char *s)
{
    for ( ; *s; ++s) if (isalpha(*s)) *s = tolower(*s);
}

int main()
{
    char w[11];
    fgets(w, 11, stdin);
    w[strlen(w) - 1] = '\0';
  
    int cnt = 0;
    while (true) {
        char s[1001];
        fgets(s, 1001, stdin);
        if (strncmp(s, "END_OF_TEXT", 11) == 0) break;
        tolowerall(s);
        cnt += find(s, w);
    }
    printf("%d\n", cnt);
    return 0;
}

Compiler output:
a.cc: In function 'int find(const char*, const char*)':
a.cc:9:13: error: 'isaplha' was not declared in this scope; did you mean 'isalpha'?
    9 |         if (isaplha(*p) && tolower(*p) == tolower(*word)) {
      |             ^~~~~~~
      |             isalpha
Language: C++

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

int main()
{
  string W,T;
  int n=0;
  cin>>W;
	while(1){
		cin>>T;
		if(T=="END_OF_TEXT") break;
		if(!strcasecmp(W.c_str(),T.c_str())) n++;
	}
	cout<<n<<endl;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'strcasecmp' was not declared in this scope; did you mean 'wcscasecmp'?
   13 |                 if(!strcasecmp(W.c_str(),T.c_str())) n++;
      |                     ^~~~~~~~~~
      |                     wcscasecmp
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main()
{
	
	string w,t;	
	cin >> w;
	int kazuw=0;
	while(1){
		cin >> t;
		tolower(t);
		if(t==w){
			kazuw++;
		}
		if(t=="END_OF_TEXT"){break;}
	}
	cout << kazuw << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: no matching function for call to 'tolower(std::string&)'
   13 |                 tolower(t);
      |                 ~~~~~~~^~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main()
{
	
	string w,t;	
	cin >> w;
	int kazuw=0;
	while(1){
		cin >> t;
		for(int i=0;i<t.length();i++){
			t[i]=tolower(t[i]);
		}
		if(t==w){
			kazuw++;
		}
		if(t=="END_OF_TEXT"){break;}
	}
	cout << kazuw << endl;
	
	return 0;
}#include<iostream>
#include<string>

using namespace std;
int main()
{
	
	string w,t;	
	cin >> w;
	int kazuw=0;
	while(1){
		cin >> t;
		for(int i=0;i<t.length();i++){
			t[i]=tolower(t[i]);
		}
		if(t==w){
			kazuw++;
		}
		if(t=="END_OF_TEXT"){break;}
	}
	cout << kazuw << endl;
	
	return 0;
}

Compiler output:
a.cc:24:2: error: stray '#' in program
   24 | }#include<iostream>
      |  ^
a.cc:24:3: error: 'include' does not name a type
   24 | }#include<iostream>
      |   ^~~~~~~
a.cc:28:5: error: redefinition of 'int main()'
   28 | int main()
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main()
      |     ^~~~
Language: C++

#include <string>
#include <iostream>

using namespace std;
int main(){
	string x,y;
	int n=0,z,a;
	cin>>y;
	while(1){
		cin>>x;
		
		if(x=="END_OF_TEXT"){
			break;}
			
		else{
			z=x.length();
			for(int i=0;i<z;i++){
				x[i]=tolower(x[i]);}
			a=y.length();
			for(int j=0;j<a;j++){
				y[j]=tolower(y[j]);}
			if(x==y){
				n++;}
			
	}
	cout<<n<<endl;
}

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

#include <iostream>
using namespace std;

int main(){
    string w;
    string str;
    int c=0;
     
    cin >> w;
     
    while(cin >> str && str != "END_OF_TEXT"){
        for(int i=0;i<str.size();i++){
            str[i] = tolower(str[i]);
        }
        if(w == str){
            cnt++;
        }
    }
     
    cout << cnt <<endl;
    return 0;
}

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

#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main(void){
	int icounter=0;
	string t,w;
	cin>>w;
	for(int i = 0;i < W.length();i++){
        if('A' <= W[i] && W[i] <= 'Z') W[i] = tolower(W[i]);
    }
	 while(cin >> T){
 
        if(T == "END_OF_TEXT") break;
 
        for(int i = 0;i < T.length();i++){
            if('A' <= T[i] && T[i] <= 'Z') T[i] = tolower(T[i]);
        }
 
        if(W == T) icounter++;
    }
	}
	cout<<icounter<<endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'W' was not declared in this scope
    9 |         for(int i = 0;i < W.length();i++){
      |                           ^
a.cc:12:23: error: 'T' was not declared in this scope
   12 |          while(cin >> T){
      |                       ^
a.cc:20:12: error: 'W' was not declared in this scope
   20 |         if(W == T) icounter++;
      |            ^
a.cc: At global scope:
a.cc:23:9: error: 'cout' does not name a type
   23 |         cout<<icounter<<endl;
      |         ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <map>
using namespace std;
 
#define REP(i, s, e) for (int i = (s); i < (e); i++)
#define REPI(i, s, e) for (int i = (s); i <= (e); i++)
#define rep(i, n) REP(i, 0, n)
#define repi(i, n) REPI(i, 0, n)
#define ALL(v) (v).begin(), (v).end()
 
#define dump(x) (cout << #x << " = " << x << endl)
#define dump2(x, y) (cout << "(" << #x << ", " << #y << ") = (" << x << ", " << y << ")" << endl)
#define dump3(x, y, z) (cout << "(" << #x << ", " << #y << ", " << #z << ") = (" << x << ", " << y << ", "<< z << ")" << endl)
 
typedef long long ll;
typedef pair<int, int> pii;

int main()
{
	string word;
	cin >> word;
	string buf;
	int ans = 0;
	while (;;) {
		cin >> buf;
		if (buf == "END_OF_TEXT") break;
		if (buf == word)
			ans++;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:16: error: expected primary-expression before ';' token
   35 |         while (;;) {
      |                ^
a.cc:35:16: error: expected ')' before ';' token
   35 |         while (;;) {
      |               ~^
      |                )
a.cc:35:18: error: expected primary-expression before ')' token
   35 |         while (;;) {
      |                  ^
Language: C++

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

int main() {
	string moto;
	string data;
	int counter = 0;

	cin >> moto;

	while(1) {
		cin >> data;

		if (data == "END_OF_TEXT") {
			break;
		} else if (moto == data){
			counter++;
		} else {
		}
	}

	cout << counter << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string moto;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:15: error: expected ';' before 'data'
    7 |         string data;
      |               ^~~~~
      |               ;
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> moto;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:16: error: 'moto' was not declared in this scope
   10 |         cin >> moto;
      |                ^~~~
a.cc:13:24: error: 'data' was not declared in this scope; did you mean 'std::data'?
   13 |                 cin >> data;
      |                        ^~~~
      |                        std::data
In file included from /usr/include/c++/14/string:53:
/usr/include/c++/14/bits/range_access.h:344:5: note: 'std::data' declared here
  344 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
a.cc:23:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |         cout << counter << 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:23:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |         cout << counter << endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

using namespace std;

int main() {
	string moto;
	string data;
	int counter = 0;

	cin >> moto;

	while(1) {
		cin >> data;


		if (data == "END_OF_TEXT") {
			break;
		} 
		
		data = tolower(data);

		if (moto == data){
			counter++;
		} else {
		}
	}

	cout << counter << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:31: error: no matching function for call to 'tolower(std::string&)'
   22 |                 data = tolower(data);
      |                        ~~~~~~~^~~~~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
Language: C++

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

using namespace std;

int main() {
	string moto;
	string data;
	int counter = 0;
	
	cin >> moto;

	while(1) {
		cin >> data;


		if (data == "END_OF_TEXT") {
			break;
		} 
		
		for (int i = 0; i < data.length; i++) {
			data[i] = tolower(data[i]);
		}

		if (moto == data){
			counter++;
		} else {
		}
	}

	cout << counter << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:42: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   22 |                 for (int i = 0; i < data.length; i++) {
      |                                     ~~~~~^~~~~~
      |                                                ()
Language: C++

#include <string>
#include<iostream>
using namespace std;
string T,W;
int cnt;
int main(void){
	cin>>W;
	cnt=0;
	while(1){
	cin>>T;
	if(strcmp(T.c_str(),"END_OF_TEXT")==0) break;
	if(strcmp(T.c_str(),W.c_str())==0) cnt++;
	}
	cout<<cnt<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'strcmp' was not declared in this scope
   11 |         if(strcmp(T.c_str(),"END_OF_TEXT")==0) break;
      |            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:12:12: error: 'strcmp' was not declared in this scope
   12 |         if(strcmp(T.c_str(),W.c_str())==0) cnt++;
      |            ^~~~~~
a.cc:12:12: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<string>
#include<iostream>
using namespace std;
string T,W;
int cnt;
int main(void){
	cin>>W;
	cnt=0;
	while(1){
	cin>>T;
	if(strcmp(T.c_str(),"END_OF_TEXT")==0) break;
	if(strcmp(T.c_str(),W.c_str())==0) cnt++;
	}
	cout<<cnt<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'strcmp' was not declared in this scope
   11 |         if(strcmp(T.c_str(),"END_OF_TEXT")==0) break;
      |            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:12:12: error: 'strcmp' was not declared in this scope
   12 |         if(strcmp(T.c_str(),W.c_str())==0) cnt++;
      |            ^~~~~~
a.cc:12:12: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

int main(int argc, const char * argv[])
{
    int cnt = 0;
    string w, t;
    cin >> w;
    transform(w.begin(), w.end(), w.begin(), ::toupper);
    while (1) {
        cin >> t;
        transform(t.begin(), t.end(), t.begin(), ::toupper);
        if (t == "END_OF_TEXT") {
            break;
        }
        if (w == t) {
            cnt++;
        }
    }
    cout << cnt <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:5: error: 'transform' was not declared in this scope
   11 |     transform(w.begin(), w.end(), w.begin(), ::toupper);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string E = "end_of_text";
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::tolower);
    while(true){
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::tolower);
        if (T == E){
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:5: error: 'transform' was not declared in this scope
   11 |     transform(W.begin(), W.end(), W.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::tolower);
    while(true){
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::tolower);
        if (T == "end_of_text"){
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(W.begin(), W.end(), W.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::tolower);
    while (true) {
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::tolower);
        if (T == "end_of_text"){
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(W.begin(), W.end(), W.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::tolower);
    while (true) {
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::tolower);
        if (T == "end_of_text") {
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(W.begin(), W.end(), W.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::tolower);
    while (1) {
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::tolower);
        if (T == "end_of_text") {
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(W.begin(), W.end(), W.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string T;
    cin >> W;
    transform(W.begin(), W.end(), W.begin(), ::toupper);
    while (true) {
        cin >> T;
        transform(T.begin(), T.end(), T.begin(), ::toupper);
        if (T == "END_OF_TEXT") {
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(W.begin(), W.end(), W.begin(), ::toupper);
      |     ^~~~~~~~~
Language: C++

#include <vector>
#include <iostream>
#include <set>
#include <cstdio>
#include <queue>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <ctime>
#include <algorithm>
#include <tuple>
#include <algorithm>
#include <limits>
#include <cstring>

using namespace std;
typedef long long ll;
typedef pair<char, int> P;

int main() {
    char k[20];
    scanf("%s", k);
    for (int i = 0; i < strlen(k); i++) {
        k[i] = tolower(k[i]);
    }
    int r = 0;
    while (1) {
        char b[1010];
        scanf("%s", b);
        if (!strcmp(b, "END_OF_TEXT")) {
            break;
        }
        char b2[1010];
        int c = 0;
        for (int i = 0; i <= strlen(b); i++) {
            b[i] = tolower(b[i]);
            if (b[i] == ' ' || b[i] == '\0') {
                b2[c] = '\0';
                if (!strcmp(k, b2)) {
                    r++;
                }
                c = 0;
            } else {
                b2[c] = b[i];
                c++;
            }
            if (b[i] == '\0') break;

        }
    }
    printf("%d\n", ra);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:20: error: 'ra' was not declared in this scope; did you mean 'r'?
   51 |     printf("%d\n", ra);
      |                    ^~
      |                    r
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<cctype>
#include<boost>
//#include<cstring>
using namespace std;

int main(){
   string w,t;
   //char w[20], t[20];
   int i=0;
   
   cin >> w;
   
   while(strcmp(w,"END_OF_TEXT")!=0){
      cin >> t;
      if(boost::iequals(w,t)) i++;
   }
   
   /*while(1){
        cin >> t;
        if(strcmp(t,"END_OF_TEXT")==0) break;
        if(strcmp(t,w)==0) i++;
   }*/
   
   cout << i << endl;
   return 0;
}

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

#include<iostream>
#include<algorithm>
#include<string>
//#include<cctype>
#include<boost/algorithm/string.hpp>
//#include<cstring>
using namespace std;

int main(){
   string w,t;
   //char w[20], t[20];
   int i=0;
   
   cin >> w;
   
   while(t!="END_OF_TEXT"){
      cin >> t;
      if(boost::iequals(w,t)) i++;
   }
   
   /*while(1){
        cin >> t;
        if(strcmp(t,"END_OF_TEXT")==0) break;
        if(strcmp(t,w)==0) i++;
   }*/
   
   cout << i << endl;
   return 0;
}

Compiler output:
a.cc:5:9: fatal error: boost/algorithm/string.hpp: No such file or directory
    5 | #include<boost/algorithm/string.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

using System;
using System.IO;
using System.Globalization;

public class AOJ100
{
    public static void Main()
    {
        string Word = Console.ReadLine().ToLower();
        int cnt = 0;
        for ( ; ; )
        {
            var str = Console.ReadLine().Split();
            int n = str.Length;
            for (int i = 0; i < n; i++)
            {
                if (str[i] == "END_OF_TEXT") { Console.WriteLine(cnt); return; }
                str[i] = str[i].ToLower();
                if (str[i] == Word) cnt++;
            }
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.IO;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Globalization;
      |       ^~~~~~
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class AOJ100
      | ^~~~~~
Language: C++

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

using namespace std;

int main(){
	int count=0;
	string str1,str2;
	cin>>str1;
	while(cin>>str2){
		transform(str2.begin(),str2.end(),str2.begin(),tolower);
		if(str1==str2){
			count++;
		}
	}
	cout<<count<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   12 |                 transform(str2.begin(),str2.end(),str2.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:12:26: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |                 transform(str2.begin(),str2.end(),str2.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
  156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note:   candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
  162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note:   candidate expects 6 arguments, 4 provided
Language: C++

#include <iostream>
#include <ctype>
#include <string>
#include <vector>

using namespace std;

vector<string> perse(string str)
{
	vector<string> v;
	if(isupper(str[0])){
		int pre = 0;
		for(int i=1 ; i<str.size() ; ++i){
			if(isupper(str[i])){
				v.push_back(str.substr(pre, i-pre));
				pre = i;
				v[v.size()-1][0] = tolower(v[v.size()-1][0]);
			}
		}
		v.push_back(str.substr(pre, str.size()-pre));
	}else{
		if(str.find('_') != string::npos){
		int pre = 0;
			for(int i=1 ; i<str.size() ; ++i){
				if(str[i] == '_'){
					v.push_back(str.substr(pre, i-pre));
					pre = i + 1;
				}
			}
			v.push_back(str.substr(pre, str.size()-pre));
		}else{
			int pre = 0;
			for(int i=1 ; i<str.size() ; ++i){
				if(isupper(str[i])){
					v.push_back(str.substr(pre, i-pre));
					pre = i;
					v[v.size()-1][0] = tolower(v[v.size()-1][0]);
				}
			}
			v.push_back(str.substr(pre, str.size()-pre));
		}
	}
	v[v.size()-1][0] = tolower(v[v.size()-1][0]);
	return v;
}

string tostr(vector<string> v, char type)
{
	string ans;
	
	for(int i=0 ; i<v.size() ; ++i){
		switch(type){
			case 'U':
				v[i][0] = toupper(v[i][0]);
				ans += v[i];
				break;
				
			case 'L':
				if(i != 0)
					v[i][0] = toupper(v[i][0]);
				ans += v[i];
				break;
				
			case 'D':
				if(i != 0)
					ans += "_";
				ans += v[i];
				break;
		}
	}
	
	return ans;
}

int main()
{
	for(;;){
		string str;
		char c;
		cin >> str >> c;
		
		if(c == 'X')
			break;
		
		vector<string> v = perse(str);
		cout << tostr(v, c) << endl;
	}
	
	return 0;
}

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

#include<iostream>
#include<cstdio>
#include<cctype>

#define MAX_IDTLEN 101
#define MAX_TERMS 100

using namespace std;

int main(void){
	while( 1 ){
		int p = 0, len = 0;
		int nterm = 0;
		char rule[4] = "";
		char idt[MAX_IDTLEN] = "";
		char terms[MAX_TERMS][MAX_IDTLEN];
		scanf("%s%s", idt, rule);

		if( rule[0] == 'X' ) break;

		len = strlen( idt );idt[len] = '_';idt[len+1] = 0;
		len = strlen( idt );
		for(int i = 0; i < len; i++){
			if( isupper( idt[i] ) && i != 0 ){
				terms[nterm][p] = 0;
				nterm++;
				p = 0;
				terms[nterm][p++] = idt[i];
			}else if(idt[i] == '_' ){
				terms[nterm][p] = 0;
				nterm++;
				p = 0;
			}else{
				terms[nterm][p++] = idt[i];
			}
		}

		switch( rule[0] ){
			case 'U':
				for(int i = 0; i < nterm; i++ ){
					int tlen = strlen(terms[i]);
					printf("%c", toupper( terms[i][0] ) );
					for(int j = 1; j < tlen; j++){
						printf("%c", tolower( terms[i][j] ) );
					}
				}
				break;
			case 'L':
				for(int j = 0; j < strlen(terms[0]); j++){
					printf("%c", tolower( terms[0][j] ) );
				}
				for(int i = 1; i < nterm; i++ ){
					int tlen = strlen(terms[i]);
					printf("%c", toupper( terms[i][0] ) );
					for(int j = 1; j < tlen; j++){
						printf("%c", tolower( terms[i][j] ) );
					}
				}
				break;
			case 'D':
				for(int i = 0; i < nterm; i++ ){
					int tlen = strlen(terms[i]);
					for(int j = 0; j < tlen; j++){
						printf("%c", tolower( terms[i][j] ) );
					}
					if( i < nterm - 1 ){
						printf("_");
					}
				}
				break;
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:23: error: 'strlen' was not declared in this scope
   21 |                 len = strlen( idt );idt[len] = '_';idt[len+1] = 0;
      |                       ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<cctype>
  +++ |+#include <cstring>
    4 |
Language: Java

import java.util.Scanner;
public class Main3 {
	public static void main(String [] args){
		Scanner sc =  new Scanner(System.in);
		while(true){
			String s = sc.nextLine();
			if("-".equals(s))break;
			int n = sc.nextInt();
			for(int i=0;i<n;i++ ){
				int  h = sc.nextInt();
				s = s.substring(h,s.length()) + s.substring(0, h);
			}
			System.out.println(s);
		}
		sc.close();
	}

}

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

import java.util.Scanner;
public class Main3 {
	public static void main(String [] args){
		Scanner sc =  new Scanner(System.in);
		while(true){
			String s = sc.nextLine();
			if("-".equals(s))break;
			int n = sc.nextInt();
			for(int i=0;i<n;i++ ){
				int  h = sc.nextInt();
				s = s.substring(h,s.length()) + s.substring(0, h);
			}
			System.out.println(s);
		}
		//.close();
	}

}

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

import java.util.Scanner;



public class Main{

public static void main(String[] args){

	int m,i,h;
	String s,temp;

	Scanner sc = new Scanner(System.in);

	
	while(true){
		s=sc.next();
		if(s=="-"){
			break;
		}
		m=sc.nextInt();
		for(i=0;i<m;i++){
			h=sc.nextInt();
			temp=s.substring(0,h-1);
			s=s.substring(h,s.length())
			s+temp;
		}
		System.out.printf("%s\n",s);
	}



}

}

Compiler output:
Main.java:24: error: ';' expected
			s=s.substring(h,s.length())
			                           ^
Main.java:25: error: not a statement
			s+temp;
			 ^
2 errors
Language: Java

?\?§import java.util.Scanner;
import java.io.*;

public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(System.in);

		while(true) {
			try {
				String line = reader.readLine();
				if(line.charAt(0) == '-')
					break;

				int num = sc.nextInt();

				for(int i = 0; i < num; i++) {
					int j = sc.nextInt();
					String sub1 = line.substring(0, j);
					String sub2 = line.substring(j);
					line = sub2.concat(sub1);
//					System.out.println(line);
				}

				System.out.println(line);
			} catch(IOException e) {
				System.out.println(e);
			}
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
?\??import java.util.Scanner;
^
Main.java:1: error: illegal character: '\'
?\??import java.util.Scanner;
 ^
Main.java:1: error: illegal character: '\u00a7'
?\??import java.util.Scanner;
   ^
Main.java:2: error: class, interface, enum, or record expected
import java.io.*;
^
4 errors
Language: Java

import java.io.*;
import java.util.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    // Scanner sc = new Scanner(System.in);
    String cards = null;
    while (true) {
      cards = sc.readLine();
      if (cards.equals("-")) break;
      int m = Integer.parseInt(br.readLine());
      for (int i = 0; i < m; i++) {
        int h = Integer.parseInt(br.readLine());
        cards = cards.substring(h) + cards.substring(0, h);
      }
    }
    System.out.println(cards);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      cards = sc.readLine();
              ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.InputMismatchException;

public class Shuffle
{
	public static void main(String[] args)
	{
		try
		{
			Scanner sc = new Scanner(System.in);
			String deck;
			int h;

			while(true)
			{
				deck = sc.next();
				if(deck.charAt(0) == '-')
				{
					break;
				}
				
				for(int m = sc.nextInt(); m > 0; m--)
				{
					h = sc.nextInt();
					
					if(h == 1)
					{
						deck = deck.substring(h, deck.length()) + deck.charAt(0);
					}
					else
					{
						deck = deck.substring(h, deck.length()) + deck.substring(0, h);
					}
				}
				
				System.out.println(deck);
			}
		}
		catch(InputMismatchException e)
		{
			System.out.println(e);
		}
	}
}

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

import java.util.Scanner;

public class Shuffle {
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		while(true){
		String a=sc.next();
			if(a.equals("-")){
				break;
			}
			int m,h,i;
			m=sc.nextInt();
			for(i=0;i<m;i++){
				h=sc.nextInt();
				String a1=a.substring(0,h);
				String a2=a.substring(h);
				a=a2+a1;
			}
			System.out.println(a);
		}
	}	
}

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

public class Main {

	public static void main(String[] args) {
		String a, b, c;
		while (true) {
			Scanner sc = new Scanner(System.in);
			String line = sc.next();
			if (line == "-") {
				break;
			} else {
				c = line;
				int m = sc.nextInt();
				int[] h = new int[m];
				for (int i = 0; i < m; i++) {
					h[i] = sc.nextInt();
					a = c.substring(0, h[i]);
					b = c.substring(h[i]);
					c = b + a;
				}
				System.out.println(c);
			}
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Xyz {

	public static void main(String[] args) {
		String a, b, c;
		while (true) {
			Scanner sc = new Scanner(System.in);
			String line = sc.next();
			if (line == "-") {
				break;
			} else {
				c = line;
				int m = sc.nextInt();
				int[] h = new int[m];
				for (int i = 0; i < m; i++) {
					h[i] = sc.nextInt();
					a = c.substring(0, h[i]);
					b = c.substring(h[i]);
					c = b + a;
				}
				System.out.println(c);
			}
		}
	}
}

Compiler output:
Main.java:1: error: class Xyz is public, should be declared in a file named Xyz.java
public class Xyz {
       ^
Main.java:6: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class Xyz
Main.java:6: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			                 ^
  symbol:   class Scanner
  location: class Xyz
3 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true) {
      String str = sc.next();
      if (str.equals("-"))
        break;
      }
      int n = sc.nextInt();
      for (i = 0; i < n; i++) {
        int h = sc.nextInt();
        str = str.sbstring((h+1)-1) + str.sbstring(0,h)
      }
      System.out.println(str);
    }
  }
}

Compiler output:
Main.java:13: error: ';' expected
        str = str.sbstring((h+1)-1) + str.sbstring(0,h)
                                                       ^
Main.java:18: 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);
    while(true) {
      String str = sc.next();
      if (str.equals("-"))
        break;
      }
      int n = sc.nextInt();
      for (i = 0; i < n; i++) {
        int h = sc.nextInt();
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
      }
      System.out.println(str);
    }
  }
}

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true) {
      String str = sc.next();
      if (str.equals("-")) {
        break;
      }
      int n = sc.nextInt();
      for (i = 0; i < n; i++) {
        int h = sc.nextInt();
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
      }
      System.out.println(str);
    }
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
      for (i = 0; i < n; i++) {
           ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
      for (i = 0; i < n; i++) {
                  ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
      for (i = 0; i < n; i++) {
                         ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
                 ^
  symbol:   method sbstring(int)
  location: variable str of type String
Main.java:13: error: cannot find symbol
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
                                         ^
  symbol:   method sbstring(int,int)
  location: variable str of type String
5 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true) {
      String str = sc.next();
      if (str.equals("-")) {
        break;
      }
      int n = sc.nextInt();
      for (int i = 0; i < n; i++) {
        int h = sc.nextInt();
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
      }
      System.out.println(str);
    }
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
                 ^
  symbol:   method sbstring(int)
  location: variable str of type String
Main.java:13: error: cannot find symbol
        str = str.sbstring((h+1)-1) + str.sbstring(0,h);
                                         ^
  symbol:   method sbstring(int,int)
  location: variable str of type String
2 errors
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		while(true){
			String str = stdIn.next();
			if(str.equals("-"))break;
			
			int forTimes = stdIn.nextInt();
			for(int i = 0;i < ;i++){
				int h = stdIn.nextInt();
				String toRight = str.substrint(0,h);
				String toLeft = str.substrint(h);
				str = toLeft + toRight;
			}
			System.out.println(str);
		}
	}

}

Compiler output:
Main.java:11: error: illegal start of expression
			for(int i = 0;i < ;i++){
			                  ^
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		while(true){
			String str = stdIn.next();
			if(str.equals("-"))break;
			
			int forTimes = stdIn.nextInt();
			for(int i = 0;i < forTimes;i++){
				int h = stdIn.nextInt();
				String toRight = str.substrint(0,h);
				String toLeft = str.substrint(h);
				str = toLeft + toRight;
			}
			System.out.println(str);
		}
	}

}

Compiler output:
Main.java:13: error: cannot find symbol
				String toRight = str.substrint(0,h);
				                    ^
  symbol:   method substrint(int,int)
  location: variable str of type String
Main.java:14: error: cannot find symbol
				String toLeft = str.substrint(h);
				                   ^
  symbol:   method substrint(int)
  location: variable str of type String
2 errors
Language: C

#include <bits/stdc++.h>

using namespace std;

#define loop(v, f, l) for(int v = (f), v##_ = (l); v < v##_; v++)
#define debug(x)    cout << #x << ":" << x << endl
typedef long long lint;

inline int input(){ int n; scanf("%d", &n); return n; }
inline lint linput(){ lint n; scanf("%lld", &n); return n; }

int main()
{
    string str;

    while (cin >> str, str != "-"){
        int m = input();
        int len = str.size();

        loop(i, 0, m)
        {
            int h = input();

            string left = str.substr(h);
            string right = str.substr(0, h);
            str = left + right;
        }

        cout << str << endl; 
    }

    return 0;
}

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

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

int main(void) {
	char str[200], buf;
	int h, i, c, k, l;
	
	while(1){
		scanf("%s%d", str, &l);
		if(str[0] == '-') break;
		sh = 0;
		for(k = 0; l > k; k++){
			scanf("%d",&h);
			for(i = 0; h > i; i++){
				buf = str[0];
				for(c = 0; strlen(str) - 1 > c; c++){
					str[c] = str[c+1];
				}
				str[strlen(str)-1] = buf;
			}
		}
		printf("%s\n",str);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: 'sh' undeclared (first use in this function); did you mean 'h'?
   11 |                 sh = 0;
      |                 ^~
      |                 h
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  while(1){
    int m,h,len,i,j;
    char str[202]{0};
    scanf("%s",str);
    if(str[0]=='-')break;
    len=strlen(str);
    scanf("%d",&m);
    for(i=0;i<m;i++){
      scanf("%d",&h);
      strncat(str,str,h);
      for(j=0;j<len;j++){
	str[j]=str[j+h];
      }
      str[len]='\0';
    }
    printf("%s\n",str);
  }
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    6 |     char str[202]{0};
      |                  ^
main.c:6:20: error: expected ';' before '}' token
    6 |     char str[202]{0};
      |                    ^
      |                    ;
main.c:7:16: error: 'str' undeclared (first use in this function)
    7 |     scanf("%s",str);
      |                ^~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

nt main(int argc,const char *argv[]){
    char array[201],h[201];
    int shufflu,count,i,x,j;
    while(1){
        j=0;
        scanf("%s",array);
        if(strcmp(array,'-')==0){
            break;
        }
        scanf("%d",&shufflu);
        while(j!=shufflu){
            
            scanf("%d",&x);
            
            for(i=0;i<x;i++){
                h[i]=array[i];
            }
            for(i=0;array[x+i]!='\0';i++){
                array[i]=array[x+i];
                count++;
            }
            for(i=0;h[i]!='\0';i++){
                array[count+i]=h[i];
            }
            j++;
            count=0;
        }
        printf("%s\n",array);
    }
    return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'nt'; did you mean 'int'?
    1 | nt main(int argc,const char *argv[]){
      | ^~
      | int
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%s",array);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | nt main(int argc,const char *argv[]){
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%s",array);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:12: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    7 |         if(strcmp(array,'-')==0){
      |            ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  +++ |+#include <string.h>
    1 | nt main(int argc,const char *argv[]){
main.c:7:25: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    7 |         if(strcmp(array,'-')==0){
      |                         ^~~
      |                         |
      |                         int
main.c:7:25: note: expected 'const char *' but argument is of type 'int'
main.c:28:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   28 |         printf("%s\n",array);
      |         ^~~~~~
main.c:28:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:28:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main(int argc,const char *argv[]){
    char array[201],h[201];
    int shufflu,count,i,x,j;
    while(1){
        j=0;
        scanf("%s",array);
        if(strcmp(array,'-')==0){
            break;
        }
        
        scanf("%d",&shufflu);
        for(i=0;i<shuffl;i++){
            
            scanf("%d",&x);
            
            for(i=0;i<x;i++){
                h[i]=array[i];
            }
            for(i=0;array[x+i]!='\0';i++){
                array[i]=array[x+i];
                count++;
            }
            for(i=0;h[i]!='\0';i++){
                array[count+i]=h[i];
            }
            j++;
            count=0;
        }
        printf("%s\n",array);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:25: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |         if(strcmp(array,'-')==0){
      |                         ^~~
      |                         |
      |                         int
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:15:19: error: 'shuffl' undeclared (first use in this function); did you mean 'shufflu'?
   15 |         for(i=0;i<shuffl;i++){
      |                   ^~~~~~
      |                   shufflu
main.c:15:19: note: each undeclared identifier is reported only once for each function it appears in