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

#include<stdio.h>
#define MAX 1200

int main(){
 int i=0,j;
 char c[MAX];
  gets(c);
　while(1){
   if(c[i]=="\0"){break;}
   else if(isupper(c[i])){printf("%c",tolower(c[i]));}
   else if(islower(c[i])){printf("%c",toupper(c[i]));}
   else{printf("%c", c[i]);}
   i++;
  }
 printf("\n");
 return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(c);
      |   ^~~~
      |   fgets
main.c:8:1: error: stray '\343' in program
    8 | <U+3000>while(1){
      | ^~~~~~~~
main.c:9:11: warning: comparison between pointer and integer
    9 |    if(c[i]=="\0"){break;}
      |           ^~
main.c:10:12: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   10 |    else if(isupper(c[i])){printf("%c",tolower(c[i]));}
      |            ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    1 | #include<stdio.h>
  +++ |+#include <ctype.h>
    2 | #define MAX 1200
main.c:10:39: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 |    else if(isupper(c[i])){printf("%c",tolower(c[i]));}
      |                                       ^~~~~~~
main.c:10:39: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:11:12: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
   11 |    else if(islower(c[i])){printf("%c",toupper(c[i]));}
      |            ^~~~~~~
main.c:11:12: note: include '<ctype.h>' or provide a declaration of 'islower'
main.c:11:39: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   11 |    else if(islower(c[i])){printf("%c",toupper(c[i]));}
      |                                       ^~~~~~~
main.c:11:39: note: include '<ctype.h>' or provide a declaration of 'toupper'
Language: C

#include<stdio.h>
#define MAX 1200

int main(){
 int i=0,j;
 char c[MAX];
  gets(c);
　while(c[i]!='\0'){
   if(isupper(c[i])){printf("%c",tolower(c[i]));}
   else if(islower(c[i])){printf("%c",toupper(c[i]));}
   else{printf("%c", c[i]);}
   i++;
  }
 printf("\n");
 return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(c);
      |   ^~~~
      |   fgets
main.c:8:1: error: stray '\343' in program
    8 | <U+3000>while(c[i]!='\0'){
      | ^~~~~~~~
main.c:9:7: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
    9 |    if(isupper(c[i])){printf("%c",tolower(c[i]));}
      |       ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    1 | #include<stdio.h>
  +++ |+#include <ctype.h>
    2 | #define MAX 1200
main.c:9:34: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
    9 |    if(isupper(c[i])){printf("%c",tolower(c[i]));}
      |                                  ^~~~~~~
main.c:9:34: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:10:12: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
   10 |    else if(islower(c[i])){printf("%c",toupper(c[i]));}
      |            ^~~~~~~
main.c:10:12: note: include '<ctype.h>' or provide a declaration of 'islower'
main.c:10:39: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   10 |    else if(islower(c[i])){printf("%c",toupper(c[i]));}
      |                                       ^~~~~~~
main.c:10:39: note: include '<ctype.h>' or provide a declaration of 'toupper'
Language: C

#include <stdio.h>

#define LENGTH = 1200

main()
{
	int i;
	char c, s[LENGTH];
	for(i = 0; i < LENGTH; i++){
	    scanf("%c", &c);
		if ( c == '\n'){
			s[i] = '\0';
			break;
		}else{
			s[i] = c;
		}
	}
	
	for(i = 0; i < LENGTH; i++){
		if (s[i] == '\0'){
			printf("\n");
			break;
		}else if(s[i] >= 'A' && s[i] <= 'Z'){
			printf("%c", s[i]+0x20);
		}else{
			printf("%c", s[i]);
		}
	}
		
	return 0;
}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main()
      | ^~~~
main.c: In function 'main':
main.c:3:16: error: expected expression before '=' token
    3 | #define LENGTH = 1200
      |                ^
main.c:8:19: note: in expansion of macro 'LENGTH'
    8 |         char c, s[LENGTH];
      |                   ^~~~~~
main.c:3:16: error: expected expression before '=' token
    3 | #define LENGTH = 1200
      |                ^
main.c:9:24: note: in expansion of macro 'LENGTH'
    9 |         for(i = 0; i < LENGTH; i++){
      |                        ^~~~~~
main.c:3:16: error: expected expression before '=' token
    3 | #define LENGTH = 1200
      |                ^
main.c:19:24: note: in expansion of macro 'LENGTH'
   19 |         for(i = 0; i < LENGTH; i++){
      |                        ^~~~~~
Language: C

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


int main(void){

	char s[1200];
	int i;

	scanf("%s",s);

	for(i=0;i<strlen(s);i++){
		if(s[i] <= 'z' && s[i] >= 'a')
			printf("%c",toupper(s[i]));
		else
			printf("%c",tolower(s[i]));
	}
	puts("");

	return 0;

}

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

#include <stdio.h>
#include <cctype.h>

int main(){
  char ch;

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

 
  return 0;
}

Compiler output:
main.c:2:10: fatal error: cctype.h: No such file or directory
    2 | #include <cctype.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(void)
{
char x[1300];
char v;
int i = 0;
 int k;
while(1)
{
scanf("%c",&v);
 
if(v == '\n')
break;
 
else if('a' <= v && v <= 'z')
v -= 32;
else if('A' <= v && v <='Z')
v += 32;
 
x[i] = v;
i++;
}

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

Compiler output:
main.c: In function 'main':
main.c:26:18: error: expected ';' before '}' token
   26 | printf("%c",x[k])
      |                  ^
      |                  ;
   27 | }
      | ~
Language: C

#include <stdio.h>

int length(char x[]){
	int i;
	
	for(i = 0;x[i]!='\0';i++){
	
	}

	return i;
}

void toUpperOrLowerCase(char x[]){
	int i;

	for(i = 0;x[i]!='\0';i++){
		if((x[i] >= 65 && x[i] <= 90) || (x[i] >= 97 && x[i] <= 122)){
			x[i] = (x[i] % 64 + 32) % 64 + 64;
		}
	}
}

int main(void){
	char x[1200];

	(scanf("%s",&x);
	toUpperOrLowerCase(x);
	printf("%s",x);
	if(x[length(x)-1]=='.') printf("\n");
	else printf(" ");
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:26:24: error: expected ')' before ';' token
   26 |         (scanf("%s",&x);
      |         ~              ^
      |                        )
main.c:31:18: error: expected ';' before '}' token
   31 |         return 0;
      |                  ^
      |                  ;
   32 | 
   33 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
char c;
while(1){
scanf("%c",&c);
if(c==\n){
printf("\n");break;
}
else if('A'<=c&&c<='Z'){
c='a'+c-'A';printf("%c",c);
}
else if('a'<=c&&c<='z'){
c='A'+c-'a';printf("%c",c);
}else{printf("%c",c);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\' in program
    6 | if(c==\n){
      |       ^
main.c:6:8: error: 'n' undeclared (first use in this function)
    6 | if(c==\n){
      |        ^
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
char c;
while(1){
scanf("%c",&c);
if(c==\n){
printf("\n");break;
}
else if('A'<=c&&c<='Z'){
c='a'+c-'A';printf("%c",c);
}
else if('a'<=c&&c<='z'){
c='A'+c-'a';printf("%c",c);
}else{printf("%c",c);}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\' in program
    6 | if(c==\n){
      |       ^
main.c:6:8: error: 'n' undeclared (first use in this function)
    6 | if(c==\n){
      |        ^
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:20: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
    9 |                 if(islower(ch)){
      |                    ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'islower'
    2 | #include<string.h>
  +++ |+#include <ctype.h>
    3 | 
main.c:10:37: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   10 |                         printf("%c",toupper(ch));
      |                                     ^~~~~~~
main.c:10:37: note: include '<ctype.h>' or provide a declaration of 'toupper'
main.c:11:25: error: expected '(' before '{' token
   11 |                 }else if{(isupper(ch)){
      |                         ^
      |                         (
main.c:11:27: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   11 |                 }else if{(isupper(ch)){
      |                           ^~~~~~~
main.c:11:27: note: include '<ctype.h>' or provide a declaration of 'isupper'
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include<stdio.h>
#include<cctype.h>

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

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

#include<stdio.h>
#include<cctype.h>

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

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

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

Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:11:4: error: expected expression before ')' token
   11 | if(islower()==TRUE)toupper(ch);else tolower(ch);
      |    ^~~~~~~
main.c:11:15: error: 'TRUE' undeclared (first use in this function)
   11 | if(islower()==TRUE)toupper(ch);else tolower(ch);
      |               ^~~~
main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main(){
char ch;
char result;
while(1){
scanf("%c",&ch);
if(ch=="\0")break;
if(ch>=a && ch<=z) result=toupper(ch);
else if(ch>=A && ch<=Z) result=tolower(ch);
else result = ch;
printf("%c",ch);
}
break;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: warning: comparison between pointer and integer
    8 | if(ch=="\0")break;
      |      ^~
main.c:9:8: error: 'a' undeclared (first use in this function)
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'z' undeclared (first use in this function)
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |                 ^
main.c:9:27: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |                           ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
    2 | #include<string.h>
  +++ |+#include <ctype.h>
    3 | int main(){
main.c:10:13: error: 'A' undeclared (first use in this function)
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |             ^
main.c:10:22: error: 'Z' undeclared (first use in this function)
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |                      ^
main.c:10:32: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |                                ^~~~~~~
main.c:10:32: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:14:1: error: break statement not within loop or switch
   14 | break;
      | ^~~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
char ch;
char result;
while(1){
scanf("%c",&ch);
if(ch=="\0")break;
if(ch>=a && ch<=z) result=toupper(ch);
else if(ch>=A && ch<=Z) result=tolower(ch);
else result = ch;
printf("%c",ch);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: warning: comparison between pointer and integer
    8 | if(ch=="\0")break;
      |      ^~
main.c:9:8: error: 'a' undeclared (first use in this function)
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'z' undeclared (first use in this function)
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |                 ^
main.c:9:27: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
    9 | if(ch>=a && ch<=z) result=toupper(ch);
      |                           ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
    2 | #include<string.h>
  +++ |+#include <ctype.h>
    3 | int main(){
main.c:10:13: error: 'A' undeclared (first use in this function)
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |             ^
main.c:10:22: error: 'Z' undeclared (first use in this function)
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |                      ^
main.c:10:32: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 | else if(ch>=A && ch<=Z) result=tolower(ch);
      |                                ^~~~~~~
main.c:10:32: note: include '<ctype.h>' or provide a declaration of 'tolower'
Language: C

#include <stdio.h>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},a[5]={",?! "},str[2700];
	scanf("%s",str);
	for(i=0;str[i]!='.',i++){
		for(j=0;j<4;j++){
			if(a[5]==str[i]){
				i++; continue;
			}
		}
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];	
				k++;	
			}
			else if(ABC[j]==str[i]{
				str[i]=abc[j];	
				k++;	
			}
		}
		k==0;
	}
	printf("%s\n",str);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before ')' token
    7 |         for(i=0;str[i]!='.',i++){
      |                                ^
      |                                ;
main.c:18:47: error: expected ')' before '{' token
   18 |                         else if(ABC[j]==str[i]{
      |                                ~              ^
      |                                               )
main.c:22:17: error: expected expression before '}' token
   22 |                 }
      |                 ^
Language: C

#include <stdio.h>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},a[4]={",?!"},str[2700];
	scanf("%s",str);
	for(i=0;str[i]!='.',i++){
		for(j=0;j<4;j++){
			if(a[j]==str[i]){
				i++; continue;
			}
		}
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];	
				k++;	
			}
			else if(ABC[j]==str[i]{
				str[i]=abc[j];	
				k++;	
			}
		}
		k==0;
	}
	printf("%s\n",str);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before ')' token
    7 |         for(i=0;str[i]!='.',i++){
      |                                ^
      |                                ;
main.c:18:47: error: expected ')' before '{' token
   18 |                         else if(ABC[j]==str[i]{
      |                                ~              ^
      |                                               )
main.c:22:17: error: expected expression before '}' token
   22 |                 }
      |                 ^
Language: C

#include <stdio.h>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},a[4]={",?!"},str[2700];
	scanf("%s",str);
	for(i=0;str[i]!='.',i++){
		for(j=0;j<4;j++){
			if(a[j]==str[i]){
				i++; continue;
			}
		}
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];	
				k++;	
			}
			else if(ABC[j]==str[i]){
				str[i]=abc[j];	
				k++;	
			}
		}
		k==0;
	}
	printf("%s\n",str);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before ')' token
    7 |         for(i=0;str[i]!='.',i++){
      |                                ^
      |                                ;
Language: C

#include <stdio.h>
#include <string>
int main (void)
{
	int i,j,count;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},str[1200],c;
	for(i=0;;i++){
		scanf("%c",&str[i]);
		for(j=0;j<26;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];i++;continue;
			}
			else if(ABC[j]==str[i]){
				str[i]=abc[j];i++;continue;
			}
		}
		if(str[i]=='\n') break;
	}
	for(j=0;j<=i;j++){
		printf("%s",str);
	}
	return 0;
}

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

#include <stdio.h>
#include <string>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},str[1200];
	for(i=0;;i++){
		scanf("%c",&str[i]);
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];k++
			}
			else if(ABC[j]==str[i]){
				str[i]=abc[j];k++;
			}
		}
		k=0;
		if(str[i]=='\n') break;
	}
	for(j=0;j<=i;j++){
		printf("%s",str);
	}
	return 0;
}

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

#include <stdio.h>
#include <string>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},str[1200];
	for(i=0;;i++){
		scanf("%c",&str[i]);
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];k++;
			}
			else if(ABC[j]==str[i]){
				str[i]=abc[j];k++;
			}
		}
		k=0;
		if(str[i]=='\n') break;
	}
	for(j=0;j<=i;j++){
		printf("%s",str);
	}
	return 0;
}

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

#include <stdio.h>
#include <string>
int main (void)
{
	int i,j,k=0;
	char abc[27]={"abcdefghijklmnopqrstuvwxyz"},ABC[27]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},str[1200];
	scanf("%s",str);
	for(i=0;;i++){
		for(j=0;j<26 && k==0;j++){
			if(abc[j]==str[i]){
				str[i]=ABC[j];k++;
			}
			else if(ABC[j]==str[i]){
				str[i]=abc[j];k++;
			}
		}
		k=0;
		if(str[i]=='\n') break;
	}
	for(j=0;j<=i;j++){
		printf("%s",str);
	}
	return 0;
}

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

#include <cstdio>

int main(){
    char str[1500];

    for (int i = 0; i < 1500; i++){
        str[i] = '\0';
    }

    fgets(str, sizeof(str), stdin);

    for (int i = 0; str[i] != '\0'; i++){
        if (str[i] >= 'A' && str[i] <= 'Z'){
            str[i] += 'a' - 'A';
        }
        else if (str[i] >= 'a' && str[i] <= 'z'){
            str[i] -= 'a' - 'A';
        }
    }
    printf("%s", str);

    return 0;
}

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

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len;
	char str[1200];
	fgets(str,sizeof str,stdin);
	sscanf(str,"%d %d",&a,&b);
	//scanf("%s",str);
	len=strlen(str);	//????????°??°???
	//printf("len=%d\n",len);
	for(i=0;i<len;i++){
		if( isupper(str[i]) ){	//??§???????????¨???
			str[i]=tolower(str[i]);//??§??????????°??????????
		}
		else{
			str[i]=toupper(str[i]);//?°????????????§?????????
		}
	}
	
	printf("%s\n",str);
	
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:29: error: 'a' undeclared (first use in this function)
    7 |         sscanf(str,"%d %d",&a,&b);
      |                             ^
main.c:7:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:32: error: 'b' undeclared (first use in this function)
    7 |         sscanf(str,"%d %d",&a,&b);
      |                                ^
main.c:9:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    9 |         len=strlen(str);        //????????°??°???
      |             ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:9:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    9 |         len=strlen(str);        //????????°??°???
      |             ^~~~~~
main.c:9:13: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:12:21: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   12 |                 if( isupper(str[i]) ){  //??§???????????¨???
      |                     ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    2 | #include <stdlib.h>
  +++ |+#include <ctype.h>
    3 | int main(void){
main.c:13:32: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   13 |                         str[i]=tolower(str[i]);//??§??????????°??????????
      |                                ^~~~~~~
main.c:13:32: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:16:32: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   16 |                         str[i]=toupper(str[i]);//?°????????????§?????????
      |                                ^~~~~~~
main.c:16:32: note: include '<ctype.h>' or provide a declaration of 'toupper'
Language: C

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

int main(void){
  int i;
  char str[1210];

  scanf("%s",str);

  while(str[i]){
    if(islower(str[i]))  s[i]=toupper(str[i]);
    else if(isupper(str[i]))  s[i]=tolower(str[i]);
    i++;
  }

  printf("%s\n",str);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:26: error: 's' undeclared (first use in this function)
   11 |     if(islower(str[i]))  s[i]=toupper(str[i]);
      |                          ^
main.c:11:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void)
{
	char st[1200];
	int c = 0,i;
	
	while(1){
		scanf("%c",&st[c]);
		if(st[c] == '\n')break;
		if((int)st[c] >= 97&&(int)st[c] <=122)(int)st[c] -= 32;
		else
		if((int)st[c] >= 65&&(int)st[c] <=90)(int)st[c] += 32;
		c++;
	}
	
	for(i = 0;i < c;i++){
		printf("%c",st[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |                 scanf("%c",&st[c]);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |                 scanf("%c",&st[c]);
      |                 ^~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:66: error: lvalue required as left operand of assignment
    9 |                 if((int)st[c] >= 97&&(int)st[c] <=122)(int)st[c] -= 32;
      |                                                                  ^~
main.c:11:65: error: lvalue required as left operand of assignment
   11 |                 if((int)st[c] >= 65&&(int)st[c] <=90)(int)st[c] += 32;
      |                                                                 ^~
main.c:16:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |                 printf("%c",st[i]);
      |                 ^~~~~~
main.c:16:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |         printf("\n");
      |         ^~~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void)
{
	char st[1200];
	int c = 0,i;
	
	while(1){
		scanf("%c",&st[c]);
		if(st[c] == '\n')break;
		if((int)st[c] >= 97&&(int)st[c] <= 122)(int)st[c] -= 32;
		else
		if((int)st[c] >= 65&&(int)st[c] <= 90)(int)st[c] += 32;
		c++;
	}
	
	for(i = 0;i < c;i++){
		printf("%c",st[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |                 scanf("%c",&st[c]);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |                 scanf("%c",&st[c]);
      |                 ^~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:67: error: lvalue required as left operand of assignment
    9 |                 if((int)st[c] >= 97&&(int)st[c] <= 122)(int)st[c] -= 32;
      |                                                                   ^~
main.c:11:66: error: lvalue required as left operand of assignment
   11 |                 if((int)st[c] >= 65&&(int)st[c] <= 90)(int)st[c] += 32;
      |                                                                  ^~
main.c:16:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |                 printf("%c",st[i]);
      |                 ^~~~~~
main.c:16:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |         printf("\n");
      |         ^~~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void)
{
    char st[1200];
    int c = 0,i;
    
    while(1){
        scanf("%c",&st[c]);
        if(st[c] == '\n')break;
        if((int)st[c] >= 97&&(int)st[c] <= 122)(int)st[c] = (int)st[c] - 32;
        else
        if((int)st[c] >= 65&&(int)st[c] <= 90)(int)st[c] = (int)st[c] + 32;
        c++;
    }
    
    for(i = 0;i < c;i++){
        printf("%c",st[i]);
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%c",&st[c]);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%c",&st[c]);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:59: error: lvalue required as left operand of assignment
    9 |         if((int)st[c] >= 97&&(int)st[c] <= 122)(int)st[c] = (int)st[c] - 32;
      |                                                           ^
main.c:11:58: error: lvalue required as left operand of assignment
   11 |         if((int)st[c] >= 65&&(int)st[c] <= 90)(int)st[c] = (int)st[c] + 32;
      |                                                          ^
main.c:16:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |         printf("%c",st[i]);
      |         ^~~~~~
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |     printf("\n");
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main(void) {
	char ch;
	char str[1200] = {};
	int i = 0;
	while(1){
		scanf("%c",&ch);
		
		if(ch=='\n'){
			break;
		}
		if(islower((int)ch) != 0){
			ch = toupper(ch);
		}else if(isupper((int)ch) != 0){
			ch = tolower(ch);
		}else{
			;
		}
		str[i] = ch;
		i++;
	}
	
	printf("%s",str);
	
	return 0;
}

	
	printf("%s",str);
	
	return 0;
}

Compiler output:
main.c:31:16: error: expected declaration specifiers or '...' before string constant
   31 |         printf("%s",str);
      |                ^~~~
main.c:31:21: error: unknown type name 'str'
   31 |         printf("%s",str);
      |                     ^~~
main.c:33:9: error: expected identifier or '(' before 'return'
   33 |         return 0;
      |         ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

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

int main(void)
{
	char s;

	while(1){
		scanf("%c", &s);
		if(s == ',')
			printf(",");
		else if(s==' ')
			printf(" ");
		else if(islower(s))
			printf("%c", toupper(s));
		else if(isupper(s))
			printf("%c", tolower(s));
		else if(s == '.')
			printf(".\n");
                        break;
		else
			printf("\n");
			break;

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:17: error: 'else' without a previous 'if'
   21 |                 else
      |                 ^~~~
Language: C

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


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

Compiler output:
main.c: In function 'main':
main.c:15:26: error: expected ';' before '{' token
   15 |         else(isupper(ch)){
      |                          ^
      |                          ;
Language: C

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

char ch;

int i=0;
main(){
	
	
    scanf("%c",&ch);
    
    if(islower(ch)){
    	printf("%c",toupper(ch));
    }else if(isupper(ch)){
    	printf("%c",tolower(ch));
    }
    if ( ch == '\n' ) break;
}
return 0;
}

Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main(){
      | ^~~~
main.c: In function 'main':
main.c:17:23: error: break statement not within loop or switch
   17 |     if ( ch == '\n' ) break;
      |                       ^~~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  char string[1200];
  int i=0;
  scanf("%[a-zA-Z,.0-9"' ]",string);
  while(string[i]!='\n'){
    if(string[i]>=65&&string[i]<=90)
      string[i++]+=32;
    else if(string[i]>=97&&string[i]<=122)
      string[i++]-=32;
    else
      i++;
  }
  printf("%s\n",string);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:24: warning: missing terminating ' character
    5 |   scanf("%[a-zA-Z,.0-9"' ]",string);
      |                        ^
main.c:5:24: error: missing terminating ' character
    5 |   scanf("%[a-zA-Z,.0-9"' ]",string);
      |                        ^~~~~~~~~~~~~
main.c:5:24: error: expected ')' before 'while'
    5 |   scanf("%[a-zA-Z,.0-9"' ]",string);
      |        ~               ^
      |                        )
    6 |   while(string[i]!='\n'){
      |   ~~~~~                 
main.c:15:12: error: expected ';' before '}' token
   15 |   return 0;
      |            ^
      |            ;
   16 | }
      | ~
Language: C

#include<stdio.h>
#include<cctype>

int main()
{
	char ch;

	while (1){
		scanf_s("%c", &ch);

		if (islower(ch) != 0) printf("%c", toupper(ch));
		else                  printf("%c", tolower(ch));

		if (ch == '\n') break;
	}

	return 0;
}

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

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

int main()
{
	char ch;

	while (1){
		scanf_s("%c", &ch);

		if (islower(ch) != 0) printf("%c", toupper(ch));
		else                  printf("%c", tolower(ch));

		if (ch == '\n') break;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |                 scanf_s("%c", &ch);
      |                 ^~~~~~~
      |                 scanf
Language: C

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

int main()
{
	char ch;

	while (1){
		scanf_s("%c", &ch, 1);

		if (islower(ch) != 0) printf("%c", toupper(ch));
		else                  printf("%c", tolower(ch));

		if (ch == '\n') break;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |                 scanf_s("%c", &ch, 1);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>
#include<ctype.h>
#define scanf scanf_s

int main()
{
	char ch;

	while (1){
		scanf("%c", &ch);

		if (islower(ch) != 0) printf("%c", toupper(ch));
		else                  printf("%c", tolower(ch));

		if (ch == '\n') break;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    3 | #define scanf scanf_s
      |               ^~~~~~~
main.c:10:17: note: in expansion of macro 'scanf'
   10 |                 scanf("%c", &ch);
      |                 ^~~~~
Language: C

#include<stdio.h>
#include<ctype.h>
#define scanf scanf_s

int main()
{
	char ch;

	while (1){
		scanf(" %c", &ch);

		if (islower(ch) != 0) printf("%c", toupper(ch));
		else                  printf("%c", tolower(ch));

		if (ch == '\n') break;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    3 | #define scanf scanf_s
      |               ^~~~~~~
main.c:10:17: note: in expansion of macro 'scanf'
   10 |                 scanf(" %c", &ch);
      |                 ^~~~~
Language: C

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

int main() {
	//char c;
	//scanf_s("%c", &c);//65-90,97-122
	//printf_s("%d", (int)c);

	char str[1200];
	scanf_s("%s", str, _countof(str));
	int i = 0;
	while (str[i] != '\0') {
		if ((int)str[i] >= 65 && (int)str[i] <= 90) {
			str[i] = str[i] + 32;
		}else if ((int)str[i] >= 97 && (int)str[i] <= 122) {
			str[i] = str[i] - 32;
		}
		i++;
	}
	for (int j = 0; j < strlen(str); j++) {
		printf_s("%c", str[j]);
		if (str[j] == '\0') break;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   11 |         scanf_s("%s", str, _countof(str));
      |         ^~~~~~~
      |         scanf
main.c:11:28: error: implicit declaration of function '_countof' [-Wimplicit-function-declaration]
   11 |         scanf_s("%s", str, _countof(str));
      |                            ^~~~~~~~
main.c:22:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   22 |                 printf_s("%c", str[j]);
      |                 ^~~~~~~~
      |                 printf
Language: C

#include<stdio.h>
#include<ctype.h>
int main()
{
     char ch;

     while(1){
          scanf("%c",&ch);

???????????????if(islower(ch))
          {
               ch=toupper(ch);
          } else {
               ch=tolower(ch);
          }

          printf("%c",ch);
          if (ch =='\n') break;
     }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected expression before '?' token
   10 | ???????????????if(islower(ch))
      | ^
Language: C

#include<stdio.h>

int main(void)
{

	int ch;

	while((ch=getchar()) != EOF){
		
		ch = gerchar();		

		if(islower(ch)){
			ch = tolower(ch);
		} else if( islower(ch) ){
			ch = toupper(ch);
		}

		putchar(ch);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:22: error: implicit declaration of function 'gerchar'; did you mean 'getchar'? [-Wimplicit-function-declaration]
   10 |                 ch = gerchar();
      |                      ^~~~~~~
      |                      getchar
main.c:12:20: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
   12 |                 if(islower(ch)){
      |                    ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'islower'
    1 | #include<stdio.h>
  +++ |+#include <ctype.h>
    2 | 
main.c:13:30: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   13 |                         ch = tolower(ch);
      |                              ^~~~~~~
main.c:13:30: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:15:30: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   15 |                         ch = toupper(ch);
      |                              ^~~~~~~
main.c:15:30: note: include '<ctype.h>' or provide a declaration of 'toupper'
Language: C

#include<stdio.h>

int main()
{

	int ch;

	for(;;){		
		ch = getchar();
	if( c == EOF ){
		break;
	}		

		if(islower(ch)){
			ch = tolower(ch);
		} else if( islower(ch) ){
			ch = toupper(ch);
		}

		putchar(ch);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: 'c' undeclared (first use in this function); did you mean 'ch'?
   10 |         if( c == EOF ){
      |             ^
      |             ch
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:20: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
   14 |                 if(islower(ch)){
      |                    ^~~~~~~
main.c:2:1: note: include '<ctype.h>' or provide a declaration of 'islower'
    1 | #include<stdio.h>
  +++ |+#include <ctype.h>
    2 | 
main.c:15:30: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   15 |                         ch = tolower(ch);
      |                              ^~~~~~~
main.c:15:30: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:17:30: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
   17 |                         ch = toupper(ch);
      |                              ^~~~~~~
main.c:17:30: note: include '<ctype.h>' or provide a declaration of 'toupper'
Language: C

#include <stdio.h>
#include <ctype.h>
int main(void)
{
	char ch,chp;
	while(1){
	    scanf("%c",&ch);
		if(ch==\n) break;
		else if(islower(ch)){
			chp=toupper(ch);
		}
		else{
			chp=tolower(ch);
		}
		printf("%c",chp);
	}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: stray '\' in program
    8 |                 if(ch==\n) break;
      |                        ^
main.c:8:25: error: 'n' undeclared (first use in this function)
    8 |                 if(ch==\n) break;
      |                         ^
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <type.h>

int main(void) {
	char str[1200];
	int i;
	
	gets(str);
	
	i = 0;
	while (str[i] != '\0') {
		if (islower(str[i])) putchar(toupper(str[i]);
		else if (isupper(str[i])) putchar(tolower(str[i]);
		else putchar(str[i]);
		i++;
	}
	puts("");
	
	return 0;
}

Compiler output:
main.c:2:10: fatal error: type.h: No such file or directory
    2 | #include <type.h>
      |          ^~~~~~~~
compilation terminated.
Language: C

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

int main(void){
   char s;
   while((s=fgets())!=EOF){
      if(isupper(s)) s=tolower(s);
      else if(islower(s)) s=toupper(s);
      printf("%s",s);
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: too few arguments to function 'fgets'
    6 |    while((s=fgets())!=EOF){
      |             ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

#include <stdio.h>
#include <ctype.h>
int main(void){
   char s;
   while((s=fgets())!=EOF){
      if(isupper(s)) s=tolower(s);
      else if(islower(s)) s=toupper(s);
      printf("%s",s);
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: too few arguments to function 'fgets'
    5 |    while((s=fgets())!=EOF){
      |             ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

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

int main(void)
{
  int s[1200];
  int i;
  
  scanf("%s", s);

  for(i = 0; i < 1200; i++){
    if(s[i] != toupper(s[i]))
      s[i] = toupper(s[i]);
    else
      s[i] = tolower(s[i]);

    printf("%s\n", s);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:1:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      |                    ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      |                                   ^~~~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:78: error: expected ')' before ';' token
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      |           ~                                                                  ^
      |                                                                              )
main.c:1:87: error: expected expression before '}' token
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s);exit(0);}
      |                                                                                       ^
Language: C

main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:1:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      |                    ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      |                                   ^~~~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:80: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      |                                                                                ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
main.c:1:80: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(char s;~scanf("%c",&s);putchar(64<s&&s<91?s+32:96<s&&s<123?s-32:s));exit(0);}
      |                                                                                ^~~~
main.c:1:80: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>
int main(void) {
	char mj[1200];
	int t, i = 0;

	while ((mj[i] = getchar()) != EOF) {
		i++
	}
	
	for (t = 0; t < i; t++) {
		if (mj[t] >= 'A' && mj[t] <= 'Z') {
			mj[t] += 0x20;
		}
		else if (mj[t] >= 'a' && mj[t] <= 'z') {
			mj[t] -= 0x20;
		}

		printf("%c", mj[t]);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before '}' token
    7 |                 i++
      |                    ^
      |                    ;
    8 |         }
      |         ~