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_39478705_9658.cpp:12:59: error: too many initializers for 'char []'
   12 | char le[]={"231","345","451","521","326","436","546","256"};
      |                                                           ^
0_0_39478705_9658.cpp: In function 'bool check(char, char, char)':
0_0_39478705_9658.cpp:15:36: error: invalid types 'char[int]' for array subscript
   15 |                         if(a==le[i][j] && b==le[i][(j+1)%3] && c==le[i][(j+2)%3]) return 1;
      |                                    ^
0_0_39478705_9658.cpp:15:51: error: invalid types 'char[int]' for array subscript
   15 |                         if(a==le[i][j] && b==le[i][(j+1)%3] && c==le[i][(j+2)%3]) return 1;
      |                                                   ^
0_0_39478705_9658.cpp:15:72: error: invalid types 'char[int]' for array subscript
   15 |                         if(a==le[i][j] && b==le[i][(j+1)%3] && c==le[i][(j+2)%3]) return 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-15 00:27:07, Gzip enabled