Language: C++

#include<stdio.h>
int main(void)
{
????????int m=0, n=0, i=0, j=0;
????????int a=0;
????????for (i = 0; i < 4; i++) {
????????????????scanf("%d", &a);
????????????????m = m + a;
????????}
????????n = m % 60;
????????m = m / 60;
????????printf("%d\n%d", m, n);
????????return 0;
}
??

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |    ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |      ^
a.cc:4:7: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |       ^
a.cc:4:8: error: expected primary-expression before '?' token
    4 | ????????int m=0, n=0, i=0, j=0;
      |        ^
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int m=0, n=0, i=0, j=0;
      |         ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |    ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |      ^
a.cc:5:7: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |       ^
a.cc:5:8: error: expected primary-expression before '?' token
    5 | ????????int a=0;
      |        ^
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int a=0;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int a=0;
      |         ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |    ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |     ^
a.cc:6:6: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |      ^
a.cc:6:7: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |       ^
a.cc:6:8: error: expected primary-expression before '?' token
    6 | ????????for (i = 0; i < 4; i++) {
      |        ^
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (i = 0; i < 4; i++) {
      |         ^~~
a.cc:6:21: error: 'i' was not declared in this scope
    6 | ????????for (i = 0; i < 4; i++) {
      |                     ^
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |  ^
a.cc:10:3: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |   ^
a.cc:10:4: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |    ^
a.cc:10:5: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |     ^
a.cc:10:6: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |      ^
a.cc:10:7: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |       ^
a.cc:10:8: error: expected primary-expression before '?' token
   10 | ????????n = m % 60;
      |        ^
a.cc:10:9: error: 'n' was not declared in this scope
   10 | ????????n = m % 60;
      |         ^
a.cc:10:13: error: 'm' was not declared in this scope
   10 | ????????n = m % 60;
      |             ^
a.cc:10:19: error: expected ':' before ';' token
   10 | ????????n = m % 60;
      |                   ^
      |                   :
a.cc:10:19: error: expected primary-expression before ';' token
a.cc:10:19: error: expected ':' before ';' token
   10 | ????????n = m % 60;
      |                   ^
      |                   :
a.cc:10:19: error: expected primary-expression before ';' token
a.cc:10:19: error: expected ':' before ';' token
   10 | ????????n = m % 60;
      |                   ^
      |