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_19394314_13893.cpp:9:1: error: expected initializer before 'memset'
 memset(isp,0,sizeof(isp));
 ^
0_0_19394314_13893.cpp:10:1: error: expected unqualified-id before 'for'
 for(int i = 2; i <= 3163; i++)
 ^
0_0_19394314_13893.cpp:10:16: error: 'i' does not name a type
 for(int i = 2; i <= 3163; i++)
                ^
0_0_19394314_13893.cpp:10:27: error: 'i' does not name a type
 for(int i = 2; i <= 3163; i++)
                           ^
0_0_19394314_13893.cpp:13:3: error: expected unqualified-id before 'for'
   for(int j = i*i;j<10000000;j+=i)
   ^
0_0_19394314_13893.cpp:13:19: error: 'j' does not name a type
   for(int j = i*i;j<10000000;j+=i)
                   ^
0_0_19394314_13893.cpp:13:30: error: 'j' does not name a type
   for(int j = i*i;j<10000000;j+=i)
                              ^
0_0_19394314_13893.cpp:17:2: error: expected initializer before 'long'
  long long temp = a;
  ^
0_0_19394314_13893.cpp:19:2: error: expected unqualified-id before 'while'
  while(temp!=0)
  ^
0_0_19394314_13893.cpp:23:2: error: expected unqualified-id before 'return'
  return a==b;
  ^
0_0_19394314_13893.cpp:27:1: error: expected initializer before 'setp'
 setp();
 ^
0_0_19394314_13893.cpp:29:2: error: expected unqualified-id before 'for'
  for(long long i = 5;i<=10000000;i++)
  ^
0_0_19394314_13893.cpp:29:22: error: 'i' does not name a type
  for(long long i = 5;i<=10000000;i++)
                      ^
0_0_19394314_13893.cpp:29:34: error: 'i' does not name a type
  for(long long i = 5;i<=10000000;i++)
                                  ^
0_0_19394314_13893.cpp:32:14: error: redefinition of 'long long int b'
  long long a,b;
              ^
0_0_19394314_13893.cpp:18:12: note: 'long long int b' previously defined here
  long long b = 0;
            ^
0_0_19394314_13893.cpp:33:2: error: expected unqualified-id before 'while'
  while(cin >> a >> b)
  ^
0_0_19394314_13893.cpp:39:3: error: expected unqualified-id before 'for'
   for(int i=0;i<index;i++)
   ^
0_0_19394314_13893.cpp:39:15: error: 'i' does not name a type
   for(int i=0;i<index;i++)
               ^
0_0_19394314_13893.cpp:39:23: error: 'i' does not name a type
   for(int i=0;i<index;i++)
                       ^
0_0_19394314_13893.cpp:42:4: error: expected unqualified-id before 'else'
    else if(p[i]<=b)
    ^
0_0_19394314_13893.cpp:44:4: error: expected unqualified-id before 'else'
    else
    ^
0_0_19394314_13893.cpp:47:3: error: 'cout' does not name a type
   cout << endl;
   ^
0_0_19394314_13893.cpp:49:2: error: expected unqualified-id before 'return'
  return 0;
  ^


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-25 11:35:35, Gzip enabled