Language: C++

#include<stdio.h>
int main(){
????char c;
????int w,h,k,i;
????scanf("%d %d",&h,&w);
????while(h--){
????????k=-1;
????????for(i=0;i<w;i++){
????????????scanf(" %c",&c);
????????????if(c=='c')k=0;
????????????else if(k+1)k++;
????????????if(i)printf(" ");
????????????printf("%d",k);
????????}
????????printf("\n");
????}
????return 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: expected primary-expression before '?' token
    3 | ????char c;
      | ^
a.cc:3:2: error: expected primary-expression before '?' token
    3 | ????char c;
      |  ^
a.cc:3:3: error: expected primary-expression before '?' token
    3 | ????char c;
      |   ^
a.cc:3:4: error: expected primary-expression before '?' token
    3 | ????char c;
      |    ^
a.cc:3:5: error: expected primary-expression before 'char'
    3 | ????char c;
      |     ^~~~
a.cc:3:5: error: expected ':' before 'char'
    3 | ????char c;
      |     ^~~~
      |     :
a.cc:3:5: error: expected primary-expression before 'char'
    3 | ????char c;
      |     ^~~~
a.cc:3:5: error: expected ':' before 'char'
    3 | ????char c;
      |     ^~~~
      |     :
a.cc:3:5: error: expected primary-expression before 'char'
    3 | ????char c;
      |     ^~~~
a.cc:3:5: error: expected ':' before 'char'
    3 | ????char c;
      |     ^~~~
      |     :
a.cc:3:5: error: expected primary-expression before 'char'
    3 | ????char c;
      |     ^~~~
a.cc:3:5: error: expected ':' before 'char'
    3 | ????char c;
      |     ^~~~
      |     :
a.cc:3:5: error: expected primary-expression before 'char'
    3 | ????char c;
      |     ^~~~
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int w,h,k,i;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int w,h,k,i;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int w,h,k,i;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int w,h,k,i;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int w,h,k,i;
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????scanf("%d %d",&h,&w);
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????scanf("%d %d",&h,&w);
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????scanf("%d %d",&h,&w);
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????scanf("%d %d",&h,&w);
      |    ^
a.cc:5:20: error: 'h' was not declared in this scope
    5 | ????scanf("%d %d",&h,&w);
      |                    ^
a.cc:5:23: error: 'w' was not declared in this scope
    5 | ????scanf("%d %d",&h,&w);
      |                       ^
a.cc:5:25: error: expected ':' before ';' token
    5 | ????scanf("%d %d",&h,&w);
      |                         ^
      |                         :
a.cc:5:25: error: expected primary-expression before ';' token
a.cc:5:25: error: expected ':' before ';' token
    5 | ????scanf("%d %d",&h,&w);
      |                         ^
      |                         :
a.cc:5:25: error: expected primary-expression before ';' token
a.cc:5:25: error: expected ':' before ';' token
    5 | ????scanf("%d %d",&h,&w);
      |                         ^
      |                         :
a.cc:5:25: error: expected primary-expression before ';' token
a.cc:5:25: error: expected ':' before ';' token
    5 | ????scanf("%d %d",&h,&w);
      |                         ^
      |                         :
a.cc:5:25: error: expected primary-expression before ';' token
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????while(h--){
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????while(h--){
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????while(h--){
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????while(h--){
      |    ^
a.cc:6:5: error: expected primary-expression before 'while'
    6 | ????while(h--){
      |     ^~~~~
a.cc:6:5: error: expected ':' before 'while'
    6 | ????while(h--){
      |     ^~~~~
      |     :
a.cc:6:5: error: expected primary-expression before 'while'
    6 | ????while(h--){
      |     ^~~~~
a.cc:6:5: error: expected ':' before 'while'
    6 | ????while(h--){
      |     ^~~~~
      |     :
a.cc:6:5: error: expected primary-expression before 'while'
    6 | ????while(h--){
      |     ^~~~~
a.cc:6:5: error: expected ':' before 'while'
    6 | ????while(h--){
      |     ^~~~~
      |     :
a.cc:6:5: error: expected primary-expression before 'while'
    6 | ????while(h--){
      |     ^~~~~
a.cc:6:5: error: expected ':' before 'while'
    6 | ????while(h--){
      |     ^~~~~
      |     :
a.cc:6:5: error: expected primary-expression before 'while'
    6 | ????while(h--){
      |     ^~~~~
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ????return
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ????return
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ????return
      |   ^
a.cc:17:4: error: expected primary-expression before '?' token
   17 | ????return
      |    ^
a.cc:17:5: error: expected primary-expression before 'return'
   17 | ????return
      |     ^~~~~~
a.cc:17:5: error: expected ':' before 'return'
   17 | ????return
      |     ^~~~~~
      |     :
a.cc:17:5: error: expected primary-expression before 'return'
   17 | ????return
      |     ^~~~~~
a.cc:17:5: error: expected ':' before 'return'
   17 | ????return
      |     ^~~~~~
      |     :
a.cc:17:5: error: expected primary-expression before 'return'
   17 | ????return
      |     ^~~~~~
a.cc:17:5: error: expected ':' before 'return'
   17 | ????return
      |     ^~~~~~
      |     :
a.cc:17:5: error: expected primary-expression before 'return'
   17 | ????return
      |     ^~~~~~
a.cc:17:5: error: expected ':' before 'return'
   17 | ????return
      |     ^~~~~~
      |     :
a.cc:17:5: error: expected primary-expression before 'return'
   17 | ????return
      |     ^~~~~~