Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
????????int a[3];
????????for(int i=0;i<3;i++){
????????????????cin >> a[i];
????????}
????????sort(a,a+3);
????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}		
			

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |    ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |      ^
a.cc:5:7: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |       ^
a.cc:5:8: error: expected primary-expression before '?' token
    5 | ????????int a[3];
      |        ^
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a[3];
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a[3];
      |         ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |    ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |     ^
a.cc:6:6: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |      ^
a.cc:6:7: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |       ^
a.cc:6:8: error: expected primary-expression before '?' token
    6 | ????????for(int i=0;i<3;i++){
      |        ^
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:21: error: 'i' was not declared in this scope
    6 | ????????for(int i=0;i<3;i++){
      |                     ^
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |   ^
a.cc:9:4: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |     ^
a.cc:9:6: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |      ^
a.cc:9:7: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |       ^
a.cc:9:8: error: expected primary-expression before '?' token
    9 | ????????sort(a,a+3);
      |        ^
a.cc:9:14: error: 'a' was not declared in this scope
    9 | ????????sort(a,a+3);
      |              ^
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:9:20: error: expected ':' before ';' token
    9 | ????????sort(a,a+3);
      |                    ^
      |                    :
a.cc:9:20: error: expected primary-expression before ';' token
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |  ^
a.cc:10:3: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |   ^
a.cc:10:4: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |    ^
a.cc:10:5: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |     ^
a.cc:10:6: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |      ^
a.cc:10:7: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |       ^
a.cc:10:8: error: expected primary-expression before '?' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |        ^
a.cc:10:59: error: expected ':' before ';' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |                                                           ^
      |                                                           :
a.cc:10:59: error: expected primary-expression before ';' token
a.cc:10:59: error: expected ':' before ';' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |                                                           ^
      |                                                           :
a.cc:10:59: error: expected primary-expression before ';' token
a.cc:10:59: error: expected ':' before ';' token
   10 | ????????cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |                                                           ^
      |                                                           :
a.cc:10:59: