0_0_32262809_20380.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32262809_20380.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32262809_20380.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32262809_20380.cpp: In function 'void prime_factor()':
0_0_32262809_20380.cpp:10:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32262809_20380.cpp:12:21: error: expected ';' before 'n'
for(int i=2;i*i n) break;
^
0_0_32262809_20380.cpp:12:21: error: 'n' was not declared in this scope
0_0_32262809_20380.cpp:13:9: error: 'maxn' was not declared in this scope
maxn = i;
^
0_0_32262809_20380.cpp:13:16: error: 'i' was not declared in this scope
maxn = i;
^
0_0_32262809_20380.cpp: At global scope:
0_0_32262809_20380.cpp:15:5: error: 'dp' does not name a type
dp[0] = 1;
^
0_0_32262809_20380.cpp:16:5: error: expected unqualified-id before 'for'
for(int i=0;i<=maxn;i++)
^
0_0_32262809_20380.cpp:16:17: error: 'i' does not name a type
for(int i=0;i<=maxn;i++)
^
0_0_32262809_20380.cpp:16:25: error: 'i' does not name a type
for(int i=0;i<=maxn;i++)
^
0_0_32262809_20380.cpp:17:28: error: 'j' does not name a type
for(int j=prime[i];j<=n;j++)
^
0_0_32262809_20380.cpp:17:33: error: 'j' does not name a type
for(int j=prime[i];j<=n;j++)
^
0_0_32262809_20380.cpp:19:11: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n",dp[n]);
^
0_0_32262809_20380.cpp:20:1: error: expected declaration before '}' token
}
^
|