criyle/codenet-compile-errors huggingface dataset:
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(ch) == true){
            if(int islower(ch) == true){
                int toupper(ch);
                printf("%c", &ch);
            }
            
            else if(int isupper(ch) == true){
                int tolower(ch);
                printf("%c", &ch);
            }
        }
        
        else if(int isdigit(ch) == true){
            printf("%d", ch);
        }
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected initializer before '(' token
   14 |         if(int isalpha(ch) == true){
      |                       ^
a.cc:14:23: error: expected ')' before '(' token
   14 |         if(int isalpha(ch) == true){
      |           ~           ^
      |                       )
a.cc:15:27: error: expected initializer before '(' token
   15 |             if(int islower(ch) == true){
      |                           ^
a.cc:15:27: error: expected ')' before '(' token
   15 |             if(int islower(ch) == true){
      |               ~           ^
      |                           )
a.cc:20:32: error: expected initializer before '(' token
   20 |             else if(int isupper(ch) == true){
      |                                ^
a.cc:20:32: error: expected ')' before '(' token
   20 |             else if(int isupper(ch) == true){
      |                    ~           ^
      |                                )
a.cc:26:28: error: expected initializer before '(' token
   26 |         else if(int isdigit(ch) == true){
      |                            ^
a.cc:26:28: error: expected ')' before '(' token
   26 |         else if(int isdigit(ch) == true){
      |                ~           ^
      |                            )
Language: C++

#include<iostream>
#include<cctype>
#include<string>
using namespace std;
int main(){
    string str;
    getline(cin;str);
    int i;
    for(i=0;i<str.size();i++){
        if(str[i]>='A' && str[i]<='Z')str[i]+='A'-'a';
        else if(str[i]>='A' && str[i]<='Z')str[i]+='a'-'A';
    }
    cout << strr <<endl;
    return 0;
    
    
}


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

#include<iostream>
#include<cctype>
#include<string>
using namespace std;
int main(){
    string str;
    getline(cin;str);
    int i;
    for(i=0;i<str.size();i++){
        if(str[i]>='A' && str[i]<='Z')str[i]+='A'-'a';
        else if(str[i]>='A' && str[i]<='Z')str[i]+='a'-'A';
    }
    cout << str <<endl;
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ')' before ';' token
    7 |     getline(cin;str);
      |            ~   ^
      |                )
a.cc:7:20: error: expected ';' before ')' token
    7 |     getline(cin;str);
      |                    ^
      |                    ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected initializer before '(' token
    9 |         else if(int isalpha(ch)){
      |                            ^
a.cc:9:28: error: expected ')' before '(' token
    9 |         else if(int isalpha(ch)){
      |                ~           ^
      |                            )
a.cc:10:27: error: expected initializer before '(' token
   10 |             if(int islower(ch)) cout<<int islower(ch);
      |                           ^
a.cc:10:27: error: expected ')' before '(' token
   10 |             if(int islower(ch)) cout<<int islower(ch);
      |               ~           ^
      |                           )
a.cc:10:39: error: expected primary-expression before 'int'
   10 |             if(int islower(ch)) cout<<int islower(ch);
      |                                       ^~~
a.cc:11:24: error: expected primary-expression before 'int'
   11 |             else cout<<int tolower(ch);
      |                        ^~~
Language: C++

#include<iostream>
#include<cctype>
#include<string>
using namespace std;
int main(){
    string str;
    getline(cin;str);
    int i;
    for(i=0;i<str.size();i++){
        if(str[i]>='a' && str[i]<='z')str[i]+='A'-'a';
        else if(str[i]>='A' && str[i]<='Z')str[i]+='a'-'A';
    }
    cout << str <<endl;
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ')' before ';' token
    7 |     getline(cin;str);
      |            ~   ^
      |                )
a.cc:7:20: error: expected ';' before ')' token
    7 |     getline(cin;str);
      |                    ^
      |                    ;
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclede; did you mean #include?
    1 | #inclede<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:21: error: 'ch' was not declared in this scope; did you mean 'char'?
    9 |         scanf("%c",&ch);
      |                     ^~
      |                     char
a.cc:14:30: error: expected ';' before '}' token
   14 |         else printf("%c",str)
      |                              ^
      |                              ;
   15 |     }
      |     ~
Language: C++

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

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


Compiler output:
a.cc:10:16: error: extended character ¥ is not valid in an identifier
   10 |         if(ch==¥n) break;
      |                ^
a.cc: In function 'int main()':
a.cc:10:16: error: '\U000000a5n' was not declared in this scope
   10 |         if(ch==¥n) break;
      |                ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'ch' was not declared in this scope
    9 |         scanf("%c",&ch);
      |                     ^~
a.cc:14:30: error: expected ';' before '}' token
   14 |         else printf("%c",str)
      |                              ^
      |                              ;
   15 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)){
      |                     ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)) cout<<int islower(char ch);
      |                    ^~~~~~~
a.cc:11:44: error: expected primary-expression before 'int'
   11 |             if(int islower(char ch)) cout<<int islower(char ch);
      |                                            ^~~
a.cc:12:24: error: expected primary-expression before 'int'
   12 |             else cout<<int tolower(char ch);
      |                        ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){ 
    int n;
    char ch[n];
    n=0;
    while(ch[n]=='¥0'){
        cin>>ch;
        if (islower(ch)==true) int toupper;
        else if  (isupper(ch)==true) int tolower;
        t+=1;
    }
}


Compiler output:
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
    9 |     while(ch[n]=='¥0'){
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:11:20: error: no matching function for call to 'islower(char [n])'
   11 |         if (islower(ch)==true) int toupper;
      |             ~~~~~~~^~~~
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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/ctype.h:112:1: note: candidate: 'int islower(int)' (near match)
  112 | __exctype (islower);
      | ^~~~~~~~~
/usr/include/ctype.h:112:1: note:   conversion of argument 1 would be ill-formed:
a.cc:11:21: error: invalid conversion from 'char*' to 'int' [-fpermissive]
   11 |         if (islower(ch)==true) int toupper;
      |                     ^~
      |                     |
      |                     char*
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/locale_facets.h:2637:5: note: candidate: 'template<class _CharT> bool std::islower(_CharT, const locale&)'
 2637 |     islower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2637:5: note:   candidate expects 2 arguments, 1 provided
a.cc:12:26: error: no matching function for call to 'isupper(char [n])'
   12 |         else if  (isupper(ch)==true) int tolower;
      |                   ~~~~~~~^~~~
/usr/include/ctype.h:117:1: note: candidate: 'int isupper(int)' (near match)
  117 | __exctype (isupper);
      | ^~~~~~~~~
/usr/include/ctype.h:117:1: note:   conversion of argument 1 would be ill-formed:
a.cc:12:27: error: invalid conversion from 'char*' to 'int' [-fpermissive]
   12 |         else if  (isupper(ch)==true) int tolower;
      |                           ^~
      |                           |
      |                           char*
/usr/include/c++/14/bits/locale_facets.h:2631:5: note: candidate: 'template<class _CharT> bool std::isupper(_CharT, const locale&)'
 2631 |     isupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2631:5: note:   candidate expects 2 arguments, 1 provided
a.cc:13:9: error: 't' was not declared in this scope
   13 |         t+=1;
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'ch' was not declared in this scope
    9 |         scanf("%c",&ch);
      |                     ^~
a.cc:12:43: error: expected ';' before '}' token
   12 |             else printf("%c",tolower(str))
      |                                           ^
      |                                           ;
   13 |         }
      |         ~                                  
a.cc:14:30: error: expected ';' before '}' token
   14 |         else printf("%c",str)
      |                              ^
      |                              ;
   15 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'ch' was not declared in this scope
    9 |         scanf("%c",&ch);
      |                     ^~
a.cc:14:30: error: expected ';' before '}' token
   14 |         else printf("%c",str)
      |                              ^
      |                              ;
   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 == '.'){
                printf(/n)
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected primary-expression before '/' token
   20 |                 printf(/n)
      |                        ^
a.cc:20:25: error: 'n' was not declared in this scope
   20 |                 printf(/n)
      |                         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected ';' before '}' token
   14 |         else printf("%c",str)
      |                              ^
      |                              ;
   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 == '.'){
                printf(/n);
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected primary-expression before '/' token
   20 |                 printf(/n);
      |                        ^
a.cc:20:25: error: 'n' was not declared in this scope
   20 |                 printf(/n);
      |                         ^
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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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 == '.'){
                printf("%c",/n);
                break;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:29: error: expected primary-expression before '/' token
   20 |                 printf("%c",/n);
      |                             ^
a.cc:20:30: error: 'n' was not declared in this scope
   20 |                 printf("%c",/n);
      |                              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)){
      |                     ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)) int islower(char ch)
      |                    ^~~~~~~
a.cc:12:13: error: expected initializer before 'else'
   12 |             else int tolower(char ch);
      |             ^~~~
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));
       
        }
        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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)){
      |                     ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)) int islower(char 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++){
        scanf("%c",&ch);
        if(x=='¥n') {
            break;
            }
        else if(isupper(x)) {
            cout<<tolower(x);
        
        }
        else if(islower(x)) {
            cout<<=toupper(x);
        }
    }
}


Compiler output:
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |         if(x=='¥n') {
      |               ^~~~
a.cc: In function 'int main()':
a.cc:19:17: error: no match for 'operator<<=' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   19 |             cout<<=toupper(x);
      |             ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/cstddef:157:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType>& std::operator<<=(byte&, _IntegerType)'
  157 |     operator<<=(byte& __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/14/cstddef:157:5: note:   template argument deduction/substitution failed:
a.cc:19:13: note:   cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte&'
   19 |             cout<<=toupper(x);
      |             ^~~~
Language: C++

#include<cstdio>
#include<cctype>
int main(){
    char ch;
    while(1){
        scanf("%d", &ch);
        
        if(islower(ch)){
            printf(toupper(ch));
            
        }else if(isupper(ch)){
            printf(tolower(ch));
       
        }
        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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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 if(ch!='.'){
            printf("%c",ch);
        }else if(ch == '.'){
                printf("%c","."/n);
                break;
        }
        
    }
    return 0;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)){
      |                     ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)) printf("%c",int islower(char ch);
      |                    ^~~~~~~
a.cc:11:50: error: expected primary-expression before 'int'
   11 |             if(int islower(char ch)) printf("%c",int islower(char ch);
      |                                                  ^~~
a.cc:12:31: error: expected primary-expression before 'int'
   12 |             else printf("%c%",int tolower(char ch);
      |                               ^~~
Language: C++

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

int main(){
    int i = 0;
    while(i < 1200){
        char ch;
        cin >> ch;
        scanf("%c", ch)
        if(ch == '/n'){
            break;
        } else if(islower(ch)){
            printf("%c", toupper(ch));
        } else {
            printf("%c", tolower(ch));
        }
        i += 1;
    }
    return 0;
}


Compiler output:
a.cc:11:18: warning: multi-character character constant [-Wmultichar]
   11 |         if(ch == '/n'){
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'if'
   10 |         scanf("%c", ch)
      |                        ^
      |                        ;
   11 |         if(ch == '/n'){
      |         ~~              
a.cc:13:11: error: 'else' without a previous 'if'
   13 |         } else if(islower(ch)){
      |           ^~~~
Language: C++

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



Compiler output:
a.cc:6:15: error: empty character constant
    6 |     char ch = '';
      |               ^~
Language: C++

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

int main(){
    int i = 0;
    while(i < 1200){
        char ch;
        cin >> ch;
        scanf("%c", &ch)
        if(ch == '/n'){
            break;
        } else if(islower(ch)){
            printf("%c", toupper(ch));
        } else {
            printf("%c", tolower(ch));
        }
        i += 1;
    }
    return 0;
}


Compiler output:
a.cc:11:18: warning: multi-character character constant [-Wmultichar]
   11 |         if(ch == '/n'){
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before 'if'
   10 |         scanf("%c", &ch)
      |                         ^
      |                         ;
   11 |         if(ch == '/n'){
      |         ~~               
a.cc:13:11: error: 'else' without a previous 'if'
   13 |         } else if(islower(ch)){
      |           ^~~~
Language: C++

# include<iostream>
# include<cstdio>
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 if (ch == "¥0") {
            cout << " ";
        } else {
            cout << ch;
        }
        i += 1;
        if (ch == '.') break;
    }
    return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
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<stdio.h>
#include<cctype>
using namespace std;
int main(){
    char ch;
    while(1){
        scanf("%c", &ch);
        if ( ch == '\n' ) break;
        else if(int isalpha(char ch)){
            if(int islower(char ch)){
                ch=int islower(char ch);
                printf("%c",ch);
            }
            else {
                ch=int tolower(char ch);
                printf("%c%",ch);
            }
        }
        else printf("%c",ch);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)){
      |                     ^~~~~~~
a.cc:11:20: error: condition declares a function
   11 |             if(int islower(char ch)){
      |                    ^~~~~~~
a.cc:12:20: error: expected primary-expression before 'int'
   12 |                 ch=int islower(char ch);
      |                    ^~~
a.cc:16:20: error: expected primary-expression before 'int'
   16 |                 ch=int tolower(char ch);
      |                    ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator!='
   12 |         else if(isupper!=0){
      |                 ~~~~~~~^~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    char ch;
    while(ch!='\n'){
        scanf("%c",&ch)
        if('a' <= ch && ch <= 'z'){
            cout<<ch - 32;
        }else if('A' <= ch && ch <= 'Z'){
            cout<<ch +32;
        }else{
            cout<<ch;
        }
    }
    cout<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before 'if'
    6 |         scanf("%c",&ch)
      |                        ^
      |                        ;
    7 |         if('a' <= ch && ch <= 'z'){
      |         ~~              
a.cc:9:10: error: 'else' without a previous 'if'
    9 |         }else if('A' <= ch && ch <= 'Z'){
      |          ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: condition declares a function
   10 |         else if(int isalpha(char ch)) printf("%c",ch);
      |                     ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    while(1){
        char ch;
        cin>>ch;
        int islower(char ch);
        if(ch==true){
            int toupper(char ch);
        }else{
            int toupper(char ch)
        }
        int isupper(char ch);
        if(ch==true){
            int tolower(char ch);
        }else{
            int toupper(char ch);
        }
    }
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected initializer before '}' token
   12 |         }
      |         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){ 
    char ch[1200];
    for(int a=0;a<1200;a++){
        cin>>ch[a];
        if (ch[a]=='¥0') break;
        else if (int islower(ch)==true){
            printf(%c,int toupper(ch[a]));
        }
        else if  (int isupper(ch)==true){
            printf(%c,int tolower(ch[a]));
        }
        else printf(%c,ch[a]);
    }
}


Compiler output:
a.cc:9:20: warning: multi-character character constant [-Wmultichar]
    9 |         if (ch[a]=='¥0') break;
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:10:29: error: expected initializer before '(' token
   10 |         else if (int islower(ch)==true){
      |                             ^
a.cc:10:29: error: expected ')' before '(' token
   10 |         else if (int islower(ch)==true){
      |                 ~           ^
      |                             )
a.cc:11:20: error: expected primary-expression before '%' token
   11 |             printf(%c,int toupper(ch[a]));
      |                    ^
a.cc:11:21: error: 'c' was not declared in this scope
   11 |             printf(%c,int toupper(ch[a]));
      |                     ^
a.cc:11:23: error: expected primary-expression before 'int'
   11 |             printf(%c,int toupper(ch[a]));
      |                       ^~~
a.cc:13:30: error: expected initializer before '(' token
   13 |         else if  (int isupper(ch)==true){
      |                              ^
a.cc:13:30: error: expected ')' before '(' token
   13 |         else if  (int isupper(ch)==true){
      |                  ~           ^
      |                              )
a.cc:14:20: error: expected primary-expression before '%' token
   14 |             printf(%c,int tolower(ch[a]));
      |                    ^
a.cc:14:21: error: 'c' was not declared in this scope
   14 |             printf(%c,int tolower(ch[a]));
      |                     ^
a.cc:14:23: error: expected primary-expression before 'int'
   14 |             printf(%c,int tolower(ch[a]));
      |                       ^~~
a.cc:16:21: error: expected primary-expression before '%' token
   16 |         else printf(%c,ch[a]);
      |                     ^
a.cc:16:22: error: 'c' was not declared in this scope
   16 |         else printf(%c,ch[a]);
      |                      ^
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(isalpha(ch) == true){
            if(islower(ch) == true){
                printf("%c", toupper(ch));
            }
            
            else if(int isupper(ch) == true){
                printf("%c", tolower(ch));
            }
        }
        
        else if(int isdigit(ch) == true){
            printf("%d", ch);
        }
        
        else if(ch ==','){
            cout << ',';
        }
        
        else if(ch ==' '){
            cout << ' ';
        }
        
        else if(ch =='.'){
            cout << '.';
        }
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected initializer before '(' token
   19 |             else if(int isupper(ch) == true){
      |                                ^
a.cc:19:32: error: expected ')' before '(' token
   19 |             else if(int isupper(ch) == true){
      |                    ~           ^
      |                                )
a.cc:24:28: error: expected initializer before '(' token
   24 |         else if(int isdigit(ch) == true){
      |                            ^
a.cc:24:28: error: expected ')' before '(' token
   24 |         else if(int isdigit(ch) == true){
      |                ~           ^
      |                            )
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char ch='A',x='A';
    int k=0;
    while(k<1200){
        
        scanf("%c",&ch);
        if(isalpha(ch)){
            if(islower(ch)){
                x=toupper(ch);
            }else{
                x=tolower(ch);
            }
            printf("%c",x);
        }else{
            printf("%c",ch);
        }
        k+=1;
        ch=/0;
    }
    cout<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: expected primary-expression before '/' token
   22 |         ch=/0;
      |            ^
Language: C++

#include(cstdio)
#include(cctype)

using namespace std;

int main() {
    char ch;
    while (true) {
        cin >> ch;
        if (ch == '\n') break;
        else if (isalpha(ch)) {
            if (isupper(ch)) printf("%c", tolower(ch));
            else printf("%c", toupper(ch));
        }
        else printf("%c", ch);
    }
    printf("\n");
    return 0;
}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(cstdio)
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(cctype)
      |         ^
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> ch;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(cstdio)
a.cc:11:18: error: 'isalpha' was not declared in this scope
   11 |         else if (isalpha(ch)) {
      |                  ^~~~~~~
a.cc:12:17: error: 'isupper' was not declared in this scope
   12 |             if (isupper(ch)) printf("%c", tolower(ch));
      |                 ^~~~~~~
a.cc:12:43: error: 'tolower' was not declared in this scope
   12 |             if (isupper(ch)) printf("%c", tolower(ch));
      |                                           ^~~~~~~
a.cc:12:30: error: 'printf' was not declared in this scope
   12 |             if (isupper(ch)) printf("%c", tolower(ch));
      |                              ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include(cstdio)
a.cc:13:31: error: 'toupper' was not declared in this scope
   13 |             else printf("%c", toupper(ch));
      |                               ^~~~~~~
a.cc:13:18: error: 'printf' was not declared in this scope
   13 |             else printf("%c", toupper(ch));
      |                  ^~~~~~
a.cc:13:18: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:15:14: error: 'printf' was not declared in this scope
   15 |         else printf("%c", ch);
      |              ^~~~~~
a.cc:15:14: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:17:5: error: 'printf' was not declared in this scope
   17 |     printf("\n");
      |     ^~~~~~
a.cc:17:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#inslude<iostream>
using namespace std;
#include<stdio.h>

int main(){
    
    char ch;
    
    while(1){
        scanf("%c", $ch);
        if ( ch == \n) break;
        else if ( 65 <= 'ch' && 'ch' <= 90 ){
            'ch' += 32;
            printf ( "%c", ch );
        }
        else printf ( "%c", ch );
        }
        
    }
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inslude; did you mean #include?
    1 | #inslude<iostream>
      |  ^~~~~~~
      |  include
a.cc:11:20: error: stray '\' in program
   11 |         if ( ch == \n) break;
      |                    ^
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                         ^~~~
a.cc:12:33: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                                 ^~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |             'ch' += 32;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:21: error: '$ch' was not declared in this scope; did you mean 'ch'?
   10 |         scanf("%c", $ch);
      |                     ^~~
      |                     ch
a.cc:11:21: error: 'n' was not declared in this scope
   11 |         if ( ch == \n) break;
      |                     ^
a.cc:13:21: error: lvalue required as left operand of assignment
   13 |             'ch' += 32;
      |                     ^~
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
#include<stdio.h>

int main(){
    
    char ch;
    
    while(1){
        scanf("%c", $ch);
        if ( ch == \n) break;
        else if ( 65 <= 'ch' && 'ch' <= 90 ){
            'ch' += 32;
            printf ( "%c", ch );
        }
        else printf ( "%c", ch );
        }
        
    }
    return 0;
}


Compiler output:
a.cc:11:20: error: stray '\' in program
   11 |         if ( ch == \n) break;
      |                    ^
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                         ^~~~
a.cc:12:33: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                                 ^~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |             'ch' += 32;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:21: error: '$ch' was not declared in this scope; did you mean 'ch'?
   10 |         scanf("%c", $ch);
      |                     ^~~
      |                     ch
a.cc:11:21: error: 'n' was not declared in this scope
   11 |         if ( ch == \n) break;
      |                     ^
a.cc:13:21: error: lvalue required as left operand of assignment
   13 |             'ch' += 32;
      |                     ^~
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
#include<stdio.h>

int main(){
    
    char ch;
    
    while(1){
        scanf("%c", $ch);
        if ( ch == '\n') break;
        else if ( 65 <= 'ch' && 'ch' <= 90 ){
            'ch' += 32;
            printf ( "%c", ch );
        }
        else printf ( "%c", ch );
        }
        
    }
    return 0;
}


Compiler output:
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                         ^~~~
a.cc:12:33: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                                 ^~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |             'ch' += 32;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:21: error: '$ch' was not declared in this scope; did you mean 'ch'?
   10 |         scanf("%c", $ch);
      |                     ^~~
      |                     ch
a.cc:13:21: error: lvalue required as left operand of assignment
   13 |             'ch' += 32;
      |                     ^~
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

# include<iostream>
# include<cstdio>
using namespace std;
int main() {
    string str;
    int i;
    while(i<1200) {
        scanf("%s", &str);
        for a in str {
            if (isalpha(ch)) {
                if (islower(ch)) {
                    ch = toupper(ch);
                } else {
                    ch = tolower(ch);
                }
                cout << ch;
            } else if () {
                cout << " ";
            } else {
                cout << ch;
            }
            i += 1;
            if (ch == '.') break;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected '(' before 'a'
    9 |         for a in str {
      |             ^
      |             (
a.cc:9:13: error: 'a' was not declared in this scope
a.cc:25:5: error: expected primary-expression before '}' token
   25 |     }
      |     ^
a.cc:24:10: error: expected ';' before '}' token
   24 |         }
      |          ^
      |          ;
   25 |     }
      |     ~     
a.cc:25:5: error: expected primary-expression before '}' token
   25 |     }
      |     ^
a.cc:24:10: error: expected ')' before '}' token
   24 |         }
      |          ^
      |          )
   25 |     }
      |     ~     
a.cc:9:13: note: to match this '('
    9 |         for a in str {
      |             ^
a.cc:25:5: error: expected primary-expression before '}' token
   25 |     }
      |     ^
Language: C++

#include<iostream>
using namespace std;
#include<stdio.h>

int main(){
    
    char ch;
    
    while(1){
        scanf("%c", &ch);
        if ( ch == '\n') break;
        else if ( 65 <= 'ch' && 'ch' <= 90 ){
            'ch' += 32;
            printf ( "%c", ch );
        }
        else printf ( "%c", ch );
        }
        
    }
    return 0;
}


Compiler output:
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                         ^~~~
a.cc:12:33: warning: multi-character character constant [-Wmultichar]
   12 |         else if ( 65 <= 'ch' && 'ch' <= 90 ){
      |                                 ^~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |             'ch' += 32;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:13:21: error: lvalue required as left operand of assignment
   13 |             'ch' += 32;
      |                     ^~
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^