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

#including<iostream>
#including<cctype>
using namespace std;
int main(){
    char ch;
    
    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch)
            }else if(int isupper(char ch)){
                int tolower(char ch)
            }
        }
        
            cout << ch;
        }
    }
    
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #including; did you mean #include?
    2 | #including<cctype>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%c", &ch);
      |         ^~~~~
a.cc:12:16: error: condition declares a function
   12 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:13:20: error: condition declares a function
   13 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:15:13: error: expected initializer before '}' token
   15 |             }else if(int isupper(char ch)){
      |             ^
a.cc:15:26: error: condition declares a function
   15 |             }else if(int isupper(char ch)){
      |                          ^~~~~~~
a.cc:17:13: error: expected initializer before '}' token
   17 |             }
      |             ^
a.cc:20:13: error: 'cout' was not declared in this scope
   20 |             cout << ch;
      |             ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #including<iostream>
a.cc: At global scope:
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include<cctype>
#include<cstdio>
3include<iostream>
using namespace std;
int main(){
    int n;
    
    while(1){
        scanf("%c",&n);
        
        if(n == '\n') break;   //改行のときおわり
        
        if(isalpha(n)){    //入力されたものがアルファベットのとき
            
            if(islower(n)) printf("%c",n);
            else if(isupper(a)) printf("%c",n);
            
        }else{
            printf("%c",n);
        }
    }
    
    return 0;
}


Compiler output:
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3include<iostream>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:16:29: error: 'a' was not declared in this scope
   16 |             else if(isupper(a)) printf("%c",n);
      |                             ^
Language: C++

#include<iostream>
#include<cctype>
#include<stdio.h>
using namespace std;
int main() {
    char ch;
    
    while(1) {
        
        scanf("%c", &ch);
        
        if (ch == '\n') break;
        
        if (isalpha(ch) == true) {
            
            if (islower(ch) == true) {
                
                cout << toupper(char ch);
                
            } else {
                
                cout << tolower(char ch);
                
            }
            
        } else if (ch == ' ') {
            
            cout << ' ';
        
        } else if (ch == ',') {
            
            cout << ',';
            
        } else if (ch == '.') {
            
            cout << '.';
            
        } else {
            
            cout << ch;
            
        }
        
    }
    
   
    
    return 0;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:33: error: expected primary-expression before 'char'
   18 |                 cout << toupper(char ch);
      |                                 ^~~~
a.cc:22:33: error: expected primary-expression before 'char'
   22 |                 cout << tolower(char ch);
      |                                 ^~~~
Language: C++

#include<cctype>
#include<cstdio>
3include<iostream>
using namespace std;
int main(){
    char n;
    
    while(1){
        scanf("%c",&n);
        
        if(n == '\n') break;   //改行のときおわり
        
        if(isalpha(n)){    //入力されたものがアルファベットのとき
            
            if(islower(n)) printf("%c",n);
            else if(isupper(a)) printf("%c",n);
            
        }else{
            printf("%c",n);
        }
    }
    
    return 0;
}


Compiler output:
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3include<iostream>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:16:29: error: 'a' was not declared in this scope
   16 |             else if(isupper(a)) printf("%c",n);
      |                             ^
Language: C++

#include<cctype>
#include<cstdio>
#include<iostream>
using namespace std;
int main(){
    char n;
    
    while(1){
        scanf("%c",&n);
        
        if(n == '\n') break;   //改行のときおわり
        
        if(isalpha(n)){    //入力されたものがアルファベットのとき
            
            if(islower(n)) printf("%c",n);
            else if(isupper(a)) printf("%c",n);
            
        }else{
            printf("%c",n);
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: 'a' was not declared in this scope
   16 |             else if(isupper(a)) printf("%c",n);
      |                             ^
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
int main(){
    char ch[1200]={}
    cin>>ch;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin>>ch;
      |     ^~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
int main(){
    char ch[1200]={};
    cin>>ch;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>ch;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#including<iostream>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch)){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%c", &ch);
      |         ^~~~~
a.cc:11:16: error: condition declares a function
   11 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:12:20: error: condition declares a function
   12 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:16:25: error: condition declares a function
   16 |             else if(int isupper(char ch)){
      |                         ^~~~~~~
a.cc:21:21: error: condition declares a function
   21 |         else if(int isdigit(char ch)){
      |                     ^~~~~~~
a.cc:22:13: error: 'printf' was not declared in this scope
   22 |             printf("%d", ch);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #including<iostream>
Language: C++

#including<iostream>
#including<stdio.h>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch)){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #including; did you mean #include?
    2 | #including<stdio.h>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%c", &ch);
      |         ^~~~~
a.cc:12:16: error: condition declares a function
   12 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:13:20: error: condition declares a function
   13 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:17:25: error: condition declares a function
   17 |             else if(int isupper(char ch)){
      |                         ^~~~~~~
a.cc:22:21: error: condition declares a function
   22 |         else if(int isdigit(char ch)){
      |                     ^~~~~~~
a.cc:23:13: error: 'printf' was not declared in this scope
   23 |             printf("%d", ch);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #including<iostream>
Language: C++

#including<iostream>
#including<stdio.h>
#including<cctype>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch)){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #including; did you mean #include?
    2 | #including<stdio.h>
      |  ^~~~~~~~~
      |  include
a.cc:3:2: error: invalid preprocessing directive #including; did you mean #include?
    3 | #including<cctype>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf' was not declared in this scope
    9 |         scanf("%c", &ch);
      |         ^~~~~
a.cc:13:16: error: condition declares a function
   13 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:14:20: error: condition declares a function
   14 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:18:25: error: condition declares a function
   18 |             else if(int isupper(char ch)){
      |                         ^~~~~~~
a.cc:23:21: error: condition declares a function
   23 |         else if(int isdigit(char ch)){
      |                     ^~~~~~~
a.cc:24:13: error: 'printf' was not declared in this scope
   24 |             printf("%d", ch);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #including<iostream>
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x
        if(x=='.') break;
        else if(islower(x)) char[i]=toupper(x);
        else if(isupper(x)) char[i]=tolower(x);
        else char[i]=x;
        b+=1
    }
    for(int i=0;i<=b;i++){
        cout<<char[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'if'
   10 |         cin>>x
      |               ^
      |               ;
   11 |         if(x=='.') break;
      |         ~~     
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(islower(x)) char[i]=toupper(x);
      |         ^~~~
a.cc:12:33: error: structured binding declaration cannot have type 'char'
   12 |         else if(islower(x)) char[i]=toupper(x);
      |                                 ^~~
a.cc:12:33: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:33: error: cannot decompose non-array non-class type 'int'
a.cc:13:33: error: structured binding declaration cannot have type 'char'
   13 |         else if(isupper(x)) char[i]=tolower(x);
      |                                 ^~~
a.cc:13:33: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:33: error: cannot decompose non-array non-class type 'int'
a.cc:14:18: error: structured binding declaration cannot have type 'char'
   14 |         else char[i]=x;
      |                  ^~~
a.cc:14:18: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:14:18: error: cannot decompose non-array non-class type 'char'
a.cc:15:13: error: expected ';' before '}' token
   15 |         b+=1
      |             ^
      |             ;
   16 |     }
      |     ~        
a.cc:18:15: error: expected primary-expression before 'char'
   18 |         cout<<char[i];
      |               ^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x
        if(x=='.') break;
        else if(islower(x)) char[i]=toupper(x);
        else if(isupper(x)) char[i]=tolower(x);

        b+=1
    }
    for(int i=0;i<=b;i++){
        cout<<char[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'if'
   10 |         cin>>x
      |               ^
      |               ;
   11 |         if(x=='.') break;
      |         ~~     
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(islower(x)) char[i]=toupper(x);
      |         ^~~~
a.cc:12:33: error: structured binding declaration cannot have type 'char'
   12 |         else if(islower(x)) char[i]=toupper(x);
      |                                 ^~~
a.cc:12:33: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:33: error: cannot decompose non-array non-class type 'int'
a.cc:13:33: error: structured binding declaration cannot have type 'char'
   13 |         else if(isupper(x)) char[i]=tolower(x);
      |                                 ^~~
a.cc:13:33: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:33: error: cannot decompose non-array non-class type 'int'
a.cc:15:13: error: expected ';' before '}' token
   15 |         b+=1
      |             ^
      |             ;
   16 |     }
      |     ~        
a.cc:18:15: error: expected primary-expression before 'char'
   18 |         cout<<char[i];
      |               ^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x
        if(x=='.') break;
        else if(islower(x)) ch[i]=toupper(x);
        else if(isupper(x)) ch[i]=tolower(x);
        else ch[i]=x;
        b+=1
    }
    for(int i=0;i<=b;i++){
        cout<<char[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'if'
   10 |         cin>>x
      |               ^
      |               ;
   11 |         if(x=='.') break;
      |         ~~     
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(islower(x)) ch[i]=toupper(x);
      |         ^~~~
a.cc:15:13: error: expected ';' before '}' token
   15 |         b+=1
      |             ^
      |             ;
   16 |     }
      |     ~        
a.cc:18:15: error: expected primary-expression before 'char'
   18 |         cout<<char[i];
      |               ^~~~
Language: C++

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

int main(){
    while(1){
        char ch;
        cin >> ch;
        if(ch == /n){
            break;
        } else if(islower(ch)){
            cout << toupper(ch);
        } else if (isupper(ch)){
            cout << tolower(ch);
        }else {
            cout << ch;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '/' token
    9 |         if(ch == /n){
      |                  ^
a.cc:9:19: error: 'n' was not declared in this scope
    9 |         if(ch == /n){
      |                   ^
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') break;
        else if(islower(x)) ch[i]=toupper(x);
        else if(isupper(x)) ch[i]=tolower(x);
        else ch[i]=x;
        b+=1
    }
    for(int i=0;i<=b;i++){
        cout<<char[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before '}' token
   15 |         b+=1
      |             ^
      |             ;
   16 |     }
      |     ~        
a.cc:18:15: error: expected primary-expression before 'char'
   18 |         cout<<char[i];
      |               ^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') break;
        else if(islower(x)) ch[i]=toupper(x);
        else if(isupper(x)) ch[i]=tolower(x);
        else ch[i]=x;
        b+=1
    }
    for(int i=0;i<=b;i++){
        cout<<ch[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before '}' token
   15 |         b+=1
      |             ^
      |             ;
   16 |     }
      |     ~
Language: C++

#including<iostream>
#including<stdio.h>
#including<cctype>
#including<cstdio>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch)){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #including; did you mean #include?
    2 | #including<stdio.h>
      |  ^~~~~~~~~
      |  include
a.cc:3:2: error: invalid preprocessing directive #including; did you mean #include?
    3 | #including<cctype>
      |  ^~~~~~~~~
      |  include
a.cc:4:2: error: invalid preprocessing directive #including; did you mean #include?
    4 | #including<cstdio>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf' was not declared in this scope
   10 |         scanf("%c", &ch);
      |         ^~~~~
a.cc:14:16: error: condition declares a function
   14 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:15:20: error: condition declares a function
   15 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:19:25: error: condition declares a function
   19 |             else if(int isupper(char ch)){
      |                         ^~~~~~~
a.cc:24:21: error: condition declares a function
   24 |         else if(int isdigit(char ch)){
      |                     ^~~~~~~
a.cc:25:13: error: 'printf' was not declared in this scope
   25 |             printf("%d", ch);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #including<iostream>
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    
    while(true){
        char ch="A",x="A";
        scanf("%c",&a):
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch)
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |         char ch="A",x="A";
      |                 ^~~
      |                 |
      |                 const char*
a.cc:8:23: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |         char ch="A",x="A";
      |                       ^~~
      |                       |
      |                       const char*
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         scanf("%c",&a):
      |                     ^
a.cc:17:10: error: 'else' without a previous 'if'
   17 |         }else{
      |          ^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<stdio.h>
#include<cctype>
#include<cstdio>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch)){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: condition declares a function
   14 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:15:20: error: condition declares a function
   15 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:19:25: error: condition declares a function
   19 |             else if(int isupper(char ch)){
      |                         ^~~~~~~
a.cc:24:21: error: condition declares a function
   24 |         else if(int isdigit(char ch)){
      |                     ^~~~~~~
Language: C++

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

int main(){
    char ch;
    
    while(1){
        cin>>ch;
        if(int islower(int ch)) cout<<int touppeer(int ch)
        else if(int isupper(int ch)) cout<<int tolower(int ch)
        else if(!isalpha(int ch)) cout<<ch;
        else if(ch=="¥n") break;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: condition declares a function
   10 |         if(int islower(int ch)) cout<<int touppeer(int ch)
      |                ^~~~~~~
a.cc:10:39: error: expected primary-expression before 'int'
   10 |         if(int islower(int ch)) cout<<int touppeer(int ch)
      |                                       ^~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(ch=="¥n") break;
      |                 ~~^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch="A",x="A";
    while(true){
        
        scanf("%c",&a):
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch)
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |     char ch="A",x="A";
      |             ^~~
      |             |
      |             const char*
a.cc:6:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |     char ch="A",x="A";
      |                   ^~~
      |                   |
      |                   const char*
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         scanf("%c",&a):
      |                     ^
a.cc:17:10: error: 'else' without a previous 'if'
   17 |         }else{
      |          ^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<stdio.h>
#include<cctype>
#include<cstdio>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch) == true){
            if(int islower(char ch) ==true){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch) == true){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch)true){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: condition declares a function
   14 |         if(int isalpha(char ch) == true){
      |                ^~~~~~~
a.cc:15:20: error: condition declares a function
   15 |             if(int islower(char ch) ==true){
      |                    ^~~~~~~
a.cc:19:25: error: condition declares a function
   19 |             else if(int isupper(char ch) == true){
      |                         ^~~~~~~
a.cc:24:21: error: condition declares a function
   24 |         else if(int isdigit(char ch)true){
      |                     ^~~~~~~
Language: C++

# include<iostream>
# include<studio.h>
using namespace std;
int main() {
    char ch;
    int i;
    while(i<1200) {
        scanf("%c", &ch);
        if (isalpha(ch)) {
            if (islower(ch)) {
                ch = toupper(ch);
            } else {
                ch = tolower(ch);
            }
            cout << ch;
        } else {
            cout << ch;
        }
        i += 1;
    }
    return 0;
}


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

#include<iostream>
#include<stdio.h>
#include<cctype>
#include<cstdio>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch) == true){
            if(int islower(char ch) ==true){
                int toupper(char ch);
            }
            
            else if(int isupper(char ch) == true){
                int tolower(char ch);
            }
        }
        
        else if(int isdigit(char ch) == true){
            printf("%d", ch);
        }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: condition declares a function
   14 |         if(int isalpha(char ch) == true){
      |                ^~~~~~~
a.cc:15:20: error: condition declares a function
   15 |             if(int islower(char ch) ==true){
      |                    ^~~~~~~
a.cc:19:25: error: condition declares a function
   19 |             else if(int isupper(char ch) == true){
      |                         ^~~~~~~
a.cc:24:21: error: condition declares a function
   24 |         else if(int isdigit(char ch) == true){
      |                     ^~~~~~~
Language: C++

# include<iostream>
# include<studio>
using namespace std;
int main() {
    char ch;
    int i;
    while(i<1200) {
        scanf("%c", &ch);
        if (isalpha(ch)) {
            if (islower(ch)) {
                ch = toupper(ch);
            } else {
                ch = tolower(ch);
            }
            cout << ch;
        } else {
            cout << ch;
        }
        i += 1;
    }
    return 0;
}


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

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&a):
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch)
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         scanf("%c",&a):
      |                     ^
a.cc:17:10: error: 'else' without a previous 'if'
   17 |         }else{
      |          ^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch):
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch)
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ':' token
    9 |         scanf("%c",&ch):
      |                        ^
      |                        ;
a.cc:17:10: error: 'else' without a previous 'if'
   17 |         }else{
      |          ^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch):
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ':' token
    9 |         scanf("%c",&ch):
      |                        ^
      |                        ;
a.cc:17:10: error: 'else' without a previous 'if'
   17 |         }else{
      |          ^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch);
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: condition declares a function
   10 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:12:19: error: expected primary-expression before 'int'
   12 |                 x=int toupper(char ch);
      |                   ^~~
a.cc:14:19: error: 'nt' was not declared in this scope; did you mean 'int'?
   14 |                 x=nt tolower(char ch);
      |                   ^~
      |                   int
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |             if(ch="."){
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch);
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch=="."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: condition declares a function
   10 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:12:19: error: expected primary-expression before 'int'
   12 |                 x=int toupper(char ch);
      |                   ^~~
a.cc:14:19: error: 'nt' was not declared in this scope; did you mean 'int'?
   14 |                 x=nt tolower(char ch);
      |                   ^~
      |                   int
a.cc:19:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(ch=="."){
      |                ~~^~~~~
Language: C++

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

int main(){
    char ch;
    
    while(1){
        cin>>ch;
        if(int islower(int ch)) cout<<int touppeer(int ch);
        else if(int isupper(int ch)) cout<<int tolower(int ch);
        else if(!isalpha(int ch)) cout<<ch;
        else if(ch=="¥n") break;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: condition declares a function
   10 |         if(int islower(int ch)) cout<<int touppeer(int ch);
      |                ^~~~~~~
a.cc:10:39: error: expected primary-expression before 'int'
   10 |         if(int islower(int ch)) cout<<int touppeer(int ch);
      |                                       ^~~
a.cc:11:21: error: condition declares a function
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                     ^~~~~~~
a.cc:11:44: error: expected primary-expression before 'int'
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                                            ^~~
a.cc:12:26: error: expected primary-expression before 'int'
   12 |         else if(!isalpha(int ch)) cout<<ch;
      |                          ^~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(ch=="¥n") break;
      |                 ~~^~~~~~
Language: C++

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

int main(){
    char ch;
    
    while(1){
        cin>>ch;
        if(int islower(ch)) cout<<int touppeer(ch);
        else if(int isupper(int ch)) cout<<int tolower(int ch);
        else if(!isalpha(int ch)) cout<<ch;
        else if(ch=="¥n") break;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected initializer before '(' token
   10 |         if(int islower(ch)) cout<<int touppeer(ch);
      |                       ^
a.cc:10:23: error: expected ')' before '(' token
   10 |         if(int islower(ch)) cout<<int touppeer(ch);
      |           ~           ^
      |                       )
a.cc:10:35: error: expected primary-expression before 'int'
   10 |         if(int islower(ch)) cout<<int touppeer(ch);
      |                                   ^~~
a.cc:11:21: error: condition declares a function
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                     ^~~~~~~
a.cc:11:44: error: expected primary-expression before 'int'
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                                            ^~~
a.cc:12:26: error: expected primary-expression before 'int'
   12 |         else if(!isalpha(int ch)) cout<<ch;
      |                          ^~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(ch=="¥n") break;
      |                 ~~^~~~~~
Language: C++

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

int main(){
    char ch;
    
    while(1){
        cin>>ch;
        if(int islower(ch)) cout<<touppeer(ch);
        else if(int isupper(int ch)) cout<<int tolower(int ch);
        else if(!isalpha(int ch)) cout<<ch;
        else if(ch=="¥n") break;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected initializer before '(' token
   10 |         if(int islower(ch)) cout<<touppeer(ch);
      |                       ^
a.cc:10:23: error: expected ')' before '(' token
   10 |         if(int islower(ch)) cout<<touppeer(ch);
      |           ~           ^
      |                       )
a.cc:10:35: error: 'touppeer' was not declared in this scope; did you mean 'toupper'?
   10 |         if(int islower(ch)) cout<<touppeer(ch);
      |                                   ^~~~~~~~
      |                                   toupper
a.cc:11:21: error: condition declares a function
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                     ^~~~~~~
a.cc:11:44: error: expected primary-expression before 'int'
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                                            ^~~
a.cc:12:26: error: expected primary-expression before 'int'
   12 |         else if(!isalpha(int ch)) cout<<ch;
      |                          ^~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(ch=="¥n") break;
      |                 ~~^~~~~~
Language: C++

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

int main(){
    char ch;
    
    while(1){
        cin>>ch;
        if(int islower(ch)) cout<<(touppeer(ch));
        else if(int isupper(int ch)) cout<<int tolower(int ch);
        else if(!isalpha(int ch)) cout<<ch;
        else if(ch=="¥n") break;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected initializer before '(' token
   10 |         if(int islower(ch)) cout<<(touppeer(ch));
      |                       ^
a.cc:10:23: error: expected ')' before '(' token
   10 |         if(int islower(ch)) cout<<(touppeer(ch));
      |           ~           ^
      |                       )
a.cc:10:36: error: 'touppeer' was not declared in this scope; did you mean 'toupper'?
   10 |         if(int islower(ch)) cout<<(touppeer(ch));
      |                                    ^~~~~~~~
      |                                    toupper
a.cc:11:21: error: condition declares a function
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                     ^~~~~~~
a.cc:11:44: error: expected primary-expression before 'int'
   11 |         else if(int isupper(int ch)) cout<<int tolower(int ch);
      |                                            ^~~
a.cc:12:26: error: expected primary-expression before 'int'
   12 |         else if(!isalpha(int ch)) cout<<ch;
      |                          ^~~
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(ch=="¥n") break;
      |                 ~~^~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') {
            ch[i]==".";
            break;}
        else if (x==' ')ch[i]=' ';
        else if(isupper(x)) ch[i]=tolower(x);
        else if(islower(x)) ch[i]=toupper(x);
        b+=1;
    }
    for(int i=0;i<=b;i++){
        cout<<ch[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |             ch[i]==".";
      |             ~~~~~^~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch);
        if(int isalpha(char ch)){
            if(int islower(char ch)){
                x=int toupper(char ch);
            }else{
                x=nt tolower(char ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch == "."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: condition declares a function
   10 |         if(int isalpha(char ch)){
      |                ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:12:19: error: expected primary-expression before 'int'
   12 |                 x=int toupper(char ch);
      |                   ^~~
a.cc:14:19: error: 'nt' was not declared in this scope; did you mean 'int'?
   14 |                 x=nt tolower(char ch);
      |                   ^~
      |                   int
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(ch == "."){
      |                ~~~^~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') {
            ch[i]==".";
            break;
            }
        else if (x==' ')ch[i]=' ';
        else if(isupper(x)) ch[i]=tolower(x);
        else if(islower(x)) ch[i]=toupper(x);
        b+=1;
    }
    for(int i=0;i<=b;i++){
        cout<<ch[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |             ch[i]==".";
      |             ~~~~~^~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') {
            ch[i]=".";
            break;
            }
        else if (x==' ')ch[i]=' ';
        else if(isupper(x)) ch[i]=tolower(x);
        else if(islower(x)) ch[i]=toupper(x);
        b+=1;
    }
    for(int i=0;i<=b;i++){
        cout<<ch[i];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |             ch[i]=".";
      |                   ^~~
      |                   |
      |                   const char*
Language: C++

#include<iostream>
#include<stdio.h>
#include<cctype>
#include<cstdio>
using namespace std;
int main(){
    char ch;

    while(1){
        scanf("%c", &ch);
        
        if ( ch == '\n' ) break;
        
        if(int isalpha(char ch) == true){
            if(int islower(char ch) == true){
                int toupper(char ch);
                printf("%c", &ch);
            }
            
            else if(int isupper(char ch) == true){
                int tolower(char ch);
                printf("%c", &ch);
            }
        }
        
        else if(int isdigit(char ch) == true){
            printf("%d", ch);
        }
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: condition declares a function
   14 |         if(int isalpha(char ch) == true){
      |                ^~~~~~~
a.cc:15:20: error: condition declares a function
   15 |             if(int islower(char ch) == true){
      |                    ^~~~~~~
a.cc:20:25: error: condition declares a function
   20 |             else if(int isupper(char ch) == true){
      |                         ^~~~~~~
a.cc:26:21: error: condition declares a function
   26 |         else if(int isdigit(char ch) == true){
      |                     ^~~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cctype>
using namespace std;
int main(){
    char ch[1200]={};
    char x;
    int b=0;
    for(int i=0;i<1200;i++){
        cin>>x;
        if(x=='.') {
            break;
            }
        else if (x==' ')ch[i]=' ';
        else if(isupper(x)) ch[i]=tolower(x);
        else if(islower(x)) ch[i]=toupper(x);
        b+=1;
    }
    for(int i=0;i<=b;i++){
        cout<<ch[i];
    }
    cout<<"."
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: expected ';' before '}' token
   22 |     cout<<"."
      |              ^
      |              ;
   23 | }
      | ~
Language: C++

#include<cstdio>
#include<cctype>
int main(){
    char ch;
    while(1){
        scanf("%c", &ch);
        
        if(islower(ch)){
            printf(toupper(ch));
            
        }else if(isupper(ch)){
            printf(tolower(ch));
        }else{
            printf(",")
        }
        if(ch == '\n')break;
    }return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |             printf(toupper(ch));
      |                    ~~~~~~~^~~~
      |                           |
      |                           int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:12:27: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |             printf(tolower(ch));
      |                    ~~~~~~~^~~~
      |                           |
      |                           int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:14:24: error: expected ';' before '}' token
   14 |             printf(",")
      |                        ^
      |                        ;
   15 |         }
      |         ~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    while(true){
        
        scanf("%c",&ch);
        if(isalpha(ch)){
            if(islower(ch)){
                x=toupper(ch);
            }else{
                x=tolower(ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
            if(ch == "."){
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(ch == "."){
      |                ~~~^~~~~~