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_20237945_9143.cpp: In function 'int check1(int, int, int)':
0_0_20237945_9143.cpp:7:9: error: declaration of 'int a [4]' shadows a parameter
  int a[4],b[4];
         ^
0_0_20237945_9143.cpp:12:9: error: invalid operands of types 'int [4]' and 'int' to binary 'operator%'
  b[i]=a%10;
         ^
0_0_20237945_9143.cpp:13:3: error: invalid operands of types 'int [4]' and 'int' to binary 'operator/'
  a/=10;
   ^
0_0_20237945_9143.cpp:13:3: error:   in evaluation of 'operator/=(int [4], int)'
0_0_20237945_9143.cpp: At global scope:
0_0_20237945_9143.cpp:28:34: error: two or more data types in declaration of 'n3'
 int check2(int n1,int n2,int int n3)
                                  ^
0_0_20237945_9143.cpp: In function 'int check2(...)':
0_0_20237945_9143.cpp:31:11: error: expected initializer before 'b'
  int a[4] b[4];
           ^
0_0_20237945_9143.cpp:34:3: error: 'a' was not declared in this scope
   a[i]=n1%10;
   ^
0_0_20237945_9143.cpp:34:8: error: 'n1' was not declared in this scope
   a[i]=n1%10;
        ^
0_0_20237945_9143.cpp:36:3: error: 'b' was not declared in this scope
   b[i]=n2%10;
   ^
0_0_20237945_9143.cpp:36:8: error: 'n2' was not declared in this scope
   b[i]=n2%10;
        ^
0_0_20237945_9143.cpp:42:8: error: 'n3' was not declared in this scope
  if(k==n3)
        ^


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-09-30 09:37:11, Gzip enabled