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_27947632_21038.cpp: In function 'int main()':
0_0_27947632_21038.cpp:46:76: error: expected '}' at end of input
             if(c[i]=='(') a1++;            else a2++;            if(a2>a1) {//任何子串都不能存在'('个数少于')'                printf("%d\n",0);                b=true;                break;            }        }        if(b) continue;        if(a2>a1) {            printf("%d\n",0);            continue;        }        ll ans=(C(n-a1-a2,n/2-a1)+mod-C(n-a1-a2,n/2-a1-1))%mod;        printf("%I64d\n",ans);    }    return 0;}
                                                                            ^
0_0_27947632_21038.cpp:46:76: error: expected '}' at end of input
0_0_27947632_21038.cpp:46:76: error: expected '}' at end of input
0_0_27947632_21038.cpp:46:76: error: expected '}' at end of input


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.000000(s) query 1, Server time : 2025-02-17 11:38:28, Gzip enabled