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_22552194_14328.cpp: In function 'void init()':
0_0_22552194_14328.cpp:18:5: error: 'now' was not declared in this scope
     now = 1;
     ^
0_0_22552194_14328.cpp: In function 'void solve()':
0_0_22552194_14328.cpp:23:11: error: 'n' was not declared in this scope
     while(n--)
           ^
0_0_22552194_14328.cpp:25:23: error: 'op' was not declared in this scope
         scanf("%lld",&op);
                       ^
0_0_22552194_14328.cpp:28:27: error: 'x' was not declared in this scope
             scanf("%lld",&x);
                           ^
0_0_22552194_14328.cpp:29:18: error: 'now' was not declared in this scope
             if(x>now)
                  ^
0_0_22552194_14328.cpp:35:13: error: 'now' was not declared in this scope
             now += x;
             ^
0_0_22552194_14328.cpp:42:31: error: 'now' was not declared in this scope
         else printf("%lld\n", now);
                               ^
0_0_22552194_14328.cpp: In function 'int main()':
0_0_22552194_14328.cpp:48:25: error: 'n' was not declared in this scope
     while(scanf("%lld",&n)!=EOF)
                         ^


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-09-30 05:29:03, Gzip enabled