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_24644165_30130.cpp: In function 'void write(char*, char*)':
0_0_24644165_30130.cpp:15:11: error: 'cup1' was not declared in this scope
         ++cup1;
           ^
0_0_24644165_30130.cpp:16:11: error: 'cup2' was not declared in this scope
         ++cup2;
           ^
0_0_24644165_30130.cpp: In function 'int main()':
0_0_24644165_30130.cpp:29:38: error: invalid conversion from 'char' to 'char*' [-fpermissive]
                 if(judge(cup1,color[q])){
                                      ^
0_0_24644165_30130.cpp:4:6: note: initializing argument 2 of 'bool judge(char*, char*)'
 bool judge(char *_cup1,char *_cup2){
      ^
0_0_24644165_30130.cpp:35:33: error: invalid conversion from 'char' to 'char*' [-fpermissive]
                 write(color[coun],cup1);
                                 ^
0_0_24644165_30130.cpp:12:6: note: initializing argument 1 of 'void write(char*, char*)'
 void write(char *_cup1,char *_cup2){
      ^
0_0_24644165_30130.cpp:38:9: error: 'i' was not declared in this scope
     for(i=1;i<coun;i++){
         ^


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-10-06 06:51:38, Gzip enabled