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_20961560_19422.cpp:12:24: error: stray '#' in program
  for(int i=1960;i<=n;i+=10)
                        ^
0_0_20961560_19422.cpp:17:10: error: stray '#' in program
      sum+=log((++ans)*1.0);
          ^
0_0_20961560_19422.cpp:17:21: error: stray '#' in program
      sum+=log((++ans)*1.0);
                     ^
0_0_20961560_19422.cpp:17:26: error: stray '#' in program
      sum+=log((++ans)*1.0);
                          ^
0_0_20961560_19422.cpp: In function 'int main()':
0_0_20961560_19422.cpp:12:27: error: expected ')' before ';' token
  for(int i=1960;i<=n;i+=10)
                           ^
0_0_20961560_19422.cpp:12:28: error: expected primary-expression before '=' token
  for(int i=1960;i<=n;i+=10)
                            ^
0_0_20961560_19422.cpp:17:11: error: invalid operands of types 'double' and 'int' to binary 'operator&'
      sum+=log((++ans)*1.0);
           ^
0_0_20961560_19422.cpp:17:14: error: expected primary-expression before '=' token
      sum+=log((++ans)*1.0);
              ^
0_0_20961560_19422.cpp:17:22: error: lvalue required as unary '&' operand
      sum+=log((++ans)*1.0);
                      ^
0_0_20961560_19422.cpp:17:24: error: expected ')' before ';' token
      sum+=log((++ans)*1.0);
                        ^
0_0_20961560_19422.cpp:17:27: error: lvalue required as unary '&' operand
      sum+=log((++ans)*1.0);
                           ^
0_0_20961560_19422.cpp:17:33: error: expected ';' before ')' token
      sum+=log((++ans)*1.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-23 07:18:27, Gzip enabled