foo.cpp: In function 'int main()':
foo.cpp:11:1: error: expected primary-expression before '?' token
??? scanf("%I64d%I64d",&n,&m);
^
foo.cpp:11:2: error: expected primary-expression before '?' token
??? scanf("%I64d%I64d",&n,&m);
^
foo.cpp:11:3: error: expected primary-expression before '?' token
??? scanf("%I64d%I64d",&n,&m);
^
foo.cpp:11:29: error: 'scanf' was not declared in this scope
??? scanf("%I64d%I64d",&n,&m);
^
foo.cpp:11:30: error: expected ':' before ';' token
??? scanf("%I64d%I64d",&n,&m);
^
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:11:30: error: expected ':' before ';' token
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:11:30: error: expected ':' before ';' token
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:12:1: error: expected primary-expression before '?' token
??? x=1;
^
foo.cpp:12:2: error: expected primary-expression before '?' token
??? x=1;
^
foo.cpp:12:3: error: expected primary-expression before '?' token
??? x=1;
^
foo.cpp:12:8: error: expected ':' before ';' token
??? x=1;
^
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:12:8: error: expected ':' before ';' token
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:12:8: error: expected ':' before ';' token
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:13:1: error: expected primary-expression before '?' token
??? for (long long i=1; i<=min(n,m); i++)
^
foo.cpp:13:2: error: expected primary-expression before '?' token
??? for (long long i=1; i<=min(n,m); i++)
^
foo.cpp:13:3: error: expected primary-expression before '?' token
??? for (long long i=1; i<=min(n,m); i++)
^
foo.cpp:13:5: error: expected primary-expression before 'for'
??? for (long long i=1; i<=min(n,m); i++)
^
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:25: error: 'i' was not declared in this scope
??? for (long long i=1; i<=min(n,m); i++)
^
foo.cpp:18:1: error: expected primary-expression before '?' token
??? printf("%I64d\n",ans);
^
foo.cpp:18:2: error: expected primary-expression before '?' token
??? printf("%I64d\n",ans);
^
foo.cpp:18:3: error: expected primary-expression before '?' token
??? printf("%I64d\n",ans);
^
foo.cpp:18:25: error: 'printf' was not declared in this scope
??? printf("%I64d\n",ans);
^
foo.cpp:18:26: error: expected ':' before ';' token
??? printf("%I64d\n",ans);
^
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:18:26: error: expected ':' before ';' token
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:18:26: error: expected ':' before ';' token
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:19:1: error: expected primary-expression before '?' token
??? return 0;
^
foo.cpp:19:2: error: expected primary-expression before '?' token
??? return 0;
^
foo.cpp:19:3: error: expected primary-expression before '?' token
??? return 0;
^
foo.cpp:19:5: error: expected primary-expression before 'return'
??? return 0;
^
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'