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_34066413_50.cpp:4:9: error: '_int64' does not name a type
 typedef _int64 ll;
         ^
0_0_34066413_50.cpp:5:1: error: 'll' does not name a type
 ll C(ll a, ll b) {
 ^
0_0_34066413_50.cpp: In function 'int main()':
0_0_34066413_50.cpp:18:2: error: 'll' was not declared in this scope
  ll n;
  ^
0_0_34066413_50.cpp:19:16: error: 'n' was not declared in this scope
  while (cin >> n) {
                ^
0_0_34066413_50.cpp:20:6: error: expected ';' before 'res'
   ll res = 0;
      ^
0_0_34066413_50.cpp:21:11: error: expected ';' before 'i'
   for (ll i = 2; i <= n; i++) {
           ^
0_0_34066413_50.cpp:21:18: error: 'i' was not declared in this scope
   for (ll i = 2; i <= n; i++) {
                  ^
0_0_34066413_50.cpp:23:4: error: 'res' was not declared in this scope
    res += (ll)(i - 1) * C(n, i);
    ^
0_0_34066413_50.cpp:23:31: error: 'C' was not declared in this scope
    res += (ll)(i - 1) * C(n, i);
                               ^
0_0_34066413_50.cpp:26:11: error: 'res' was not declared in this scope
   cout << res << endl;
           ^


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-01 18:30:16, Gzip enabled