Language: C++

int main(void)
{
	char s[101],t[101];
	int i,j,sk,tk;
	scanf("%s %s",s,t);
	for(i=0:i<101-1;i++){
		for(j=0:j<101:i++){
			if(s[i]>s[j])	{
				sk=s[i];
				s[i]=s[j];
				s[j]=sk;
			}
		}
	}
	for(i=0:i<101-1;i++){
		for(j=0:j<101:i++){
			if(t[i]>t[j])	{
				tk=t[i];
				t[i]=t[j];
				t[j]=tk;
			}
		}
	}
	if(s<t){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%s %s",s,t);
      |         ^~~~~
a.cc:6:16: error: expected ';' before ':' token
    6 |         for(i=0:i<101-1;i++){
      |                ^
      |                ;
a.cc:6:28: error: expected ';' before ')' token
    6 |         for(i=0:i<101-1;i++){
      |                            ^
      |                            ;
a.cc:7:24: error: expected ';' before ':' token
    7 |                 for(j=0:j<101:i++){
      |                        ^
      |                        ;
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
a.cc:13:18: error: expected ';' before '}' token
   13 |                 }
      |                  ^
      |                  ;
   14 |         }
      |         ~         
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
a.cc:13:18: error: expected ')' before '}' token
   13 |                 }
      |                  ^
      |                  )
   14 |         }
      |         ~         
a.cc:7:20: note: to match this '('
    7 |                 for(j=0:j<101:i++){
      |                    ^
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
a.cc:15:16: error: expected ';' before ':' token
   15 |         for(i=0:i<101-1;i++){
      |                ^
      |                ;
a.cc:15:28: error: expected ';' before ')' token
   15 |         for(i=0:i<101-1;i++){
      |                            ^
      |                            ;
a.cc:16:24: error: expected ';' before ':' token
   16 |                 for(j=0:j<101:i++){
      |                        ^
      |                        ;
a.cc:23:9: error: expected primary-expression before '}' token
   23 |         }
      |         ^
a.cc:22:18: error: expected ';' before '}' token
   22 |                 }
      |                  ^
      |                  ;
   23 |         }
      |         ~         
a.cc:23:9: error: expected primary-expression before '}' token
   23 |         }
      |         ^
a.cc:22:18: error: expected ')' before '}' token
   22 |                 }
      |                  ^
      |                  )
   23 |         }
      |         ~         
a.cc:16:20: note: to match this '('
   16 |                 for(j=0:j<101:i++){
      |                    ^
a.cc:23:9: error: expected primary-expression before '}' token
   23 |         }
      |         ^
a.cc:25:17: error: 'printf' was not declared in this scope
   25 |                 printf("Yes\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:28:17: error: 'printf' was not declared in this scope
   28 |                 printf("No\n");
      |                 ^~~~~~
a.cc:28:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'