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_21682095_25207.cpp: In function 'int main()':
0_0_21682095_25207.cpp:5:12: error: expected unqualified-id before 'int'
  int cases,int n,a,b,c,sum;
            ^
0_0_21682095_25207.cpp:9:3: error: 'sum' was not declared in this scope
   sum=0;
   ^
0_0_21682095_25207.cpp:10:15: error: 'n' was not declared in this scope
   scanf("%d",&n);
               ^
0_0_21682095_25207.cpp:11:3: error: 'a' was not declared in this scope
   a=floor(n/2.0);
   ^
0_0_21682095_25207.cpp:12:3: error: 'b' was not declared in this scope
   b=floor((n-a)*2.0/3);
   ^
0_0_21682095_25207.cpp:13:3: error: 'c' was not declared in this scope
   c=n-a-b;
   ^


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-06-26 20:25:36, Gzip enabled