Language: C++

void Sort(int n,int **array){
	int i,j;
	for(i=0;i<N-1;i++){
		for(j=i+1;j<N;j++){
			if((*arr)[i]>(*arr)[j]){
				arr[i]+=arr[j];
				arr[j]=arr[i]-arr[j];
				arr[i]-=arr[j];
			 }
		 }
	}
 }

int main(){
	int i;
	int N;
	int arr[1000];
	int b;
	scanf(???%d");
	for(i=0;i<N;i++){
		scanf(???%d???,arr[i]);
	 }

	Sort(n,&arr);
	for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
	printf(???%d???,arr[i]);
	return 0;
 }

Compiler output:
a.cc:19:20: warning: missing terminating " character
   19 |         scanf(???%d");
      |                    ^
a.cc:19:20: error: missing terminating " character
   19 |         scanf(???%d");
      |                    ^~~
a.cc: In function 'void Sort(int, int**)':
a.cc:3:19: error: 'N' was not declared in this scope
    3 |         for(i=0;i<N-1;i++){
      |                   ^
a.cc:5:30: error: 'arr' was not declared in this scope; did you mean 'array'?
    5 |                         if((*arr)[i]>(*arr)[j]){
      |                              ^~~
      |                              array
a.cc: In function 'int main()':
a.cc:19:15: error: expected primary-expression before '?' token
   19 |         scanf(???%d");
      |               ^
a.cc:19:16: error: expected primary-expression before '?' token
   19 |         scanf(???%d");
      |                ^
a.cc:19:17: error: expected primary-expression before '?' token
   19 |         scanf(???%d");
      |                 ^
a.cc:19:18: error: expected primary-expression before '%' token
   19 |         scanf(???%d");
      |                  ^
a.cc:19:19: error: 'd' was not declared in this scope
   19 |         scanf(???%d");
      |                   ^
a.cc:19:20: error: expected ':' before 'for'
   19 |         scanf(???%d");
      |                    ^
      |                    :
   20 |         for(i=0;i<N;i++){
      |         ~~~         
a.cc:20:9: error: expected primary-expression before 'for'
   20 |         for(i=0;i<N;i++){
      |         ^~~
a.cc:19:20: error: expected ':' before 'for'
   19 |         scanf(???%d");
      |                    ^
      |                    :
   20 |         for(i=0;i<N;i++){
      |         ~~~         
a.cc:20:9: error: expected primary-expression before 'for'
   20 |         for(i=0;i<N;i++){
      |         ^~~
a.cc:19:20: error: expected ':' before 'for'
   19 |         scanf(???%d");
      |                    ^
      |                    :
   20 |         for(i=0;i<N;i++){
      |         ~~~         
a.cc:20:9: error: expected primary-expression before 'for'
   20 |         for(i=0;i<N;i++){
      |         ^~~
a.cc:20:24: error: expected ';' before ')' token
   20 |         for(i=0;i<N;i++){
      |                        ^
      |                        ;
a.cc:24:14: error: 'n' was not declared in this scope
   24 |         Sort(n,&arr);
      |              ^
a.cc:25:34: error: expected primary-expression before '?' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                  ^
a.cc:25:35: error: expected primary-expression before '?' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                   ^
a.cc:25:36: error: expected primary-expression before '?' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                    ^
a.cc:25:37: error: expected primary-expression before '%' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                     ^
a.cc:25:41: error: expected primary-expression before '?' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                         ^
a.cc:25:42: error: expected primary-expression before '?' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                          ^
a.cc:25:43: error: expected primary-expression before ',' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                           ^
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:50: error: expected ':' before ')' token
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                                                  ^
      |                                                  :
a.cc:25:50: error: expected primary-expression before ')' token
a.cc:25:27: error: 'printf' was not declared in this scope
   25 |         for(i=0;i<N-1;i++)printf(???%d ???,arr[i]);
      |                           ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void Sort(int n,int **array){
a.cc:26:16: error: expected primary-expression before '?' token
   26 |         printf(???%d???,arr[i]);
      |                ^
a.cc:26:17: error: expected primary-expression before '?' token
   26 |         printf(???%d???,arr[i]);
      |                 ^
a.cc:26:18: error: expected primary-expression before '?' token
   26 |         printf(???%d???,arr[i]);
      |                  ^
a.cc:26:19: error: expected primary-expression before '%' token
   26 |         printf(???%d???,arr[i]);
      |                   ^
a.cc:26:22: error: expected primary-expression before '?' token
   26 |         printf(???%d???,arr[i]);
      |                      ^
a.cc:26:23: error: expected primary-expression before '?' token
   26 |         printf(???%d???,arr[i]);
      |                       ^
a.cc:26:24: error: expected primary-expression before ',' token
   26 |         printf(???%d???,arr[i]);
      |                        ^
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:31: error: expected ':' before ')' token
   26 |         printf(???%d???,arr[i]);
      |                               ^
      |                               :
a.cc:26:31: error: expected primary-expression before ')' token
a.cc:26:9: error: 'printf' was not declared in this scope
   26 |         printf(???%d???,arr[i]);
      |         ^~~~~~
a.cc:26:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'