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

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

char tolower(char);

int main(){
  char w[100];
  char t[100];
  char eof[100]="END_OF_TEXT";
  scanf("%s", w);
  int counter=0;
  while(true){
    scanf("%s", t);
    if(strcmp(t, eof)==0) break;
    for(int i=0; t[i]!='\0'; i++){
      t[i] = tolower(t[i]);
    }
    if(strcmp(t, w)==0) counter++;
  }
  cout << counter << endl;
}

char tolower(char c){
  if(c>='A'&&c<='Z')c+=32;//大文字を小文字に
  return c;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'strcmp' was not declared in this scope
   16 |     if(strcmp(t, eof)==0) break;
      |        ^~~~~~
a.cc:4:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <cstdio>
  +++ |+#include <cstring>
    4 | using namespace std;
a.cc:20:8: error: 'strcmp' was not declared in this scope
   20 |     if(strcmp(t, w)==0) counter++;
      |        ^~~~~~
a.cc:20:8: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#coding: UTF-8

word = input().upper()
cnt = 0

while True:
    sentence = list(map(str, input().split()))
    if 'END_OF_TEXT' in sentence:
        break
    for i in range(len(sentence)):
        if word == sentence[i].upper():
            cnt += 1

print(cnt)


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #coding
    1 | #coding: UTF-8
      |  ^~~~~~
a.cc:8:8: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    8 |     if 'END_OF_TEXT' in sentence:
      |        ^~~~~~~~~~~~~
a.cc:3:1: error: 'word' does not name a type
    3 | word = input().upper()
      | ^~~~
Language: C++

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

string toUpper(string x){
    string y[10000];
    for(int i=0;i<x.size();i++){
        y[i] = toupper(x[i]);
    }
    return y;
}

int main(){
    int cnt=0;
    string word,word2;
    cin >> word;
    word = toUpper(word);
    cin >> word2;
    while(1){
        if(word2=="END_OF_TEXT") break;
        word2 = toUpper(word2);
        if(word==word2) cnt++;
        cin >> word2;
    }
    cout << cnt << endl;
    return 0;
}


Compiler output:
a.cc: In function 'std::string toUpper(std::string)':
a.cc:11:12: error: could not convert 'y' from 'std::string [10000]' {aka 'std::__cxx11::basic_string<char> [10000]'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   11 |     return y;
      |            ^
      |            |
      |            std::string [10000] {aka std::__cxx11::basic_string<char> [10000]}
Language: C++

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

int main() {
    string W, T;
    int count = 0;
    
    scanf("%s", W);
    
    for (int i = 0; i < W.size(); i++) {
        if ('A' <= W[i] && W[i] <= 'Z') W[i] += 'a' - 'A';
    }
    while(1) {
        if (T == "END_OF_TEXT") break;
        for (int i = 0; i < T.size(); i++){
            if ('A' <= T[i] && T[i] <= 'Z') T[i] += 'a' - 'A';
        }
        
        if (W == T) {
            count ++
            scanf("%s", T)
        }
    }
    
    printf("%d\n", count);
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: expected ';' before 'scanf'
   21 |             count ++
      |                     ^
      |                     ;
   22 |             scanf("%s", T)
      |             ~~~~~
Language: C++

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

int main() {
    string W, T;
    int count = 0;
    
    scanf("%s", W);
    
    for (int i = 0; i < W.size(); i++) {
        if ('A' <= W[i] && W[i] <= 'Z') W[i] += 'a' - 'A';
    }
    while(1) {
        if (T == "END_OF_TEXT") break;
        for (int i = 0; i < T.size(); i++){
            if ('A' <= T[i] && T[i] <= 'Z') T[i] += 'a' - 'A';
        }
        
        if (W == T) {
            count ++
            scanf("%s", T);
        }
    }
    
    printf("%d\n", count);
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: expected ';' before 'scanf'
   21 |             count ++
      |                     ^
      |                     ;
   22 |             scanf("%s", T);
      |             ~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string tolower(string s)
    if( 'A' <= s && s <= 'Z' ){
    return s - 'A'+'a';
  }else{
    return s;
  }
  in
}

















int main(){
  int count=0;
  string W;
  cin>>W;
  string str;
  while(1){
    cin>>str;
    if(str=="END_OF_TEXT")break;
    for(int i=0;i<(int)str.size();i++){
      str[i]=tolower(str[i]);
    }
    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'if'
    6 |     if( 'A' <= s && s <= 'Z' ){
      |     ^~
a.cc:8:4: error: 'else' without a previous 'if'
    8 |   }else{
      |    ^~~~
a.cc:9:12: error: 's' was not declared in this scope
    9 |     return s;
      |            ^
a.cc:11:3: error: 'in' was not declared in this scope; did you mean 'int'?
   11 |   in
      |   ^~
      |   int
a.cc: At global scope:
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0;
    while(true){
        cin>>str1>>str2;
        if(str2.substr(str1) count+=1;
        else{
            continue;
        }
        if(str2==END_OF_TEXT) break;
    }cout<<count<<endl;
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |         if(str2.substr(str1) count+=1;
      |                        ^~~~
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:11:9: error: expected primary-expression before 'else'
   11 |         else{
      |         ^~~~
a.cc:10:39: error: expected ')' before 'else'
   10 |         if(str2.substr(str1) count+=1;
      |           ~                           ^
      |                                       )
   11 |         else{
      |         ~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size;i++){
        t[i]=tolower(s[i])
    }return 0;
}
lp@l
















int main(){
  int count=0;
  string W;
  cin>>W;
  string str;
  while(1){
    cin>>str;
    if(str=="END_OF_TEXT")break;
    for(int i=0;i<(int)str.size();i++){
      str[i]=tolower(str[i]);
    }
    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc:10:3: error: stray '@' in program
   10 | lp@l
      |   ^
a.cc: In function 'std::string tolower(std::string)':
a.cc:6:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    6 |     for(int i=0;i<s.size;i++){
      |                   ~~^~~~
      |                         ()
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: At global scope:
a.cc:10:1: error: 'lp' does not name a type
   10 | lp@l
      | ^~
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size;i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    
}

























int main(){
  int count=0;
  string W;
  cin>>W;
  string str;
  while(1){
    cin>>str;
    if(str=="END_OF_TEXT")break;
    for(int i=0;i<(int)str.size();i++){
      str[i]=tolower(str[i]);
    }
    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:6:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    6 |     for(int i=0;i<s.size;i++){
      |                   ~~^~~~
      |                         ()
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: At global scope:
a.cc:40:5: error: redefinition of 'int main()'
   40 | int main(){
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size;i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> w;
    string str;
    while
    
}

























int main(){
  int count=0;
  string W;
  cin>>W;
  string str;
  while(1){
    cin>>str;
    if(str=="END_OF_TEXT")break;
    for(int i=0;i<(int)str.size();i++){
      str[i]=tolower(str[i]);
    }
    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:6:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    6 |     for(int i=0;i<s.size;i++){
      |                   ~~^~~~
      |                         ()
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: In function 'int main()':
a.cc:13:12: error: 'w' was not declared in this scope
   13 |     cin >> w;
      |            ^
a.cc:17:1: error: expected '(' before '}' token
   17 | }
      | ^
      | (
a.cc:17:1: error: expected primary-expression before '}' token
a.cc:15:10: error: expected ')' before '}' token
   15 |     while
      |          ^
      |          )
   16 | 
   17 | }
      | ~         
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
a.cc: At global scope:
a.cc:43:5: error: redefinition of 'int main()'
   43 | int main(){
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> w;
    string str;
    while(1){
        cin >> str;
        for(int i=0;i<str.size();i++){
        
    }
    
}

































    cin>>str;
    if(str=="END_OF_TEXT")break;
    for(int i=0;i<(int)str.size();i++){
      str[i]=tolower(str[i]);
    }
    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: In function 'int main()':
a.cc:13:12: error: 'w' was not declared in this scope
   13 |     cin >> w;
      |            ^
a.cc:56:27: error: break statement not within loop or switch
   56 |     if(str=="END_OF_TEXT")break;
      |                           ^~~~~
a.cc:61:7: error: 'count' was not declared in this scope
   61 |       count++;
      |       ^~~~~
a.cc: At global scope:
a.cc:64:3: error: 'cout' does not name a type
   64 |   cout<<count<<endl;
      |   ^~~~
a.cc:65:3: error: expected unqualified-id before 'return'
   65 |   return 0;
      |   ^~~~~~
a.cc:66:1: error: expected declaration before '}' token
   66 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> w;
    string str;
    while(1){
        cin >> str;
        if(str=="END_OF_TEXT")break;
        for(int i=0;i<str.size();i++){
            str[i]=tolower(str[i]);
        }
        
    }
    
}


































    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: In function 'int main()':
a.cc:13:12: error: 'w' was not declared in this scope
   13 |     cin >> w;
      |            ^
a.cc: At global scope:
a.cc:59:5: error: expected unqualified-id before 'if'
   59 |     if(str==W){
      |     ^~
a.cc:62:3: error: expected declaration before '}' token
   62 |   }
      |   ^
a.cc:63:3: error: 'cout' does not name a type
   63 |   cout<<count<<endl;
      |   ^~~~
a.cc:64:3: error: expected unqualified-id before 'return'
   64 |   return 0;
      |   ^~~~~~
a.cc:65:1: error: expected declaration before '}' token
   65 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> W;
    string str;
    while(1){
        cin >> str;
        if(str=="END_OF_TEXT")break;
        for(int i=0;i<str.size();i++){
            str[i]=tolower(str[i]);
        }
        
    }
    
}


































    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: At global scope:
a.cc:59:5: error: expected unqualified-id before 'if'
   59 |     if(str==W){
      |     ^~
a.cc:62:3: error: expected declaration before '}' token
   62 |   }
      |   ^
a.cc:63:3: error: 'cout' does not name a type
   63 |   cout<<count<<endl;
      |   ^~~~
a.cc:64:3: error: expected unqualified-id before 'return'
   64 |   return 0;
      |   ^~~~~~
a.cc:65:1: error: expected declaration before '}' token
   65 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> W;
    string str;
    while(1){
        cin >> str;
        if(str=="END_OF_TEXT")break;
        for(int i=0;i<str.size();i++){
            str[i]=tolower(str[i]);
            if(str==W){
                count++;
            }
        }
    cout<<count<<endl;
    return 0;
        
        
    }
    
}


































    if(str==W){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: In function 'int main()':
a.cc:21:17: error: 'count' was not declared in this scope
   21 |                 count++;
      |                 ^~~~~
a.cc:24:11: error: 'count' was not declared in this scope
   24 |     cout<<count<<endl;
      |           ^~~~~
a.cc: At global scope:
a.cc:65:5: error: expected unqualified-id before 'if'
   65 |     if(str==W){
      |     ^~
a.cc:68:3: error: expected declaration before '}' token
   68 |   }
      |   ^
a.cc:69:3: error: 'cout' does not name a type
   69 |   cout<<count<<endl;
      |   ^~~~
a.cc:70:3: error: expected unqualified-id before 'return'
   70 |   return 0;
      |   ^~~~~~
a.cc:71:1: error: expected declaration before '}' token
   71 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0;
    while(true){
        cin>>str1>>str2;
        for(int i=0;i<str2.size();i++){
            if(str1.substr(str2)){
                count+=1
            }
        }
        if(str2=="END_OF_TEXT") break;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   11 |             if(str1.substr(str2)){
      |                            ^~~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:12:25: error: expected ';' before '}' token
   12 |                 count+=1
      |                         ^
      |                         ;
   13 |             }
      |             ~            
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> W;
    string str;
    while(1){
        cin >> str;
        if(str=="END_OF_TEXT")break;
        for(int i=0;i<str.size();i++){
            str[i]=tolower(str[i]);
            if(str==W){
                count++;
            }
        }
    cout<<count<<endl;
    return 0;
        
        
    }
    
}






















Compiler output:
a.cc: In function 'std::string tolower(std::string)':
a.cc:7:27: error: expected ';' before '}' token
    7 |         t[i]=tolower(s[i])
      |                           ^
      |                           ;
    8 |     }return 0;
      |     ~                      
a.cc: In function 'int main()':
a.cc:21:17: error: 'count' was not declared in this scope
   21 |                 count++;
      |                 ^~~~~
a.cc:24:11: error: 'count' was not declared in this scope
   24 |     cout<<count<<endl;
      |           ^~~~~
Language: C++

#include<iostream>
#include<string>
string tolower(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t[i]=tolower(s[i])
    }return 0;
}
int main(){
    int c = 0;
    string W;
    cin >> W;
    string str;
    while(1){
        cin >> str;
        if(str=="END_OF_TEXT")break;
        for(int i=0;i<str.size();i++){
            str[i]=tolower(str[i]);
            if(str==W){
                count++;
            }
        }
    cout<<count<<endl;
    return 0;
        
        
    }
    
}






















Compiler output:
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
    3 | string tolower(string s){
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:5: error: 'string' was not declared in this scope
   11 |     string W;
      |     ^~~~~~
a.cc:11:5: 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:1:
/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:12:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |     cin >> W;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:12: error: 'W' was not declared in this scope
   12 |     cin >> W;
      |            ^
a.cc:13:11: error: expected ';' before 'str'
   13 |     string str;
      |           ^~~~
      |           ;
a.cc:15:16: error: 'str' was not declared in this scope; did you mean 'std'?
   15 |         cin >> str;
      |                ^~~
      |                std
a.cc:20:17: error: 'count' was not declared in this scope
   20 |                 count++;
      |                 ^~~~~
a.cc:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     cout<<count<<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:11: error: 'count' was not declared in this scope
   23 |     cout<<count<<endl;
      |           ^~~~~
a.cc:23:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |     cout<<count<<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<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0;
    while(true){
        cin>>str1>>str2;
        for(int i=0;i<str2.size();i++){
            if(str1.substr(str2)){
                count+=1
            }
        }
        if(str2=="END_OF_TEXT") break;
    }cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   11 |             if(str1.substr(str2)){
      |                            ^~~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:12:25: error: expected ';' before '}' token
   12 |                 count+=1
      |                         ^
      |                         ;
   13 |             }
      |             ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0;
    while(true){
        cin>>str1>>str2;
        for(int i=0;i<str2.size();i++){
            if(str1.substr(str2)){
                count+=1
            }
        }
        if(str2=="END_OF_TEXT") break;
    }cout<<count<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   11 |             if(str1.substr(str2)){
      |                            ^~~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:12:25: error: expected ';' before '}' token
   12 |                 count+=1
      |                         ^
      |                         ;
   13 |             }
      |             ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0;
    while(true){
        cin>>str1>>str2;
        if(str1.substr(str2)){
                count+=1
        }
        if(str2=="END_OF_TEXT") break;
    }cout<<count<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |         if(str1.substr(str2)){
      |                        ^~~~
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:11:25: error: expected ';' before '}' token
   11 |                 count+=1
      |                         ^
      |                         ;
   12 |         }
      |         ~
Language: C++

#include<string>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    string a,b,c;
    int x=0,y;
    cin >> a;
    while(1){
        b="";
        cin >> c;
        y=c.size();
        if(c=="END_OF_TEXT"){
               cout << x << endl;
            break;
        }
        for(int i=0;i<y;i++){
            b += tolower(f[i]);
        }
        if()
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    string a;
    string b;
    string f;
    string g;
    int c=0,d,e;
    cin>>a;
    d=a.size();
    while(true){
        b="";
        cin>>f;
        e=f.size()
        for(int i=0;i<e;i++){
            b += tolower(f[i]);
        }
        if(b==a){
            c++;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'f' was not declared in this scope
   18 |             b += tolower(f[i]);
      |                          ^
a.cc:20:12: error: expected primary-expression before ')' token
   20 |         if()
      |            ^
a.cc:21:5: error: expected primary-expression before '}' token
   21 |     }
      |     ^
a.cc:55:12: error: redeclaration of 'std::string a'
   55 |     string a;
      |            ^
a.cc:6:12: note: 'std::string a' previously declared here
    6 |     string a,b,c;
      |            ^
a.cc:56:12: error: redeclaration of 'std::string b'
   56 |     string b;
      |            ^
a.cc:6:14: note: 'std::string b' previously declared here
    6 |     string a,b,c;
      |              ^
a.cc:59:9: error: conflicting declaration 'int c'
   59 |     int c=0,d,e;
      |         ^
a.cc:6:16: note: previous declaration as 'std::string c'
    6 |     string a,b,c;
      |                ^
a.cc:65:19: error: expected ';' before 'for'
   65 |         e=f.size()
      |                   ^
      |                   ;
   66 |         for(int i=0;i<e;i++){
      |         ~~~        
a.cc:66:21: error: 'i' was not declared in this scope
   66 |         for(int i=0;i<e;i++){
      |                     ^
a.cc:70:14: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   70 |             c++;
      |             ~^~
Language: C++

#include<string>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    string a,b,c;
    int x=0,y;
    cin >> a;
    while(1){
        b="";
        cin >> c;
        y=c.size();
        if(c=="END_OF_TEXT"){
               cout << x << endl;
            break;
        }
        for(int i=0;i<y;i++){
            b += tolower(f[i]);
        }
        if(b==a){
            x++;
        }
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    string a;
    string b;
    string f;
    string g;
    int c=0,d,e;
    cin>>a;
    d=a.size();
    while(true){
        b="";
        cin>>f;
        e=f.size()
        for(int i=0;i<e;i++){
            b += tolower(f[i]);
        }
        if(b==a){
            c++;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'f' was not declared in this scope
   18 |             b += tolower(f[i]);
      |                          ^
a.cc:57:12: error: redeclaration of 'std::string a'
   57 |     string a;
      |            ^
a.cc:6:12: note: 'std::string a' previously declared here
    6 |     string a,b,c;
      |            ^
a.cc:58:12: error: redeclaration of 'std::string b'
   58 |     string b;
      |            ^
a.cc:6:14: note: 'std::string b' previously declared here
    6 |     string a,b,c;
      |              ^
a.cc:61:9: error: conflicting declaration 'int c'
   61 |     int c=0,d,e;
      |         ^
a.cc:6:16: note: previous declaration as 'std::string c'
    6 |     string a,b,c;
      |                ^
a.cc:67:19: error: expected ';' before 'for'
   67 |         e=f.size()
      |                   ^
      |                   ;
   68 |         for(int i=0;i<e;i++){
      |         ~~~        
a.cc:68:21: error: 'i' was not declared in this scope
   68 |         for(int i=0;i<e;i++){
      |                     ^
a.cc:72:14: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   72 |             c++;
      |             ~^~
Language: C++

#include<string>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    string a,b,c;
    int x=0,y;
    cin >> a;
    while(1){
        b="";
        cin >> c;
        y=c.size();
        if(c=="END_OF_TEXT"){
               cout << x << endl;
            break;
        }
        for(int i=0;i<y;i++){
            b += tolower(f[i]);
        }
        if(b==a){
            x++;
        }
    }return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'f' was not declared in this scope
   18 |             b += tolower(f[i]);
      |                          ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0,a;
    cin>>str1;
    while(true){
        b=""
        cin>>str2;
        a=str2.size();
        if(str2=="END_OF_TEXT") break;
        for(int i=0;i<a;i++){
            b+=str2[i];
        }
        if(str1==b) count+=1;
    }cout<<count<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'b' was not declared in this scope
   10 |         b=""
      |         ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str1;
    string str2;
    int count=0,a;
    cin>>str1;
    while(true){
        b="";
        cin>>str2;
        a=str2.size();
        if(str2=="END_OF_TEXT") break;
        for(int i=0;i<a;i++){
            b+=str2[i];
        }
        if(str1==b) count+=1;
    }cout<<count<<endl;
    return 0;
}


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

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str1,str2,str3;
    int count;
    cin>>str1;
    while(1){
        cin>>str2;
        if(str2=="END_OF_TEXT"){
            break;
        }
        str3=tolower(str2);
            if(str3==str1){
        count++;
        }
    }
    cout<<count<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: no matching function for call to 'tolower(std::string&)'
   15 |         str3=tolower(str2);
      |              ~~~~~~~^~~~~~
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<cctype>
#include<string>
using namespace std;

string toUpper(string s){
    t = s;
    for(int i=0;i<s.size();i++){
        t = toupper(s[i]);
    }
    return t;
}

int main(){
    string word,T;
    int cnt;
    cin >> word;
    word = toUpper(word);
    while(1){
        cin >> T;
        if(T==END_OF_TEXT) break;
        T = toUpper(T);
        if(T==word) cnt++;
    }
    return 0;
}


Compiler output:
a.cc: In function 'std::string toUpper(std::string)':
a.cc:7:5: error: 't' was not declared in this scope
    7 |     t = s;
      |     ^
a.cc: In function 'int main()':
a.cc:21:15: error: 'END_OF_TEXT' was not declared in this scope
   21 |         if(T==END_OF_TEXT) break;
      |               ^~~~~~~~~~~
Language: C++

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

string toUpper(string s){
    string t = s;
    for(int i=0;i<s.size();i++){
        t = toupper(s[i]);
    }
    return t;
}

int main(){
    string word,T;
    int cnt;
    cin >> word;
    word = toUpper(word);
    while(1){
        cin >> T;
        if(T==END_OF_TEXT) break;
        T = toUpper(T);
        if(T==word) cnt++;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: 'END_OF_TEXT' was not declared in this scope
   21 |         if(T==END_OF_TEXT) break;
      |               ^~~~~~~~~~~
Language: C++

#include<iostream>
include<cctype>
#include<string>

using namespace std;

int main() {
    string W, T;
    cin >> W;
    int sum = 0;
    while (true) {
        cin >> T;
        if (T == "END_OF_TEXT") break;
        for (int i = 0; i < T.size(); i++) {
            if (isupper(T[i])) T[i] = tolower(T[i]);
        }
        else if (T == W) sum += 1;
    }
    cout << sum << endl;
    return 0;
}


Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include<cctype>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'string' was not declared in this scope
    8 |     string W, T;
      |     ^~~~~~
a.cc:8:5: 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:1:
/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:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> W;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:12: error: 'W' was not declared in this scope
    9 |     cin >> W;
      |            ^
a.cc:12:16: error: 'T' was not declared in this scope
   12 |         cin >> T;
      |                ^
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else if (T == W) sum += 1;
      |         ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout << sum << 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:19:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout << sum << 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<iostream>
#include<cctype>
#include<string>

using namespace std;

int main() {
    string W, T;
    cin >> W;
    int sum = 0;
    while (true) {
        cin >> T;
        if (T == "END_OF_TEXT") break;
        for (int i = 0; i < T.size(); i++) {
            if (isupper(T[i])) T[i] = tolower(T[i]);
        }
        else if (T == W) sum += 1;
    }
    cout << sum << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else if (T == W) sum += 1;
      |         ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str1,str2,str3;
    int count,n;
    cin>>str1;
    while(1){
        str2=""
        cin>>str2;
        if(str2=="END_OF_TEXT"){
            break;
        }
        n=str2.size();
        for(int i=0;i<n;i++){
            str3+=tolower(str2[i]);
        }
        if(str3==str1){
            count++;
        }
    }
    cout<<count<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'cin'
   11 |         str2=""
      |                ^
      |                ;
   12 |         cin>>str2;
      |         ~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str1,str2,str3;
    int count,n;
    cin>>str1;
    while(1){
        str3=""
        cin>>str2;
        if(str2=="END_OF_TEXT"){
            break;
        }
        n=str2.size();
        for(int i=0;i<n;i++){
            str3+=tolower(str2[i]);
        }
        if(str3==str1){
            count++;
        }
    }
    cout<<count<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'cin'
   11 |         str3=""
      |                ^
      |                ;
   12 |         cin>>str2;
      |         ~~~
Language: C++

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>

using namespace std;

int main()
{
    string w, text;
    int ans = 0;
    cin >> w;

    while (true)
    {
        cin >> text;
        if (text == "END_OF_TEXT")
            break;

        transform(all(text), text.begin(), ::tolower);
        if (text == w)
            ans++;
    }

    printf("%d\n", ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
   18 |         transform(all(text), text.begin(), ::tolower);
      |                   ^~~
      |                   std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:2:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++


#include <iostream>
#include <string>
#include <locale>
#include <stdio.h>
#include <ctype.h>
#include <cstring>
using namespace std;

int main()
{   string s;
    cin>>s;
    int n=0;
    while(true){
        
        string p;
        cin>> p;
        if(p=="END_OF_TEXT"){
            break;
        }else{
            for (int i=0;i<strlen(p);i++){
            p[i]=tolower(p[i]);}
            if(p==s){
                n++;
            }
        }
    }
    
    cout << n<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:35: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   21 |             for (int i=0;i<strlen(p);i++){
      |                                   ^
      |                                   |
      |                                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:7:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++


#include <iostream>
#include <string>
#include <locale>
#include <stdio.h>
#include <ctype.h>
#include <cstring>
#include <cctype>
using namespace std;

int main()
{   char s[20];
    cin>>s;
    int n=0;
    while(true){
        
        char p[20];

        cin>>p;
        
        
        if(strcmp(p,"END_OF_TEXT")){
            break;
        }else{
            for (int i=0;i<strlen(p);i++){
            p[i]=tolower(p[i]);}
            if(const(p,s)){
                n+=1;
            }
        }
    }
    
    cout << n<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: expected primary-expression before 'const'
   27 |             if(const(p,s)){
      |                ^~~~~
a.cc:27:16: error: expected ')' before 'const'
   27 |             if(const(p,s)){
      |               ~^~~~~
      |                )
Language: C++

#include<string>
using namespace std;
int main(){
    string W,T;
    cin >> W;
    int n = 0;
    while(cin >> T != "END_OF_TEXT"){
        if (T == W) n++;
    }
    cout << n;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> W;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << n;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<string>
#inclde<iostream>
using namespace std;
int main(){
    string W,T;
    cin >> W;
    int n = 0;
    while(cin >> T != "END_OF_TEXT"){
        if (T == W) n++;
    }
    cout << n;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inclde; did you mean #include?
    2 | #inclde<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> W;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | #inclde<iostream>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << n;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'