Language: C++



#include <iostream>
#include <stdio.h>
using namespace std;
int main(void){
????????int a, b;
????????cin >> a >> b;
??????????
????????int d = a / b;
????????int r = a % b;
????????double f = (double) a / b;
????????printf("%d %d %.10f\n",d,r,f);
????????//cout << d << " " << r << " " << f << endl;
??
}

Compiler output:
a.cc:14:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   14 | ????????//cout << d << " " << r << " " << f << endl;
a.cc: In function 'int main()':
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |    ^
a.cc:7:5: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |     ^
a.cc:7:6: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |      ^
a.cc:7:7: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |       ^
a.cc:7:8: error: expected primary-expression before '?' token
    7 | ????????int a, b;
      |        ^
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:7:9: error: expected ':' before 'int'
    7 | ????????int a, b;
      |         ^~~
      |         :
a.cc:7:9: error: expected primary-expression before 'int'
    7 | ????????int a, b;
      |         ^~~
a.cc:8:1: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |  ^
a.cc:8:3: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |   ^
a.cc:8:4: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |     ^
a.cc:8:6: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |      ^
a.cc:8:7: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |       ^
a.cc:8:8: error: expected primary-expression before '?' token
    8 | ????????cin >> a >> b;
      |        ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 | ????????cin >> a >> b;
      |                ^
a.cc:8:21: error: 'b' was not declared in this scope
    8 | ????????cin >> a >> b;
      |                     ^
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:8:22: error: expected ':' before ';' token
    8 | ????????cin >> a >> b;
      |                      ^
      |                      :
a.cc:8:22: error: expected primary-expression before ';' token
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ??????????
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ??????????
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ??????????
      |   ^
a.cc:9:4: error: expected primary-expression before '?' token
    9 | ??????????
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | ??????????
      |     ^
a.cc:9:6: error: expected primary-expression before '?' token
    9 | ??????????
      |      ^
a.cc:9:7: error: expected primary-expression before '?' token
    9 | ??????????
      |       ^
a.cc:9:8: error: expected primary-expression before '?' token
    9 | ??????????
      |        ^
a.cc:9:9: error: expected primary-expression before '?' token
    9 | ??????????
      |         ^
a.cc:9:10: error: expected primary-expression before '?' token
    9 | ??????????
      |          ^
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |  ^
a.cc:10:3: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |   ^
a.cc:10:4: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |    ^
a.cc:10:5: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |     ^
a.cc:10:6: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |      ^
a.cc:10:7: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |       ^
a.cc:10:8: error: expected primary-expression before '?' token
   10 | ????????int d = a / b;
      |        ^
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expression before 'int'
   10 | ????????int d = a / b;
      |         ^~~
a.cc:10:9: error: expected ':' before 'int'
   10 | ????????int d = a / b;
      |         ^~~
      |         :
a.cc:10:9: error: expected primary-expres