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_28245358_15614.cpp:5:2: error: stray '#' in program
     for(int i=2;i<=sqrt(n);i++)
  ^
0_0_28245358_15614.cpp:5:9: error: stray '#' in program
     for(int i=2;i<=sqrt(n);i++)
         ^
0_0_28245358_15614.cpp:6:2: error: stray '#' in program
     {
  ^
0_0_28245358_15614.cpp:6:9: error: stray '#' in program
     {
         ^
0_0_28245358_15614.cpp:7:2: error: stray '#' in program
         if(n%i==0)
  ^
0_0_28245358_15614.cpp:7:9: error: stray '#' in program
         if(n%i==0)
         ^
0_0_28245358_15614.cpp:7:16: error: stray '#' in program
         if(n%i==0)
                ^
0_0_28245358_15614.cpp:7:23: error: stray '#' in program
         if(n%i==0)
                       ^
0_0_28245358_15614.cpp:8:2: error: stray '#' in program
             return 0;
  ^
0_0_28245358_15614.cpp:8:9: error: stray '#' in program
             return 0;
         ^
0_0_28245358_15614.cpp:8:16: error: stray '#' in program
             return 0;
                ^
0_0_28245358_15614.cpp:8:23: error: stray '#' in program
             return 0;
                       ^
0_0_28245358_15614.cpp:8:30: error: stray '#' in program
             return 0;
                              ^
0_0_28245358_15614.cpp:8:37: error: stray '#' in program
             return 0;
                                     ^
0_0_28245358_15614.cpp:9:2: error: stray '#' in program
     }
  ^
0_0_28245358_15614.cpp:9:9: error: stray '#' in program
     }
         ^
0_0_28245358_15614.cpp:10:2: error: stray '#' in program
     return 1;
  ^
0_0_28245358_15614.cpp:10:9: error: stray '#' in program
     return 1;
         ^
0_0_28245358_15614.cpp:14:2: error: stray '#' in program
     int n,sum;
  ^
0_0_28245358_15614.cpp:14:9: error: stray '#' in program
     int n,sum;
         ^
0_0_28245358_15614.cpp:15:2: error: stray '#' in program
     while(~scanf("%d",&n)&&n)
  ^
0_0_28245358_15614.cpp:15:9: error: stray '#' in program
     while(~scanf("%d",&n)&&n)
         ^
0_0_28245358_15614.cpp:16:2: error: stray '#' in program
     {
  ^
0_0_28245358_15614.cpp:16:9: error: stray '#' in program
     {
         ^
0_0_28245358_15614.cpp:17:2: error: stray '#' in program
         sum=0;
  ^
0_0_28245358_15614.cpp:17:9: error: stray '#' in program
         sum=0;
         ^
0_0_28245358_15614.cpp:17:16: error: stray '#' in program
         sum=0;
                ^
0_0_28245358_15614.cpp:17:23: error: stray '#' in program
         sum=0;
                       ^
0_0_28245358_15614.cpp:18:2: error: stray '#' in program
         for(int i=2;i<n/2;i++)
  ^
0_0_28245358_15614.cpp:18:9: error: stray '#' in program
         for(int i=2;i<n/2;i++)
         ^
0_0_28245358_15614.cpp:18:16: error: stray '#' in program
         for(int i=2;i<n/2;i++)
                ^
0_0_28245358_15614.cpp:18:23: error: stray '#' in program
         for(int i=2;i<n/2;i++)
                       ^
0_0_28245358_15614.cpp:19:2: error: stray '#' in program
         {
  ^
0_0_28245358_15614.cpp:19:9: error: stray '#' in program
         {
         ^
0_0_28245358_15614.cpp:19:16: error: stray '#' in program
         {
                ^
0_0_28245358_15614.cpp:19:23: error: stray '#' in program
         {
                       ^
0_0_28245358_15614.cpp:20:2: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
  ^
0_0_28245358_15614.cpp:20:9: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
         ^
0_0_28245358_15614.cpp:20:16: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
                ^
0_0_28245358_15614.cpp:20:23: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
                       ^
0_0_28245358_15614.cpp:20:30: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
                              ^
0_0_28245358_15614.cpp:20:37: error: stray '#' in program
             if(is_prime(i)&&is_prime(n-i))
                                     ^
0_0_28245358_15614.cpp:21:2: error: stray '#' in program
                 sum++;
  ^
0_0_28245358_15614.cpp:21:9: error: stray '#' in program
                 sum++;
         ^
0_0_28245358_15614.cpp:21:16: error: stray '#' in program
                 sum++;
                ^
0_0_28245358_15614.cpp:21:23: error: stray '#' in program
                 sum++;
                       ^
0_0_28245358_15614.cpp:21:30: error: stray '#' in program
                 sum++;
                              ^
0_0_28245358_15614.cpp:21:37: error: stray '#' in program
                 sum++;
                                     ^
0_0_28245358_15614.cpp:21:44: error: stray '#' in program
                 sum++;
                                            ^
0_0_28245358_15614.cpp:21:51: error: stray '#' in program
                 sum++;
                                                   ^
0_0_28245358_15614.cpp:22:2: error: stray '#' in program
         }
  ^
0_0_28245358_15614.cpp:22:9: error: stray '#' in program
         }
         ^
0_0_28245358_15614.cpp:22:16: error: stray '#' in program
         }
                ^
0_0_28245358_15614.cpp:22:23: error: stray '#' in program
         }
                       ^
0_0_28245358_15614.cpp:23:2: error: stray '#' in program
         printf("%d\n",sum);
  ^
0_0_28245358_15614.cpp:23:9: error: stray '#' in program
         printf("%d\n",sum);
         ^
0_0_28245358_15614.cpp:23:16: error: stray '#' in program
         printf("%d\n",sum);
                ^
0_0_28245358_15614.cpp:23:23: error: stray '#' in program
         printf("%d\n",sum);
                       ^
0_0_28245358_15614.cpp:24:2: error: stray '#' in program
     }
  ^
0_0_28245358_15614.cpp:24:9: error: stray '#' in program
     }
         ^
0_0_28245358_15614.cpp:25:2: error: stray '#' in program
     return 0;
  ^
0_0_28245358_15614.cpp:25:9: error: stray '#' in program
     return 0;
         ^
0_0_28245358_15614.cpp: In function 'int is_prime(int)':
0_0_28245358_15614.cpp:5:3: error: lvalue required as unary '&' operand
     for(int i=2;i<=sqrt(n);i++)
   ^
0_0_28245358_15614.cpp:5:10: error: lvalue required as unary '&' operand
     for(int i=2;i<=sqrt(n);i++)
          ^
0_0_28245358_15614.cpp:6:3: error: lvalue required as unary '&' operand
     {
   ^
0_0_28245358_15614.cpp:6:10: error: lvalue required as unary '&' operand
     {
          ^
0_0_28245358_15614.cpp:7:3: error: lvalue required as unary '&' operand
         if(n%i==0)
   ^
0_0_28245358_15614.cpp:7:10: error: lvalue required as unary '&' operand
         if(n%i==0)
          ^
0_0_28245358_15614.cpp:7:17: error: lvalue required as unary '&' operand
         if(n%i==0)
                 ^
0_0_28245358_15614.cpp:7:24: error: lvalue required as unary '&' operand
         if(n%i==0)
                        ^
0_0_28245358_15614.cpp:7:34: error: 'i' was not declared in this scope
         if(n%i==0)
                                  ^
0_0_28245358_15614.cpp:8:3: error: lvalue required as unary '&' operand
             return 0;
   ^
0_0_28245358_15614.cpp:8:10: error: lvalue required as unary '&' operand
             return 0;
          ^
0_0_28245358_15614.cpp:8:17: error: lvalue required as unary '&' operand
             return 0;
                 ^
0_0_28245358_15614.cpp:8:24: error: lvalue required as unary '&' operand
             return 0;
                        ^
0_0_28245358_15614.cpp:8:31: error: lvalue required as unary '&' operand
             return 0;
                               ^
0_0_28245358_15614.cpp:8:38: error: lvalue required as unary '&' operand
             return 0;
                                      ^
0_0_28245358_15614.cpp:9:3: error: lvalue required as unary '&' operand
     }
   ^
0_0_28245358_15614.cp


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 00:15:06, Gzip enabled