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_37885945_31203.cpp: In function 'int main()':
0_0_37885945_31203.cpp:26:5: error: expected ';' before 'if'
 i   if (s2[i] == '1')   sum2+= j;              
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdbool:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:56,
                 from 0_0_37885945_31203.cpp:1:
0_0_37885945_31203.cpp:28:1: error: expected ';' before 'bool'
 bool flag = 0;                                   
 ^
0_0_37885945_31203.cpp:37:18: error: 'flag' was not declared in this scope
                  flag = 1;
                  ^
0_0_37885945_31203.cpp:42:15: error: 'flag' was not declared in this scope
          if (!flag) printf("%lld\n", sum1 - sum2);
               ^
0_0_37885945_31203.cpp:50:1: error: expected '}' at end of input
 }
 ^


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-05-02 10:46:59, Gzip enabled