Job 15855

Owner
Patcas Csaba
Problem
Odd
Contest
MindCoding 2016 Round 3 (Div. 1)
Source
2.10KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'long long int f(int)':
prog.cpp:28:12: error: expected primary-expression before 'long'
 #define LL long long
            ^
prog.cpp:71:23: note: in expansion of macro 'LL'
       count[digit] += LL(x / (pow10 * 10)) * ((pow10 == 1) ? 1 : (pow10 / 2));
                       ^
prog.cpp:78:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (pow10 == 1 && ((x % 10) & 1) || pow10 > 1) 
                    ^

Questions?

Sponsors Gold