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_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:15:6: error: expected unqualified-id before 'or' token
  int or[1005], tg[1005];
      ^
0_0_18035845_11107.cpp:19:4: error: expected primary-expression before 'or' token
    or[i + 1] = s1[i] - '0';
    ^
0_0_18035845_11107.cpp:19:9: error: expected ',' before '+' token
    or[i + 1] = s1[i] - '0';
         ^
0_0_18035845_11107.cpp:19:9: error: expected identifier before '+' token
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:19:14: error: expected '{' before '=' token
    or[i + 1] = s1[i] - '0';
              ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:20:4: error: 'tg' was not declared in this scope
    tg[i + 1] = s2[i] - '0';
    ^
0_0_18035845_11107.cpp:30:3: error: expected primary-expression before 'or' token
   or[slen + 1] = 0;
   ^
0_0_18035845_11107.cpp:30:11: error: expected ',' before '+' token
   or[slen + 1] = 0;
           ^
0_0_18035845_11107.cpp:30:11: error: expected identifier before '+' token
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:30:16: error: expected '{' before '=' token
   or[slen + 1] = 0;
                ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:31:3: error: expected primary-expression before 'or' token
   or[slen + 2] = 0;
   ^
0_0_18035845_11107.cpp:31:11: error: expected ',' before '+' token
   or[slen + 2] = 0;
           ^
0_0_18035845_11107.cpp:31:11: error: expected identifier before '+' token
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:31:16: error: expected '{' before '=' token
   or[slen + 2] = 0;
                ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:32:3: error: expected primary-expression before 'or' token
   or[slen + 3] = 0;
   ^
0_0_18035845_11107.cpp:32:11: error: expected ',' before '+' token
   or[slen + 3] = 0;
           ^
0_0_18035845_11107.cpp:32:11: error: expected identifier before '+' token
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:32:16: error: expected '{' before '=' token
   or[slen + 3] = 0;
                ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:33:9: error: expected primary-expression before 'or' token
   dp[0][or[1]][or[2]] = 0;
         ^
0_0_18035845_11107.cpp:33:12: error: expected identifier before numeric constant
   dp[0][or[1]][or[2]] = 0;
            ^
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:33:14: error: expected '{' before ']' token
   dp[0][or[1]][or[2]] = 0;
              ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:33:16: error: expected primary-expression before 'or' token
   dp[0][or[1]][or[2]] = 0;
                ^
0_0_18035845_11107.cpp:33:19: error: expected identifier before numeric constant
   dp[0][or[1]][or[2]] = 0;
                   ^
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:33:21: error: expected '{' before ']' token
   dp[0][or[1]][or[2]] = 0;
                     ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:38:17: error: 'tg' was not declared in this scope
       int xx = (tg[i + 1] - j + 10) % 10; //+
                 ^
0_0_18035845_11107.cpp:43:34: error: expected primary-expression before 'or' token
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                  ^
0_0_18035845_11107.cpp:43:39: error: expected ',' before '+' token
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                       ^
0_0_18035845_11107.cpp:43:39: error: expected identifier before '+' token
0_0_18035845_11107.cpp: In lambda function:
0_0_18035845_11107.cpp:43:44: error: expected '{' before '+' token
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                            ^
0_0_18035845_11107.cpp: In function 'int main()':
0_0_18035845_11107.cpp:43:44: error: no match for 'operator+' (operand types are 'main()::<lambda()>' and 'int')
0_0_18035845_11107.cpp:43:44: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_18035845_11107.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note:   template argument deduction/substitution failed:
0_0_18035845_11107.cpp:43:46: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_18035845_11107.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note: template<class _Iterator> std::move_iterator<_Iterator> std::operator+(typename std::move_iterator<_Iterator>::difference_type, const std::move_iterator<_Iterator>&)
     operator+(typename move_iterator<_Iterator>::difference_type __n,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note:   template argument deduction/substitution failed:
0_0_18035845_11107.cpp:43:46: note:   mismatched types 'const std::move_iterator<_Iterator>' and 'int'
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_18035845_11107.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note:   template argument deduction/substitution failed:
0_0_18035845_11107.cpp:43:46: note:   'main()::<lambda()>' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:53:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_18035845_11107.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const _CharT* __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:692:5: note:   template argument deduction/substitution failed:
0_0_18035845_11107.cpp:43:46: note:   mismatched types 'const _CharT*' and 'main()::<lambda()>'
         dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10] = min(dp[i + 1][(k + l) % 10][(or[i + 3] + m) % 10], dp[i][j][k] + xx);
                          


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-16 18:22:16, Gzip enabled