0_0_13807108_13339.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807108_13339.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807108_13339.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807108_13339.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807108_13339.cpp:13:1: error: expected ']' before 'public'
public:
^
0_0_13807108_13339.cpp: In function 'int main()':
0_0_13807108_13339.cpp:25:2: error: 'cinnl' has not been declared
cinnl::k;
^
0_0_13807108_13339.cpp:27:2: error: expected ';' before '{' token
{
^
0_0_13807108_13339.cpp:27:2: error: expected primary-expression before '{' token
0_0_13807108_13339.cpp:27:2: error: expected ')' before '{' token
0_0_13807108_13339.cpp:28:16: error: 'scanf' was not declared in this scope
scanf("%d",&x);
^
0_0_13807108_13339.cpp:32:3: error: expected ';' before 'scanf'
scanf("%d",&score[i]);
^
0_0_13807108_13339.cpp:32:23: error: 'scanf' was not declared in this scope
scanf("%d",&score[i]);
^
0_0_13807108_13339.cpp:32:24: error: expected ')' before ';' token
scanf("%d",&score[i]);
^
0_0_13807108_13339.cpp:33:9: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
f[0][0][::k]=1;
^
0_0_13807108_13339.cpp:35:3: error: expected ';' before 'for'
for(j=0;j
^
0_0_13807108_13339.cpp:35:3: error: expected primary-expression before 'for'
0_0_13807108_13339.cpp:35:3: error: expected ')' before 'for'
0_0_13807108_13339.cpp:36:4: error: expected ';' before 'for'
for(k=-n;k
^
0_0_13807108_13339.cpp:36:4: error: expected primary-expression before 'for'
0_0_13807108_13339.cpp:36:4: error: expected ')' before 'for'
0_0_13807108_13339.cpp:37:4: error: expected ';' before '{' token
{
^
0_0_13807108_13339.cpp:37:4: error: expected primary-expression before '{' token
0_0_13807108_13339.cpp:37:4: error: expected ')' before '{' token
0_0_13807108_13339.cpp:38:16: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
f[i+1][j+1][k+score[i+1]]+=f[i][j][k]*possibility[i+1];
^
0_0_13807108_13339.cpp:38:39: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
f[i+1][j+1][k+score[i+1]]+=f[i][j][k]*possibility[i+1];
^
0_0_13807108_13339.cpp:39:14: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
f[i+1][j][k]+=f[i][j][k]*(1-possibility[i+1]);
^
0_0_13807108_13339.cpp:39:26: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
f[i+1][j][k]+=f[i][j][k]*(1-possibility[i+1]);
^
0_0_13807108_13339.cpp:42:3: error: expected ';' before 'for'
for(k=0;k
^
0_0_13807108_13339.cpp:42:3: error: expected primary-expression before 'for'
0_0_13807108_13339.cpp:42:3: error: expected ')' before 'for'
0_0_13807108_13339.cpp:43:4: error: expected ';' before 'ans'
ans+=f[n][j][k];
^
0_0_13807108_13339.cpp:43:16: error: no match for 'operator[]' (operand types are 'abcd' and 'int')
ans+=f[n][j][k];
^
0_0_13807108_13339.cpp:43:19: error: expected ')' before ';' token
ans+=f[n][j][k];
^
0_0_13807108_13339.cpp:44:22: error: 'printf' was not declared in this scope
printf("%.6lf\n",ans);
^
|