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_25634224_2802.cpp: In function 'bool check()':
0_0_25634224_2802.cpp:8:20: error: 'n' was not declared in this scope
     for(int i=0; i<n-1; i++)
                    ^
0_0_25634224_2802.cpp:9:13: error: 's' was not declared in this scope
         if((s[i]=='+'||s[i]=='*')&&(s[i+1]=='+'||s[i+1]=='*'))
             ^
0_0_25634224_2802.cpp:11:20: error: 'n' was not declared in this scope
     for(int i=1; i<n-1; i++)
                    ^
0_0_25634224_2802.cpp:12:12: error: 's' was not declared in this scope
         if(s[i]=='0'&&!(s[i-1]>='0'&&s[i-1]<='9')&&(s[i+1]>='0'&&s[i+1]<='9'))
            ^
0_0_25634224_2802.cpp:14:8: error: 's' was not declared in this scope
     if(s[0]=='0'&&(s[1]>='0'&&s[1]<='9'))return 0;
        ^
0_0_25634224_2802.cpp:15:8: error: 's' was not declared in this scope
     if(s[0]=='+'||s[0]=='*'||s[n-1]=='+'||s[n-1]=='*')
        ^
0_0_25634224_2802.cpp:15:32: error: 'n' was not declared in this scope
     if(s[0]=='+'||s[0]=='*'||s[n-1]=='+'||s[n-1]=='*')
                                ^


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-27 08:47:43, Gzip enabled