0_0_21046272_19519.cpp: In function 'int main()':
0_0_21046272_19519.cpp:7:5: error: 'LL' was not declared in this scope
LL m;
^
0_0_21046272_19519.cpp:12:30: error: 'm' was not declared in this scope
scanf("%s%I64d",str,&m);
^
0_0_21046272_19519.cpp:13:12: error: expected ';' before 'len'
LL len = strlen(str);
^
0_0_21046272_19519.cpp:14:12: error: expected ';' before 'tmp'
LL tmp = 1, tt = 0;
^
0_0_21046272_19519.cpp:15:28: error: 'len' was not declared in this scope
for(int i = 0; i < len; i++)
^
0_0_21046272_19519.cpp:17:13: error: 'tt' was not declared in this scope
tt = tt * 10 + str[i]-'0';
^
0_0_21046272_19519.cpp:21:12: error: 'tt' was not declared in this scope
if(tt == 0)
^
0_0_21046272_19519.cpp:26:12: error: 'tt' was not declared in this scope
if(tt == 1)
^
0_0_21046272_19519.cpp:31:12: error: expected ';' before 'ans'
LL ans = 2;
^
0_0_21046272_19519.cpp:32:39: error: 'tt' was not declared in this scope
for(int i = 2; i <= m && i <= tt; i++)
^
0_0_21046272_19519.cpp:34:13: error: 'tmp' was not declared in this scope
tmp *= i;
^
0_0_21046272_19519.cpp:36:13: error: 'ans' was not declared in this scope
ans += tmp;
^
0_0_21046272_19519.cpp:39:26: error: 'ans' was not declared in this scope
printf("%I64d\n",ans);
^
|