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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |   while(!strcmp(ch,'\n')=0){
      |                 ^~
      |                 |
      |                 char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:20: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |   while(!strcmp(ch,'\n')=0){
      |                    ^~~~
      |                    |
      |                    int
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:8:25: error: lvalue required as left operand of assignment
    8 |   while(!strcmp(ch,'\n')=0){
      |                         ^
Language: C

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

int main(){
  char ch;
  scanf("%c",&ch);
  while(!strcmp(ch,/n)){
    if(islower(ch)){
      printf("%c",toupper(ch));}
    else{
      printf("%c",tolower(ch));}
    scanf("%c",&ch);}
  printf("/n");
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected expression before '/' token
    8 |   while(!strcmp(ch,/n)){
      |                    ^
main.c:8:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |   while(!strcmp(ch,/n)){
      |                 ^~
      |                 |
      |                 char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:15:20: error: 'c' undeclared (first use in this function)
   15 |     if(!strcmp(&a,&c)) break;
      |                    ^
main.c:15:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:17:18: error: expected ';' before 'return'
   17 |   printf("%c",&a)
      |                  ^
      |                  ;
   18 |   return 0;}
      |   ~~~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected statement before ')' token
    9 |   while(a!=ch)){
      |               ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:14:10: warning: missing terminating ' character
   14 |   printf('\');
      |          ^
main.c:14:10: error: missing terminating ' character
   14 |   printf('\');
      |          ^~~~~
main.c:15:3: error: expected expression before 'return'
   15 |   return 0;}
      |   ^~~~~~
main.c:15:12: error: expected ';' before '}' token
   15 |   return 0;}
      |            ^
      |            ;
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:27: error: 'true' undeclared (first use in this function)
   12 |         if(isupper(ch) == true)
      |                           ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <ctype.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:12:27: note: each undeclared identifier is reported only once for each function it appears in
   12 |         if(isupper(ch) == true)
      |                           ^~~~
Language: C

#iclude<stdio.h>
#include<stdlib.h>
int main(void){
	int i = 0;
	char str[1200];
	scanf("%s",str);
	while(str[i] != \0'){
		if(islower(str[i]){
			str[i] = toupper(str[i]);
		}
		else if(isupper(str[i]){
			str[i] = tolower(str[i]);
		}
		printf("%c",str[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%s",str);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<stdlib.h>
  +++ |+#include <stdio.h>
    3 | int main(void){
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%s",str);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:25: error: stray '\' in program
    7 |         while(str[i] != \0'){
      |                         ^
main.c:7:27: warning: missing terminating ' character
    7 |         while(str[i] != \0'){
      |                           ^
main.c:7:27: error: missing terminating ' character
    7 |         while(str[i] != \0'){
      |                           ^~~
main.c:7:27: error: expected ')' before 'if'
    7 |         while(str[i] != \0'){
      |              ~            ^
      |                           )
    8 |                 if(islower(str[i]){
      |                 ~~         
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#iclude<stdio.h>
#include<stdlib.h>
int main(void){
	int i = 0;
	char str[1200];
	scanf("%s",str);
	while(str[i] != '\0'){
		if(islower(str[i])){
			str[i] = toupper(str[i]);
		}
		else if(isupper(str[i])){
			str[i] = tolower(str[i]);
		}
		printf("%c",str[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%s",str);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<stdlib.h>
  +++ |+#include <stdio.h>
    3 | int main(void){
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%s",str);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:20: error: implicit declaration of function 'islower' [-Wimplicit-function-declaration]
    8 |                 if(islower(str[i])){
      |                    ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'islower'
    2 | #include<stdlib.h>
  +++ |+#include <ctype.h>
    3 | int main(void){
main.c:9:34: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
    9 |                         str[i] = toupper(str[i]);
      |                                  ^~~~~~~
main.c:9:34: note: include '<ctype.h>' or provide a declaration of 'toupper'
main.c:11:25: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
   11 |                 else if(isupper(str[i])){
      |                         ^~~~~~~
main.c:11:25: note: include '<ctype.h>' or provide a declaration of 'isupper'
main.c:12:34: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   12 |                         str[i] = tolower(str[i]);
      |                                  ^~~~~~~
main.c:12:34: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:14:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |                 printf("%c",str[i]);
      |                 ^~~~~~
main.c:14:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:17: 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]
   16 |         printf("\n");
      |         ^~~~~~
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main()
{
 char str[1200];
 char c;
 int i=0;
 while(1)
 {
  scanf("%c",&c);
  if(c=="")
   break
  else
  {
   if(isupper(c))
    str[i]=tolower(c);
   else
   {
    if(islower(c))
     str[i]=toupper;
   }
  }
  i++;
 }
}

Compiler output:
main.c: In function 'main':
main.c:12:7: warning: comparison between pointer and integer
   12 |   if(c=="")
      |       ^~
main.c:13:9: error: expected ';' before 'else'
   13 |    break
      |         ^
      |         ;
   14 |   else
      |   ~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:20:9: error: expected ';' before 'printf'
   20 |  for(i=0
      |         ^
      |         ;
   21 |  printf("%s\n", str);
      |  ~~~~~~  
main.c:22:2: error: expected expression before 'return'
   22 |  return 0;
      |  ^~~~~~
main.c:23:1: error: expected expression before '}' token
   23 | }
      | ^
main.c:23:1: error: expected expression before '}' token
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:21:13: error: 'ch' undeclared (first use in this function); did you mean 'c'?
   21 |      str[i]=ch;
      |             ^~
      |             c
main.c:21:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:18: error: 'ch' undeclared (first use in this function); did you mean 'c'?
   12 |   if(c== '\n' || ch =='\0')
      |                  ^~
      |                  c
main.c:12:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:10: error: empty character constant
   12 |   if(c== '' )
      |          ^~
Language: C

#include <stdio.h>

int main(void)
{
	char str[1200];
	char c;
	int i,j=0;

	while((c=getchar())!=EOF){
	string[j]=c;
	j++;
	}
	for(i=0;i<=j;i++){
	if(str[i] >='A'&&str[i]<='Z'){/*??§??????????????????*/
		str[i]+='a'-'A';
		}
	else if(str[i]>= 'a'&&str[i]<='z'){	/*?°???????????????????*/
		str[i]-='a'-'A';	
		}
	}

	for(i=0;i<=j;i++)
		printf("%c",str[i]);
		printf("\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'string' undeclared (first use in this function); did you mean 'stdin'?
   10 |         string[j]=c;
      |         ^~~~~~
      |         stdin
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:16:5: error: expected declaration or statement at end of input
   16 |     return 0;
      |     ^~~~~~
Language: C

#include<stdio.h>
#define MOJI 1200
 
int main()
{
  char str[MOJI];
  int i, count=0;
 
  while(1){
    scanf("%c", &str[count]);
 
    if('A' <= str[count] && str[count] <= 'Z'){
      str[count] += 'a' - 'A';
    }
    else if('a' <= str[count] && str[count] <= 'z'){
      str[count] -= 'a' - 'A';
    }
 
    if(str[count] == '\n')break;
    count++;
  }
 
  for(i=0; i < count ;i++)
    printf("%c",str[i]);
  printf("\n");
  return 0;
}

Compile Error Logs:
You are not authorized to see the message.

???????????????
Judge: 4/4	C	CPU: 00.00 sec	Memory: 524 KB	Length: 439 B	2015-07-02 17:38	2015-07-02 17:38
???????????±?????????????????????
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1:	: Accepted	00.00 sec	524 KB	34 B	34 B	test_case_1
Case #2:	: Accepted	00.00 sec	524 KB	2 B	2 B	test_case_2
Case #3:	: Accepted	00.00 sec	524 KB	27 B	27 B	test_case_3
Case #4:	: Accepted	00.00 sec	524 KB	1149 B	1149 B	test_case_4

< prev |	1	/	4	| next >	 		 : Accepted        00.00 sec        524 KB
 
Judge Input #1 ( in1.txt | 34 B)		Judge Output #1 ( out1.txt | 34 B)
fAIR, LATER, OCCASIONALLY CLOUDY.
Fair, later, occasionally cloudy.
Comments
 
 ??\????????§??????
 
Categories
 
 
Free Tags
 
 

Compiler output:
main.c:29:1: error: unknown type name 'Compile'
   29 | Compile Error Logs:
      | ^~~~~~~
main.c:29:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   29 | Compile Error Logs:
      |               ^~~~
main.c:34:12: error: stray '\302' in program
   34 | ???????????<U+00B1>?????????????????????
      |            ^~~~~~~~
main.c:35:6: error: stray '#' in program
   35 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:36:6: error: stray '#' in program
   36 | Case #1:        : Accepted      00.00 sec       524 KB  34 B    34 B    test_case_1
      |      ^
main.c:37:6: error: stray '#' in program
   37 | Case #2:        : Accepted      00.00 sec       524 KB  2 B     2 B     test_case_2
      |      ^
main.c:38:6: error: stray '#' in program
   38 | Case #3:        : Accepted      00.00 sec       524 KB  27 B    27 B    test_case_3
      |      ^
main.c:39:6: error: stray '#' in program
   39 | Case #4:        : Accepted      00.00 sec       524 KB  1149 B  1149 B  test_case_4
      |      ^
main.c:43:13: error: stray '#' in program
   43 | Judge Input #1 ( in1.txt | 34 B)                Judge Output #1 ( out1.txt | 34 B)
      |             ^
main.c:43:62: error: stray '#' in program
   43 | Judge Input #1 ( in1.txt | 34 B)                Judge Output #1 ( out1.txt | 34 B)
      |                                                              ^
main.c:48:4: error: stray '\' in program
   48 |  ??\????????§??????
      |    ^
main.c:48:13: error: stray '\302' in program
   48 |  ??\????????<U+00A7>??????
      |             ^~~~~~~~
Language: C

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

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

#include<stdio.h>
int main(){
	char x[1200] = { 0 };
	gets_s(x);
	for (int i = 0; i < 1200; i++){
		switch (x[i]){
		case 'a':x[i] = 'A';
				break;
		case 'b':x[i] = 'B';
			break;
		case 'c':x[i] = 'C';
			break;
		case 'd':x[i] = 'D';
			break;
		case 'e':x[i] = 'E';
			break;
		case 'f':x[i] = 'F';
			break;
		case 'g':x[i] = 'G';
			break;
		case 'h':x[i] = 'H';
			break;
		case 'i':x[i] = 'I';
			break;
		case 'j':x[i] = 'J';
			break;
		case 'k':x[i] = 'K';
			break;
		case 'l':x[i] = 'L';
			break;
		case 'm':x[i] = 'M';
			break;
		case 'n':x[i] = 'N';
			break;
		case 'o':x[i] = 'O';
			break;
		case 'p':x[i] = 'P';
			break;
		case 'q':x[i] = 'Q';
			break;
		case 'r':x[i] = 'R';
			break;
		case 's':x[i] = 'S';
			break;
		case 't':x[i] = 'T';
			break;
		case 'u':x[i] = 'U';
			break;
		case 'v':x[i] = 'V';
			break;
		case 'w':x[i] = 'W';
			break;
		case 'x':x[i] = 'X';
			break;
		case 'y':x[i] = 'Y';
			break;
		case 'z':x[i] = 'Z';
			break;
		case 'A':x[i] = 'a';
			break;
		case 'B':x[i] = 'b';
			break;
		case 'C':x[i] = 'c';
			break;
		case 'D':x[i] = 'd';
			break;
		case 'E':x[i] = 'e';
			break;
		case 'F':x[i] = 'f';
			break;
		case 'G':x[i] = 'g';
			break;
		case 'H':x[i] = 'h';
			break;
		case 'I':x[i] = 'i';
			break;
		case 'J':x[i] = 'j';
			break;
		case 'K':x[i] = 'k';
			break;
		case 'L':x[i] = 'l';
			break;
		case 'M':x[i] = 'm';
			break;
		case 'N':x[i] = 'n';
			break;
		case 'O':x[i] = 'o';
			break;
		case 'P':x[i] = 'p';
			break;
		case 'Q':x[i] = 'q';
			break;
		case 'R':x[i] = 'r';
			break;
		case 'S':x[i] = 's';
			break;
		case 'T':x[i] = 't';
			break;
		case 'U':x[i] = 'u';
			break;
		case 'V':x[i] = 'v';
			break;
		case 'W':x[i] = 'w';
			break;
		case 'X':x[i] = 'x';
			break;
		case 'Y':x[i] = 'y';
			break;
		case 'Z':x[i] = 'z';
			break;
		default:break;

		}
	}
	puts(x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    4 |         gets_s(x);
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(){

	char buf[1200];
	int i = 0;

	scanf_s("%[^\n]", buf, 1200);
	

	while(1){
		if(buf[i]=='\0') break;
		if(buf[i]>=65 && buf[i]<=90) {			// big -> small
			buf[i] += 32;
		} else if(buf[i]>=97 && buf[i]<=122) {	// small -> big
			buf[i] -= 32;
		}

		i++;
	}

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

	while (1);

	return 0;
}

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

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

int main(int argc, char *args[])
{

	char mojiretsu_in[1201];
	char mojiretsu_out[1201];

	gets(mojiretsu_in);

	for( int i=0; i<1201; i++ ) {
		if( islower(mojiretsu_in[i]) ) {
			mojiretsu_out[i] = toupper(mojiretsu_in[i]);
		}
		else if( isupper(mojiretsu_in[i]) ) {
			mojiretsu_out[i] = tolower(mojiretsu_in[i]);
		}
		else {
			mojiretsu_out[i] = mojiretsu_in[i];
		}

		if( mojiretsu_in[i] == 0 ) {
			break;
		}
	}

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


	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets(mojiretsu_in);
      |         ^~~~
      |         fgets
Language: C

int main(void){
  char a[LENGTH],b[LENGTH];
  char c;
  int i = 0;
  int j = 0;

  printf("?????????????????????????????\??????????????????:");

  while ((c = getchar()) != EOF){
    a[j] = c;
    j++;
  }

  while(a[i]) {
    if(a[i] >= 97 && a[i] <= 122){
      b[i] = a[i] - 32;
    }
    else if(a[i] >= 61 && a[i] <= 90){
      b[i] = a[i] + 32;
    }
     else{
      b[i] = a[i];
    }
    i++;
  }
  printf("\n");
  printf("????????????????????????%s\n", b);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:10: error: 'LENGTH' undeclared (first use in this function)
    2 |   char a[LENGTH],b[LENGTH];
      |          ^~~~~~
main.c:2:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("?????????????????????????????\??????????????????:");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |   printf("?????????????????????????????\??????????????????:");
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:15: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    9 |   while ((c = getchar()) != EOF){
      |               ^~~~~~~
main.c:9:15: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:9:29: error: 'EOF' undeclared (first use in this function)
    9 |   while ((c = getchar()) != EOF){
      |                             ^~~
main.c:9:29: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
Language: C

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

int change(char *a,char **b){
	int n=1200;
	int eret;
	*b=(char*)malloc(strlen(a)+1);
	if(fgets(a,n,stdin)){
		for(;*a;++a){
			if(*a>='a'&&*a<='z'){
				*a-='a'-'A';
			}
			else if(*a>='A'&&*a<='Z'){
				*a+='a'-'A';
			}
			*b=a;
			printf("%c",**b);
		}
		if(strlen(a)<n && a!=NULL && *b!=NULL){
			return 0;
		}
		else{
			eret=1;
			return (-1);
		}
	}
}

int main(){
	int n=1200;
	int eret;
	char *a=(char*)malloc(n+1);
	change(a,&a);
	if(eret==1){
		printf("over\n"); //???????????????		
????????????????????????return 1;
	}
	else{
		return 0;
	}
}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected expression before '?' token
   37 | ????????????????????????return 1;
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int a[1200]={0},i,j;
	char c,C;
	for(i=0;;i++){
		scanf("%c",&c);
		if(c==32||c==44||c==46){
			a[i]=c;
		}else if(c>=65&&c<=90){
			a[i]=c+32;
		}else if(c>=97&&c<=122){
			a[i]=c-32;
		}
		if(c==46){
			break;
		}
	}
	for(j=0;j<=i;j++){
		printf("%c",a[j]);
	}
????????????printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected expression before '?' token
   22 | ????????????printf("\n");
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	char s[1200];
	int a = 0;
	
	
	gets(s);
	
	while(s[a] != '\0'){
		if(s[a] >= 'a' && s[a] <= 'z'){
			s[a] = s[a] - 0x20;
			printf("%c", s[a]);
		}
		else if(s[a] >= 'A' && s[a] <= 'Z'){
			s[a] = s[a] + 0x20;
			printf("%c", s[a]);
		}
		else {
			printf("%c", s[a]);
		}
		a++;
	}
	
	printf("\n");
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(s);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>

int main(void)
{
	char s[1200];
	int a;
	
	a = 0;
	
	gets(s);
	
	while(s[a] != '\0'){
		if(s[a] >= 'a' && s[a] <= 'z'){
			s[a] = s[a] - 0x20;
			printf("%c", s[a]);
		}
		else if(s[a] >= 'A' && s[a] <= 'Z'){
			s[a] = s[a] + 0x20;
			printf("%c", s[a]);
		}
		else {
			printf("%c", s[a]);
		}
		a++;
	}
	
	printf("\n");
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets(s);
      |         ^~~~
      |         fgets
Language: C

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

int main() {
	char str[1200] = "";
	gets(str);

	for (int i = 0; i < strlen(str); i++) {
		if (str[i] < 91) {
			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:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |         gets(str);
      |         ^~~~
      |         fgets
main.c:9:29: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    9 |         for (int i = 0; i < strlen(str); i++) {
      |                             ^~~~~~
main.c:4:1: note: include '<string.h>' or provide a declaration of 'strlen'
    3 | #include <ctype.h>
  +++ |+#include <string.h>
    4 | 
main.c:9:29: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    9 |         for (int i = 0; i < strlen(str); i++) {
      |                             ^~~~~~
main.c:9:29: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

#include<string.h>
#include<stdio.h>
int main(){
	char m[1200];
	int j=0;
	char b;
	gets(m);
	int len=strlen(m);
	//cout<<m<<endl;
	for(int i=0;i<len;i++){
		int a=(int)m[i];
		if(a>=97&&a<=122){
			a-=32;
		}
		else if(a>=65&&a<=90){
			a+=32;
		}
		printf("%c",(char)a);
	}
	printf("\n");
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |         gets(m);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
int main(){
	char m[1210];
	char a;
	int b,j=0;
	while(1){
		a=getchar();
		b=(int)a;
		if(b>=97&&b<=122)b-=32;
		else if(b>=65&&b<=90)b+=32;
		m[j]=(char)b;
		if(m[j]=='.')break;
		j++;
	}
	printf("%s\n"m);
}

Compiler output:
main.c: In function 'main':
main.c:15:22: error: expected ')' before 'm'
   15 |         printf("%s\n"m);
      |               ~      ^
      |                      )
Language: C

#include <stdio.h>

int main(void)
{
	char string[1200];
	int i=0;
	int qty=0;
	
	gets(string);
	
	while(string[i]!='\0')
	{
		qty++;
		i++;
	}
	
	for(i=0;i<=qty;i++)
	{
		if('A' <= string[i] && string[i] <= 'Z')
		{
			string[i] += ((int)('a') - ('A'));
		}
		else if('a' <= string[i] && string[i] <= 'z')
		{
			string[i] -= ((int)('a') - ('A'));
		}
	}
	
	printf("%s\n",string);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(string);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>

int main(void)
{
	int x;
	char a[1201];
	
	gets(a);
	for(x = 0; a[x] != 0x00; x++){
		if(('A' <= a[x]) && (a[x] <= 'Z')){
			a[x] |= 0x20;
		}else if(('a' <= a[x]) && (a[x] <= 'z')){
			a[x] &= 0xdf;
		}
	}
	printf("%s\n", a);
	
	return(0);
}



Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(a);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>

int main(void)
{
	int x;
	char a[1201];
	
	gets(a);
	for(x = 0; a[x] != 0x00; x++){
		if(('A' <= a[x]) && (a[x] <= 'Z')){
			a[x] |= 0x20;
		}else if(('a' <= a[x]) && (a[x] <= 'z')){
			a[x] &= 0xdf;
		}else{
		}
	}
	printf("%s\n", a);
	
	return(0);
}



Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(a);
      |         ^~~~
      |         fgets
Language: C

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

int main(){
    int i, len;
    char str[256];
    gets(str);
    len = strlen(str);

    for (i = 0; i < len ; i++) {
        if (str[i] >= 'a' && str[i] <= 'z') {
            str[i] = str[i] - 0x20;
        } else if (str[i] >= 'A' && str[i] <= 'Z') {
            str[i] = str[i] + 0x20;
        } else {
            // 変換不要
        }
    }
    printf("%s\n", str);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(str);
      |     ^~~~
      |     fgets
Language: C

#include "stdio.h"

int main(void){
  int x,y,z,i;
  char a,b;
  for(i = 0; i < 1200; i++){

    scanf("%c", &a);

    //printf("%d\n", a);
    if((a >= 65) && (a <= 90)){
      a = a + 32;
    }else if((a >= 97) && (a <= 122)){
      a = a - 32;
    }
    if(a == '.'){
      printf("%c\n", a);
      break;
    }else if(a == 'A') &&(i == 0){
      printf("%c\n", a);
      break;
    }
    printf("%c", a);

  }
}



Compiler output:
main.c: In function 'main':
main.c:19:26: error: expected identifier before '(' token
   19 |     }else if(a == 'A') &&(i == 0){
      |                          ^
Language: C

/*
与えられた文字列の小文字と大文字を入れ替えるプログラムを
作成してください。

Input
文字列が1行に与えられます。

Output
与えられた文字列の小文字と大文字を入れ替えた文字列を出力して下さい。
アルファベット以外の文字はそのまま出力して下さい。
*/

#include <cstdio>
#include <cctype>

int main(){
  char ch;

  while(1){
    scanf("%c", &ch);
    if (isalpha(ch)){
      if (islower(ch)) printf("%c", toupper(ch));
      else printf("%c", tolower(ch));
    } else printf("%c", ch);

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

  return 0;
}


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

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

int main(void)
{
	int   i, leng;
	char a[1200];


	gets( a);
	leng = strlen(a);

	

	for (i = 0; i < leng; i++) {
		if (a[i] >= 0x41 && a[i] <= 0x5A) {
			a[i] = a[i] + 0x20;
			
		}
		else if (a[i] >= 0x61 && a[i] <= 0x7A) {
			a[i] = a[i] - 0x20;
		}
	}


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

	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets( a);
      |         ^~~~
      |         fgets
Language: C

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

int main(void)
{
	int   i, leng;
	char a[1200];


	gets(a);
	leng = strlen(a);

	

	for (i = 0; i < leng; i++) {
		if (a[i] >= 0x41 && a[i] <= 0x5A) {
			a[i] = a[i] + 0x20;
			
		}
		else if (a[i] >= 0x61 && a[i] <= 0x7A) {
			a[i] = a[i] - 0x20;
		}
	}


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

	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets(a);
      |         ^~~~
      |         fgets
Language: C

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

int main(void)
{
	int   i, leng;
	char a[1200];


	gets(a, 1200);
	leng = strlen(a);

	

	for (i = 0; i < leng; i++) {
		if (a[i] >= 0x41 && a[i] <= 0x5A) {
			a[i] = a[i] + 0x20;
			
		}
		else if (a[i] >= 0x61 && a[i] <= 0x7A) {
			a[i] = a[i] - 0x20;
		}
	}


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

	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets(a, 1200);
      |         ^~~~
      |         fgets
Language: C

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

int main(void)
{
	int   i, leng;
	char a[1200];


	gets_s( a, 1200);
	leng = strlen(a);

	

	for (i = 0; i < leng; i++) {
		if (a[i] >= 0x41 && a[i] <= 0x5A) {
			a[i] = a[i] + 0x20;
			
		}
		else if (a[i] >= 0x61 && a[i] <= 0x7A) {
			a[i] = a[i] - 0x20;
		}
	}


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

	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   10 |         gets_s( a, 1200);
      |         ^~~~~~
Language: C

#include<stdio.h>
int main(){
	char str[1200];
	int i;
	
	for(i = 0;i < 1200;i++){
		str[i] = 0;
	}
	
	scanf("%s", &char);
	
	for(i = 0;str[i] = '\0';i++){
		if(str[i] >= 'A' && str[i] < 'Z'){
			str[i] += 32;
		}
		else if(str[i] >= 'a' && str[i] = 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] = '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected expression before 'char'
   10 |         scanf("%s", &char);
      |                      ^~~~
main.c:16:49: error: lvalue required as left operand of assignment
   16 |                 else if(str[i] >= 'a' && str[i] = 'z'){
      |                                                 ^
Language: C

#include<stdio.h>
int main(){
	char str[1200];
	int i;
	
	for(i = 0;i < 1200;i++){
		str[i] = 0;
	}
	
	scanf("%s", char);
	
	for(i = 0;str[i] = '\0';i++){
		if(str[i] >= 'A' && str[i] < 'Z'){
			str[i] += 32;
		}
		else if(str[i] >= 'a' && str[i] = 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] = '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected expression before 'char'
   10 |         scanf("%s", char);
      |                     ^~~~
main.c:16:49: error: lvalue required as left operand of assignment
   16 |                 else if(str[i] >= 'a' && str[i] = 'z'){
      |                                                 ^
Language: C

#include<stdio.h>
int main(){
	char str[1200];
	int i;
	
	for(i = 0;i < 1200;i++){
		str[i] = 0;
	}
	
	scanf("%s", str);
	
	for(i = 0;str[i] = '\0';i++){
		if(str[i] >= 'A' && str[i] < 'Z'){
			str[i] += 32;
		}
		else if(str[i] >= 'a' && str[i] = 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] = '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:49: error: lvalue required as left operand of assignment
   16 |                 else if(str[i] >= 'a' && str[i] = 'z'){
      |                                                 ^
Language: C

#include<stdio.h>
int main(){
	char text;
	int i, j;
	
	for(i = 0;i < 1200;i++){
		str[i] = 0;
	}
	for(i = 0;i < 1200;i++){
		scanf("%c", &text);
		str[i] = text;
		
		if(str[i] >= 'A' && str[i] <= 'Z'){
			str[i] += 32;
		}
		else if(str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= 32;
		}
		else;
	
		printf("%c", text);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'str' undeclared (first use in this function)
    7 |                 str[i] = 0;
      |                 ^~~
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	char text;
	int i, j;
	
	for(i = 0;i < 1200;i++){
		str[i] = 0;
	}
	for(i = 0;i < 1200;i++){
		scanf("%c", &text);
		str[i] = text;
		
		if(text >= 'A' && text <= 'Z'){
			text += 32;
		}
		else if(text >= 'a' && text <= 'z'){
			text -= 32;
		}
		else;
	
		printf("%c", text);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'str' undeclared (first use in this function)
    7 |                 str[i] = 0;
      |                 ^~~
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	char text;
	int i, j;
	
	for(i = 0;i < 1200;i++){
		scanf("%c", &text);
		str[i] = text;
		
		if(text >= 'A' && text <= 'Z'){
			text += 32;
		}
		else if(text >= 'a' && text <= 'z'){
			text -= 32;
		}
		else;
	
		printf("%c", text);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'str' undeclared (first use in this function)
    8 |                 str[i] = text;
      |                 ^~~
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	char str[1200];
	int i, j;
	int string_count;
	
	for(i = 0;i < 1200;i++){
		str[i] = '\0';
	}
	
	for(i = 0;i < 1200;i += string_count){
		scanf("%s", &str[i]);
		
		string_count = 0;
		for(j = 0;str[j] != '\0',j++){
			string_count++;
		}
		
		if(string_count == 0){
			break;
		}
		for(j = 0;j < string_count;j++){
			if(str[i + j] =='\0'){
				str[i + j] = ' ';
			}
			if(str[i + j] >= 'A' && str[i + j] <= 'Z'){
				str[i + j] += 32;
			}
			else if(str[i + j] >= 'a' && str[i + j] <= 'z'){
				str[i + j] -= 32;
			}
			else;
		}
		printf("%s", str[i]);
	}
	
	printf("\n");
	return 0;
}


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

#include<stdio.h>
int main(){
	unsigned char usW_D_char str[1200];
	int i, j;
	int string_count;
	
	for(i = 0;i < 1200;i++){
		str[i] = '\0';
	}
	
	for(i = 0;i < 1200;i++){
		scanf("%c", &str[i]);
		if(str[i] == '\0'){
			break;
		}
	}
	
	for(i = 0;i < 1200;i++){
		if(str[i] >= 'A' && str[i] <= 'Z'){
			str[i + j] += 32;
		}
		else if(str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] != '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'str'
    3 |         unsigned char usW_D_char str[1200];
      |                                  ^~~
main.c:3:34: error: 'str' undeclared (first use in this function)
main.c:3:34: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	signed char usW_D_char str[1200];
	int i, j;
	int string_count;
	
	for(i = 0;i < 1200;i++){
		str[i] = '\0';
	}
	
	for(i = 0;i < 1200;i++){
		scanf("%c", &str[i]);
		if(str[i] == '\0'){
			break;
		}
	}
	
	for(i = 0;i < 1200;i++){
		if(str[i] >= 'A' && str[i] <= 'Z'){
			str[i + j] += 32;
		}
		else if(str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] != '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'str'
    3 |         signed char usW_D_char str[1200];
      |                                ^~~
main.c:3:32: error: 'str' undeclared (first use in this function)
main.c:3:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	signed char usW_D_char str[1200];
	int i, j;
	int string_count;
	
	for(i = 0;i < 1200;i++){
		str[i] = '\0';
	}
	
	for(i = 0;i < 1200;i++){
		scanf("%c", &str[i]);
		if(str[i] == '\0'){
			break;
		}
	}#include<stdio.h>
int main(){
	unsigned char usW_D_str[1200];
	int i, j;
	int string_count;
	
	for(i = 0;i < 1200;i++){
		str[i] = '\0';
	}
	
	for(i = 0;i < 1200;i++){
		scanf("%c", &str[i]);
		if(str[i] == '\0'){
			break;
		}
	}
	
	for(i = 0;i < 1200;i++){
		if(str[i] >= 'A' && str[i] <= 'Z'){
			str[i + j] += 32;
		}
		else if(str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] != '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}
	
	for(i = 0;i < 1200;i++){
		if(str[i] >= 'A' && str[i] <= 'Z'){
			str[i + j] += 32;
		}
		else if(str[i] >= 'a' && str[i] <= 'z'){
			str[i] -= 32;
		}
		else;
	}
	
	for(i = 0;str[i] != '\0';i++){
		printf("%c", str[i]);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'str'
    3 |         signed char usW_D_char str[1200];
      |                                ^~~
main.c:3:32: error: 'str' undeclared (first use in this function)
main.c:3:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:10: error: stray '#' in program
   16 |         }#include<stdio.h>
      |          ^
main.c:16:11: error: 'include' undeclared (first use in this function)
   16 |         }#include<stdio.h>
      |           ^~~~~~~
main.c:16:19: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
   16 |         }#include<stdio.h>
      |                   ^~~~~
      |                   stdin
main.c:17:1: error: expected expression before 'int'
   17 | int main(){
      | ^~~
Language: C

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

int main(void){ 
   char str[1200],*p;
   p = str;
   gets(str);
   while(*p){
       if(islower(*p)){
           printf("%c",toupper(*p));
       }else if(isupper(*p)){
           printf("%c",tolower(*p));
       }else{
           printf("%c",*p);
       }
       p++;
   }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |    gets(str);
      |    ^~~~
      |    fgets
Language: C

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

int main(void){ 
   char str[1250],*p;
   p = str;
   gets(str);
   while(*p){
       if(islower(*p)){
           printf("%c",toupper(*p));
       }else if(isupper(*p)){
           printf("%c",tolower(*p));
       }else{
           printf("%c",*p);
       }
       p++;
   }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |    gets(str);
      |    ^~~~
      |    fgets
Language: C

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

int main(void){ 
   char str[1250],*p;
   p = str;
   gets(str);
   while(*p){
       if(islower(*p)){
           printf("%c",toupper(*p));
       }else if(isupper(*p)){
           printf("%c",tolower(*p));
       }else{
           printf("%c",*p);
       }
       p++;
   }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |    gets(str);
      |    ^~~~
      |    fgets
Language: C

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
 
int main()
{
    char buf[1250];
    char *p, c;
 
    gets(buf);
    p = buf;
    while (*p) {
        c = *p++;
        if (isupper(c)) c = tolower(c);
        else if (islower(c)) c = toupper(c);
        putchar(c);
    }
    putchar('\n');
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |     gets(buf);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>

int main(){
    int i;
    char moji[1200];

    gets(moji);

    for(i=0; i<1200; i++){
        if(moji[i]>='a'&&moji[i]<='z')moji[i]=moji[i]-32;
        else if(moji[i]>='A'&&moji[i]<='Z')moji[i]=moji[i]+32;

    }
    printf("%s\n",moji);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(moji);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>

int main(){
    int i;
    char moji[1200];
    char *u;

    gets(moji);
    u = moji;

    for(i=0; i<1200; i++){
        if(moji[i]>='a'&&moji[i]<='z')moji[i]=moji[i]-32;
        else if(moji[i]>='A'&&moji[i]<='Z')moji[i]=moji[i]+32;

    }
    printf("%s\n",moji);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |     gets(moji);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>

int main(){
    int i;
    char moji[1201];
    char *u;

    gets(moji);
    u = moji;

    for(i=0; i<1201; i++){
        if(moji[i]>='a'&&moji[i]<='z')moji[i]=moji[i]-32;
        else if(moji[i]>='A'&&moji[i]<='Z')moji[i]=moji[i]+32;

    }
    printf("%s\n",moji);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |     gets(moji);
      |     ^~~~
      |     fgets
Language: C

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

int main(){
	char s[1500];
	int i, j, k;
	
	gets(s);
	printf("%s\n", s);
	for(i=0; i<strlen(s); i++){
		if((s[i] >= 'a') && (s[i] <= 'z'))
			s[i] = s[i] + ('A' - 'a');
		else if((s[i] >= 'A') && (s[i] <= 'Z')){
			s[i] = s[i] - ('A' - 'a');
		}
	}
	printf("%s\n", s);

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(s);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
int main()
{
    int i,ln;
    char s[100],s1[100];
    gets(s);
    for(ln=0;s[ln]!='\0';ln++);
    for(i=0;i<ln;i++)
    {
     if(s[i]>='A' && s[i]<='Z')
     {
        s[i]=s[i]+32;
     }
        else if(s[i]>='a' && s[i]<='z')
        {
            s[i]=s[i]-32;
        }
    }
printf("%s\n",s);
    getchar();
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |     gets(s);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>
int main()
{
    int i,ln;
    char s[100],s1[100];
    gets(s);
 
    ln<1200;
    for(ln=0;s[ln]!='\0';ln++);
   for(i=0;i<ln;i++)
    {
     if(s[i]>='A' && s[i]<='Z')
     {
        s[i]=s[i]+32;
     }
        else if(s[i]>='a' && s[i]<='z')
        {
            s[i]=s[i]-32;
        }

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



    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |     gets(s);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>
int main()
{
    int i,ln;
    char s[100],s1[100];
    gets(s);

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



    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |     gets(s);
      |     ^~~~
      |     fgets