Guest
Login
跳过导航链接

Compile Error:

  : In function 'int main()':
:19:23: error: expected ';' before 'v'
   19 |     for (const auto& s v)cout<<s<<endl;
      |                       ^~
      |                       ;
:19:24: error: could not convert 'v' from 'std::vector<std::__cxx11::basic_string<char> >' to 'bool'
   19 |     for (const auto& s v)cout<<s<<endl;
      |                        ^
      |                        |
      |                        std::vector<std::__cxx11::basic_string<char> >
:19:25: error: expected ';' before ')' token
   19 |     for (const auto& s v)cout<<s<<endl;
      |                         ^
      |                         ;
:19:32: error: use of 's' before deduction of 'auto'
   19 |     for (const auto& s v)cout<<s<<endl;
      |                                ^

  

Zhe Jiang University Of Technology Online Programming Space Beta1.3
Designed & Developped By Jin Qiwei
Refactored By cb@zjut.edu.cn , QQ Group: 723311416  All Copyright Reserved 2006-
917