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_39565328_20807.cpp: In function 'void solve()':
0_0_39565328_20807.cpp:11:9: error: expected ',' or ';' before 'string'
   11 |         string nots1 = "";
      |         ^~~~~~
0_0_39565328_20807.cpp:12:27: error: 'nots1' was not declared in this scope
   12 |         for (auto x : s1) nots1 += ((x - '0') ^ 1 + '0');
      |                           ^~~~~
0_0_39565328_20807.cpp:17:34: error: 'nots1' was not declared in this scope
   17 |                 if (s2[i - 1] != nots1[i - 1]) cur2++;
      |                                  ^~~~~
0_0_39565328_20807.cpp:18:34: error: 'nots1' was not declared in this scope
   18 |                 if (s3[i - 1] != nots1[i - 1]) cur3++;
      |                                  ^~~~~


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-20 22:56:32, Gzip enabled