Language: C++

#include <iostream>
using namespace std;
int main(void){
????int r,c,i,j,c,lc;
????int a[101][101]={};
????cin >>r>>c;
????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
????for(i=0;i<r;i++){
????????c=0;
????????for(j=0;j<c;j++){
????????????c+=a[i][j];
????????????cout<<a[i][j]<<" ";
????????}
????????cout<<c<<endl;
????}
????lc=0;
????for(j=0;j<c;j++){
????????c=0;
????????for(i=0;i<r;i++){
????????????c+=a[i][j];
????????}
????????lc+=c;
????????cout<<c<<" ";
????}
????cout<<lc<<endl;
????return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int r,c,i,j,c,lc;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int r,c,i,j,c,lc;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int r,c,i,j,c,lc;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int r,c,i,j,c,lc;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int r,c,i,j,c,lc;
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????int a[101][101]={};
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????int a[101][101]={};
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????int a[101][101]={};
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????int a[101][101]={};
      |    ^
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[101][101]={};
      |     ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????cin >>r>>c;
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????cin >>r>>c;
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????cin >>r>>c;
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????cin >>r>>c;
      |    ^
a.cc:6:11: error: 'r' was not declared in this scope
    6 | ????cin >>r>>c;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 | ????cin >>r>>c;
      |              ^
a.cc:6:15: error: expected ':' before ';' token
    6 | ????cin >>r>>c;
      |               ^
      |               :
a.cc:6:15: error: expected primary-expression before ';' token
a.cc:6:15: error: expected ':' before ';' token
    6 | ????cin >>r>>c;
      |               ^
      |               :
a.cc:6:15: error: expected primary-expression before ';' token
a.cc:6:15: error: expected ':' before ';' token
    6 | ????cin >>r>>c;
      |               ^
      |               :
a.cc:6:15: error: expected primary-expression before ';' token
a.cc:6:15: error: expected ':' before ';' token
    6 | ????cin >>r>>c;
      |               ^
      |               :
a.cc:6:15: error: expected primary-expression before ';' token
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |    ^
a.cc:7:5: error: expected primary-expression before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
a.cc:7:5: error: expected ':' before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
a.cc:7:5: error: expected ':' before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
a.cc:7:5: error: expected ':' before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
a.cc:7:5: error: expected ':' before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
      |     :
a.cc:7:5: error: expected primary-expression before 'for'
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |     ^~~
a.cc:7:13: error: 'i' was not declared in this scope
    7 | ????for(i=0;i<r;i++){for(j=0;j<c;j++)cin>>a[i][j];
      |             ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^