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_39157883_1149.cpp: In function 'void solve()':
0_0_39157883_1149.cpp:29:12: error: 'vis1' was not declared in this scope; did you mean 'vis'?
   29 |         if(vis1[a[i]]==0) f1++;
      |            ^~~~
      |            vis
0_0_39157883_1149.cpp:29:27: error: 'f1' was not declared in this scope
   29 |         if(vis1[a[i]]==0) f1++;
      |                           ^~
0_0_39157883_1149.cpp:30:12: error: 'vis2' was not declared in this scope; did you mean 'vis'?
   30 |         if(vis2[b[i]]==0) f2++;
      |            ^~~~
      |            vis
0_0_39157883_1149.cpp:30:27: error: 'f2' was not declared in this scope
   30 |         if(vis2[b[i]]==0) f2++;
      |                           ^~
0_0_39157883_1149.cpp:31:9: error: 'vis1' was not declared in this scope; did you mean 'vis'?
   31 |         vis1[a[i]]++;
      |         ^~~~
      |         vis
0_0_39157883_1149.cpp:32:9: error: 'vis2' was not declared in this scope; did you mean 'vis'?
   32 |         vis2[b[i]]++;
      |         ^~~~
      |         vis
0_0_39157883_1149.cpp:34:8: error: 'f1' was not declared in this scope
   34 |     if(f1==n&&f2==n) cout<<"Just a game of chance.\n";
      |        ^~
0_0_39157883_1149.cpp:34:15: error: 'f2' was not declared in this scope
   34 |     if(f1==n&&f2==n) cout<<"Just a game of chance.\n";
      |               ^~


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-26 09:24:25, Gzip enabled