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_39596529_6599.cpp:7:11: error: scalar object 'factor' requires one element in initializer
    7 | long long factor={1,1,2,6,24,120,720,5040,40320,362880};
      |           ^~~~~~
0_0_39596529_6599.cpp: In function 'bool Cantor(char*, int)':
0_0_39596529_6599.cpp:21:9: error: 'resullt' was not declared in this scope; did you mean 'result'?
   21 |         resullt+=weight*factor[n-i+1];
      |         ^~~~~~~
      |         result


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 23:27:49, Gzip enabled