F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39088682_23613.cpp:4:14: error: unable to find numeric literal operator 'operator""using'
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:5:10: note: in expansion of macro 'MAXN'
    5 | int prim[MAXN],p[200];
      |          ^~~~
0_0_39088682_23613.cpp:4:14: note: use '-fext-numeric-literals' to enable more built-in suffixes
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:5:10: note: in expansion of macro 'MAXN'
    5 | int prim[MAXN],p[200];
      |          ^~~~
0_0_39088682_23613.cpp:4:24: error: expected ']' before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:5:10: note: in expansion of macro 'MAXN'
    5 | int prim[MAXN],p[200];
      |          ^~~~
0_0_39088682_23613.cpp:5:14: error: expected unqualified-id before ']' token
    5 | int prim[MAXN],p[200];
      |              ^
0_0_39088682_23613.cpp: In function 'void init()':
0_0_39088682_23613.cpp:10:12: error: 'prim' was not declared in this scope
   10 |     memset(prim,1,sizeof(prim));
      |            ^~~~
0_0_39088682_23613.cpp:4:14: error: unable to find numeric literal operator 'operator""using'
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:4:14: note: use '-fext-numeric-literals' to enable more built-in suffixes
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:4:24: error: expected ';' before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:4:24: error: expected primary-expression before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:4:24: error: expected ')' before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:14:16: note: to match this '('
   14 |             for(j=i;j*i<MAXN;++j)
      |                ^
0_0_39088682_23613.cpp:4:37: error: expected '=' before ';' token
    4 | #define MAXN 1010using namespace std;
      |                                     ^
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:4:37: error: expected identifier before ';' token
    4 | #define MAXN 1010using namespace std;
      |                                     ^
0_0_39088682_23613.cpp:14:25: note: in expansion of macro 'MAXN'
   14 |             for(j=i;j*i<MAXN;++j)
      |                         ^~~~
0_0_39088682_23613.cpp:14:33: error: expected ';' before ')' token
   14 |             for(j=i;j*i<MAXN;++j)
      |                                 ^
      |                                 ;
0_0_39088682_23613.cpp:4:14: error: unable to find numeric literal operator 'operator""using'
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:4:14: note: use '-fext-numeric-literals' to enable more built-in suffixes
    4 | #define MAXN 1010using namespace std;
      |              ^~~~~~~~~
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:4:24: error: expected ';' before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:4:24: error: expected primary-expression before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:4:24: error: expected ')' before 'namespace'
    4 | #define MAXN 1010using namespace std;
      |                        ^~~~~~~~~
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:17:8: note: to match this '('
   17 |     for(i=2;i<MAXN;++i)
      |        ^
0_0_39088682_23613.cpp:4:37: error: expected '=' before ';' token
    4 | #define MAXN 1010using namespace std;
      |                                     ^
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:4:37: error: expected identifier before ';' token
    4 | #define MAXN 1010using namespace std;
      |                                     ^
0_0_39088682_23613.cpp:17:15: note: in expansion of macro 'MAXN'
   17 |     for(i=2;i<MAXN;++i)
      |               ^~~~
0_0_39088682_23613.cpp:17:23: error: expected ';' before ')' token
   17 |     for(i=2;i<MAXN;++i)
      |                       ^
      |                       ;
0_0_39088682_23613.cpp: In function 'int main()':
0_0_39088682_23613.cpp:32:18: error: 'p' was not declared in this scope
   32 |          while(m%p[i]==0&&m!=1)
      |                  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 21:58:23, Gzip enabled