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_39617777_10100.cpp: In function 'int main()':
0_0_39617777_10100.cpp:17:28: error: 'a' was not declared in this scope
   17 |                 if(n%3==0) a=n/3;
      |                            ^
0_0_39617777_10100.cpp:18:22: error: 'a' was not declared in this scope
   18 |                 else a=n/3+1;
      |                      ^
0_0_39617777_10100.cpp:20:20: error: 'a' was not declared in this scope
   20 |                 if(a%2==1||b%2==1) odd++;
      |                    ^
0_0_39617777_10100.cpp:20:28: error: 'b' was not declared in this scope
   20 |                 if(a%2==1||b%2==1) odd++;
      |                            ^
0_0_39617777_10100.cpp:21:23: error: 'b' was not declared in this scope
   21 |                 odd+=(b-a)/2;
      |                       ^
0_0_39617777_10100.cpp:21:25: error: 'a' was not declared in this scope
   21 |                 odd+=(b-a)/2;
      |                         ^


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.001000(s) query 1, Server time : 2025-02-17 05:32:06, Gzip enabled