Language: C++

#include<stdio.h>
main(){
????int s=0;
????int H=0;
????int M=0;
????scanf("%d",&s);
????while(s>3599){
????????s=s-3600;
????????H++;
????}
????while(s>59){
????????s=s-60;
????????M++;
????}
????printf("%d:%d:%d\n",H,M,s);
????return 0;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:1: error: expected primary-expression before '?' token
    3 | ????int s=0;
      | ^
a.cc:3:2: error: expected primary-expression before '?' token
    3 | ????int s=0;
      |  ^
a.cc:3:3: error: expected primary-expression before '?' token
    3 | ????int s=0;
      |   ^
a.cc:3:4: error: expected primary-expression before '?' token
    3 | ????int s=0;
      |    ^
a.cc:3:5: error: expected primary-expression before 'int'
    3 | ????int s=0;
      |     ^~~
a.cc:3:5: error: expected ':' before 'int'
    3 | ????int s=0;
      |     ^~~
      |     :
a.cc:3:5: error: expected primary-expression before 'int'
    3 | ????int s=0;
      |     ^~~
a.cc:3:5: error: expected ':' before 'int'
    3 | ????int s=0;
      |     ^~~
      |     :
a.cc:3:5: error: expected primary-expression before 'int'
    3 | ????int s=0;
      |     ^~~
a.cc:3:5: error: expected ':' before 'int'
    3 | ????int s=0;
      |     ^~~
      |     :
a.cc:3:5: error: expected primary-expression before 'int'
    3 | ????int s=0;
      |     ^~~
a.cc:3:5: error: expected ':' before 'int'
    3 | ????int s=0;
      |     ^~~
      |     :
a.cc:3:5: error: expected primary-expression before 'int'
    3 | ????int s=0;
      |     ^~~
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int H=0;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int H=0;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int H=0;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int H=0;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int H=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int H=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int H=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int H=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int H=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int H=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int H=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int H=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int H=0;
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????int M=0;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????int M=0;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????int M=0;
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????int M=0;
      |    ^
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int M=0;
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int M=0;
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int M=0;
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int M=0;
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int M=0;
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int M=0;
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int M=0;
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int M=0;
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int M=0;
      |     ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????scanf("%d",&s);
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????scanf("%d",&s);
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????scanf("%d",&s);
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????scanf("%d",&s);
      |    ^
a.cc:6:17: error: 's' was not declared in this scope
    6 | ????scanf("%d",&s);
      |                 ^
a.cc:6:19: error: expected ':' before ';' token
    6 | ????scanf("%d",&s);
      |                   ^
      |                   :
a.cc:6:19: error: expected primary-expression before ';' token
a.cc:6:19: error: expected ':' before ';' token
    6 | ????scanf("%d",&s);
      |                   ^
      |                   :
a.cc:6:19: error: expected primary-expression before ';' token
a.cc:6:19: error: expected ':' before ';' token
    6 | ????scanf("%d",&s);
      |                   ^
      |                   :
a.cc:6:19: error: expected primary-expression before ';' token
a.cc:6:19: error: expected ':' before ';' token
    6 | ????scanf("%d",&s);
      |                   ^
      |                   :
a.cc:6:19: error: expected primary-expression before ';' token
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????while(s>3599){
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????while(s>3599){
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????while(s>3599){
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????while(s>3599){
      |    ^
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(s>3599){
      |     ^~~~~
a.cc:11:1: error: expected primary-expression before '?' token
   11 | ????while(s>59){
      | ^
a.cc:11:2: error: expected primary-expression before '?' token
   11 | ????while(s>59){
      |  ^
a.cc:11:3: error: expected primary-expression before '?' token
   11 | ????while(s>59){
      |   ^
a.cc:11:4: error: expected primary-expression before '?' token
   11 | ????while(s>59){
      |    ^
a.cc:11:5: error: expected primary-expression before 'while'
   11 | ????while(s>59){
      |     ^~~~~
a.cc:11:5: error: expected ':' before 'while'
   11 | ????while(s>59){
      |     ^~~~~
      |     :
a.cc:11:5: error: expected primary-expression before 'while'
   11 | ????while(s>59){
      |     ^~~~~
a.cc:11:5: error: expected ':' before 'while'
   11 | ????while(s>59){
      |     ^~~~~
      |     :
a.cc:11:5: error: expected primary-expression before 'while'
   11 | ????while(s>59){
      |     ^~~~~
a.cc:11:5: error: expected ':' before 'while'
   11 | ????while(s>59){
      |     ^~~~~
      |     :
a.cc:11:5: error: expected primary-expression before 'while'
   11 | ????while(s>59){
      |     ^~~~~
a.cc:11:5: error: expected ':' before 'while'
   11 | ????while(s>59){
      |     ^~~~~
      |     :
a.cc:11:5: error: expected primary-expression before 'while'
   11 | ????while(s>59){
      |     ^~~~~
a.cc:15:1: error: expected primary-expression before '?' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      | ^
a.cc:15:2: error: expected primary-expression before '?' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |  ^
a.cc:15:3: error: expected primary-expression before '?' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |   ^
a.cc:15:4: error: expected primary-expression before '?' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |    ^
a.cc:15:25: error: 'H' was not declared in this scope
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                         ^
a.cc:15:27: error: 'M' was not declared in this scope
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                           ^
a.cc:15:31: error: expected ':' before ';' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                               ^
      |                               :
a.cc:15:31: error: expected primary-expression before ';' token
a.cc:15:31: error: expected ':' before ';' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                               ^
      |                               :
a.cc:15:31: error: expected primary-expression before ';' token
a.cc:15:31: error: expected ':' before ';' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                               ^
      |                               :
a.cc:15:31: error: expected primary-expression before ';' token
a.cc:15:31: error: expected ':' before ';' token
   15 | ????printf("%d:%d:%d\n",H,M,s);
      |                               ^
      |                               :
a.cc:15:31: error: expected primary-expression before ';' token
a.cc:16:1: error: expected primary-expression before '?' token
   16 | ????return 0;
      | ^
a.cc:16:2: error: expected primary-expression before '?' token
   16 | ????return 0;
      |  ^
a.cc:16:3: error: expected primary-expression before '?' token
   16 | ????return 0;
      |   ^
a.cc:16:4: error: expected primary-expression before '?' token
   16 | ????return 0;
      |    ^
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |