Language: C++

#include <stdio.h>
int main(int argc, const char * argv[]) {
????????int S,h,m,s;
????????h=0;
????????m=0;
????????s=0;
????????scanf("%d",&S);
????????h=S/3600;
????????m=(S%3600)/60;
????????s=S%60;
????????printf("%d:%d:%d\n",h,m,s);
????????return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:3:1: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      | ^
a.cc:3:2: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |  ^
a.cc:3:3: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |   ^
a.cc:3:4: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |    ^
a.cc:3:5: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |     ^
a.cc:3:6: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |      ^
a.cc:3:7: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |       ^
a.cc:3:8: error: expected primary-expression before '?' token
    3 | ????????int S,h,m,s;
      |        ^
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:3:9: error: expected ':' before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
      |         :
a.cc:3:9: error: expected primary-expression before 'int'
    3 | ????????int S,h,m,s;
      |         ^~~
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????????h=0;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |    ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |      ^
a.cc:4:7: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |       ^
a.cc:4:8: error: expected primary-expression before '?' token
    4 | ????????h=0;
      |        ^
a.cc:4:9: error: 'h' was not declared in this scope
    4 | ????????h=0;
      |         ^
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:4:12: error: expected ':' before ';' token
    4 | ????????h=0;
      |            ^
      |            :
a.cc:4:12: error: expected primary-expression before ';' token
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????????m=0;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |    ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |      ^
a.cc:5:7: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |       ^
a.cc:5:8: error: expected primary-expression before '?' token
    5 | ????????m=0;
      |        ^
a.cc:5:9: error: 'm' was not declared in this scope
    5 | ????????m=0;
      |         ^
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:5:12: error: expected ':' before ';' token
    5 | ????????m=0;
      |            ^
      |            :
a.cc:5:12: error: expected primary-expression before ';' token
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????????s=0;
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |    ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |     ^
a.cc:6:6: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |      ^
a.cc:6:7: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |       ^
a.cc:6:8: error: expected primary-expression before '?' token
    6 | ????????s=0;
      |        ^
a.cc:6:9: error: 's' was not declared in this scope
    6 | ????????s=0;
      |         ^
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:6:12: error: expected ':' before ';' token
    6 | ????????s=0;
      |            ^
      |            :
a.cc:6:12: error: expected primary-expression before ';' token
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |    ^
a.cc:7:5: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |     ^
a.cc:7:6: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |      ^
a.cc:7:7: error: expected primary-expression before '?' token
    7 | ????????scanf("%d",&S);
      |       ^