Language: C++

Last login: Thu May 30 16:42:53 on ttys001
You have new mail.
ilchiggs:~ yumi$ cd Sandbox_orig/ 
.DS_Store         blab/             garfieldpp/       okeiko/
19985data.txt     c++okeiko/        graph_et.C        rootokeiko/
19985data.txt~    calcurate_cd.C    graph_et.C~       tmp/
Marlin-master/    cd_by_efield.pdf  hist.C            
beamtest/         dustbox/          hist.C~           
ilchiggs:~ yumi$ cd Sandbox_orig/c++okeiko/AtCoder/
ilchiggs:AtCoder yumi$ ll
total 8040
drwxr-xr-x  12 yumi  staff   384B May 22 11:11 .
drwxr-xr-x  63 yumi  staff   2.0K May 20 18:29 ..
-rwxr-xr-x   1 yumi  staff   2.0M May 20 19:40 a.out
-rw-r--r--   1 yumi  staff   272B May 20 19:53 already.cxx
-rw-r--r--   1 yumi  staff   272B May 20 19:40 already.cxx~
-rw-r--r--   1 yumi  staff   224B May 22 11:11 placing.cxx
-rw-r--r--   1 yumi  staff   224B May 20 19:19 placing.cxx~
-rw-r--r--   1 yumi  staff   174B May 20 18:53 product.cxx
-rw-r--r--   1 yumi  staff   174B May 20 18:45 product.cxx~
-rwxr-xr-x   1 yumi  staff   1.9M May 20 19:58 test
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx~
ilchiggs:AtCoder yumi$  
ilchiggs:AtCoder yumi$ ls -ltr
total 8040
-rw-r--r--  1 yumi  staff      174 May 20 18:45 product.cxx~
-rw-r--r--  1 yumi  staff      174 May 20 18:53 product.cxx
-rw-r--r--  1 yumi  staff      224 May 20 19:19 placing.cxx~
-rw-r--r--  1 yumi  staff      272 May 20 19:40 already.cxx~
-rwxr-xr-x  1 yumi  staff  2108448 May 20 19:40 a.out*
-rw-r--r--  1 yumi  staff      272 May 20 19:53 already.cxx
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx~
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx
-rwxr-xr-x  1 yumi  staff  1973208 May 20 19:58 test*
-rw-r--r--  1 yumi  staff      224 May 22 11:11 placing.cxx
ilchiggs:AtCoder yumi$ vi placing.cxx
ilchiggs:AtCoder yumi$ vi already.cxx
ilchiggs:AtCoder yumi$ cp already.cxx problem1_June2.cxx
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ls -ltr
total 7784
-rw-r--r--  1 yumi  staff      174 May 20 18:45 product.cxx~
-rw-r--r--  1 yumi  staff      174 May 20 18:53 product.cxx
-rw-r--r--  1 yumi  staff      224 May 20 19:19 placing.cxx~
-rw-r--r--  1 yumi  staff      272 May 20 19:53 already.cxx~
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx~
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx
-rwxr-xr-x  1 yumi  staff  1973208 May 20 19:58 test*
-rw-r--r--  1 yumi  staff      224 May 22 11:11 placing.cxx
-rw-r--r--  1 yumi  staff      272 Jun  2 21:21 already.cxx
-rw-r--r--  1 yumi  staff      272 Jun  2 21:22 problem1_June2.cxx~
-rw-r--r--  1 yumi  staff      405 Jun  2 21:25 problem1_June2.cxx
-rwxr-xr-x  1 yumi  staff  1968296 Jun  2 21:25 a.out*
ilchiggs:AtCoder yumi$ ./a.out 
8 1 2 4 6
0
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ vi placing.cxx
ilchiggs:AtCoder yumi$ vi product.cxx
ilchiggs:AtCoder yumi$ vi product.cxx
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ vi product.cxx
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
8 1 3 4 6
0
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
9 1 3 4 5
0
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
9 1 2 3 4     
0
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
12345
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ ll
total 7784
drwxr-xr-x  14 yumi  staff   448B Jun  2 21:31 .
drwxr-xr-x  63 yumi  staff   2.0K May 20 18:29 ..
-rwxr-xr-x   1 yumi  staff   1.9M Jun  2 21:30 a.out
-rw-r--r--   1 yumi  staff   272B Jun  2 21:21 already.cxx
-rw-r--r--   1 yumi  staff   272B May 20 19:53 already.cxx~
-rw-r--r--   1 yumi  staff   224B May 22 11:11 placing.cxx
-rw-r--r--   1 yumi  staff   224B May 20 19:19 placing.cxx~
-rw-r--r--   1 yumi  staff   258B Jun  2 21:31 problem1_June2.cxx
-rw-r--r--   1 yumi  staff   258B Jun  2 21:30 problem1_June2.cxx~
-rw-r--r--   1 yumi  staff   174B May 20 18:53 product.cxx
-rw-r--r--   1 yumi  staff   174B May 20 18:45 product.cxx~
-rwxr-xr-x   1 yumi  staff   1.9M May 20 19:58 test
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx~
ilchiggs:AtCoder yumi$ vi welcome.cxx
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ vi welcome.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
12345
1
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
12345
1
ilchiggs:AtCoder yumi$ ./a.out 
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 5 6
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4
1
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
1
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out placing.cxx 
ilchiggs:AtCoder yumi$ ./a.out 
1
1
ilchiggs:AtCoder yumi$ ./a.out 
3
0
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ ll
total 7784
drwxr-xr-x  14 yumi  staff   448B Jun  2 21:53 .
drwxr-xr-x  63 yumi  staff   2.0K May 20 18:29 ..
-rwxr-xr-x   1 yumi  staff   1.9M Jun  2 21:52 a.out
-rw-r--r--   1 yumi  staff   272B Jun  2 21:21 already.cxx
-rw-r--r--   1 yumi  staff   272B May 20 19:53 already.cxx~
-rw-r--r--   1 yumi  staff   224B May 22 11:11 placing.cxx
-rw-r--r--   1 yumi  staff   224B May 20 19:19 placing.cxx~
-rw-r--r--   1 yumi  staff   450B Jun  2 21:53 problem1_June2.cxx
-rw-r--r--   1 yumi  staff   450B Jun  2 21:52 problem1_June2.cxx~
-rw-r--r--   1 yumi  staff   174B May 20 18:53 product.cxx
-rw-r--r--   1 yumi  staff   174B May 20 18:45 product.cxx~
-rwxr-xr-x   1 yumi  staff   1.9M May 20 19:58 test
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx
-rw-r--r--   1 yumi  staff   194B May 20 19:58 welcome.cxx~
ilchiggs:AtCoder yumi$ ls -ltr
total 7784
-rw-r--r--  1 yumi  staff      174 May 20 18:45 product.cxx~
-rw-r--r--  1 yumi  staff      174 May 20 18:53 product.cxx
-rw-r--r--  1 yumi  staff      224 May 20 19:19 placing.cxx~
-rw-r--r--  1 yumi  staff      272 May 20 19:53 already.cxx~
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx~
-rw-r--r--  1 yumi  staff      194 May 20 19:58 welcome.cxx
-rwxr-xr-x  1 yumi  staff  1973208 May 20 19:58 test*
-rw-r--r--  1 yumi  staff      224 May 22 11:11 placing.cxx
-rw-r--r--  1 yumi  staff      272 Jun  2 21:21 already.cxx
-rw-r--r--  1 yumi  staff      450 Jun  2 21:52 problem1_June2.cxx~
-rwxr-xr-x  1 yumi  staff  1968296 Jun  2 21:52 a.out*
-rw-r--r--  1 yumi  staff      450 Jun  2 21:53 problem1_June2.cxx
ilchiggs:AtCoder yumi$ vi product.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out product.cxx
ilchiggs:AtCoder yumi$ ./a.out 
2 4
Even
ilchiggs:AtCoder yumi$ vi product.cxx
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out product.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:8:9: error: 'a' was not declared in this scope
  cin >> a >> b;
         ^
problem1_June2.cxx:8:14: error: 'b' was not declared in this scope
  cin >> a >> b;
              ^
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
1 2
a=1 ,b=2
Even
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
Hello.
n=1 ,a=2 ,b=3 ,c=4 ,d=5
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:15:16: error: 'line' was not declared in this scope
   getline(cin, line);
                ^~~~
problem1_June2.cxx:15:16: note: suggested alternative: 'time'
   getline(cin, line);
                ^~~~
                time
problem1_June2.cxx:16:3: error: 'road' was not declared in this scope
   road[i] = line[i]
   ^~~~
problem1_June2.cxx:16:3: note: suggested alternative: 'raod'
   road[i] = line[i]
   ^~~~
   raod
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:15:16: error: 'line' was not declared in this scope
   getline(cin, line);
                ^~~~
problem1_June2.cxx:15:16: note: suggested alternative: 'time'
   getline(cin, line);
                ^~~~
                time
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:3: error: expected ';' before 'cout'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
   ^~~~
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
   ~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/string:53:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator>>(basic_istream<_CharT, _Traits>& __in,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note: candidate: template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)
     operator>>(_Istream&& __is, _Tp&& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note:   template argument deduction/substitution failed:
/Users/opt/osxws/include/c++/7.3.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[3]]':
problem1_June2.cxx:17:10:   required from here
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:16:13: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'char' in assignment
   road[i] = line;
             ^~~~
problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
   ~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/string:53:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator>>(basic_istream<_CharT, _Traits>& __in,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note: candidate: template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)
     operator>>(_Istream&& __is, _Tp&& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note:   template argument deduction/substitution failed:
/Users/opt/osxws/include/c++/7.3.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[3]]':
problem1_June2.cxx:17:10:   required from here
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
   ~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/string:53:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator>>(basic_istream<_CharT, _Traits>& __in,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,read=" << road[i] << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note: candidate: template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)
     operator>>(_Istream&& __is, _Tp&& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note:   template argument deduction/substitution failed:
/Users/opt/osxws/include/c++/7.3.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[3]]':
problem1_June2.cxx:17:10:   required from here
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
   cout >>"i=" <<i<<" ,line=" << line << endl;
   ~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/string:53:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator>>(basic_istream<_CharT, _Traits>& __in,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:756:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:761:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:803:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:808:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
   cout >>"i=" <<i<<" ,line=" << line << endl;
          ^~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note: candidate: template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)
     operator>>(_Istream&& __is, _Tp&& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: note:   template argument deduction/substitution failed:
/Users/opt/osxws/include/c++/7.3.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[3]]':
problem1_June2.cxx:17:10:   required from here
/Users/opt/osxws/include/c++/7.3.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:11:100: error: 'std::__cxx11::string {aka class std::__cxx11::basic_string<char>}' has no member named 'str'
   cout <<"n=" << n<< " ,a=" << a<<" ,b=" << b  <<" ,c=" << c  <<" ,d=" << d  <<  " ,line=" << line.str() <<endl;
                                                                                                    ^~~
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
..##
n=1 ,a=2 ,b=3 ,c=4 ,d=5 ,line=..##
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
1 2 3 4 5
..##
n=1 ,a=2 ,b=3 ,c=4 ,d=5 ,line=..##
.
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:20:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type {aka char}' [-fpermissive]
     if(line[b+2]="."){
                  ^~~
problem1_June2.cxx:42:22: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
        cout << "Yes" << end;
        ~~~~~~~~~~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:108:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
/Users/opt/osxws/include/c++/7.3.0/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
       operator<<(__ios_type& (*__pf)(__ios_type&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:117:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
/Users/opt/osxws/include/c++/7.3.0/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(ios_base& (*__pf) (ios_base&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:127:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
/Users/opt/osxws/include/c++/7.3.0/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:166:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
/Users/opt/osxws/include/c++/7.3.0/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:170:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(bool __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:174:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:91:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned short __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:181:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned in'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:105:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned int __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:192:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:201:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
/Users/opt/osxws/include/c++/7.3.0/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:205:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(double __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:220:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
/Users/opt/osxws/include/c++/7.3.0/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(float __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:224:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
/Users/opt/osxws/include/c++/7.3.0/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long double __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:232:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
/Users/opt/osxws/include/c++/7.3.0/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(const void* __p)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:245:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:119:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
In file included from /Users/opt/osxws/include/c++/7.3.0/string:52:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.h:6272:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.h:6272:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   couldn't deduce template parameter '_Alloc'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:46:0,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/system_error:217:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const std::error_code&'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:497:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT) [with _CharT = char; _Traits = std::char_traits<char>]
     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:497:5: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'char'
/Users/opt/osxws/include/c++/7.3.0/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:502:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'char'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:508:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
     operator<<(basic_ostream<char, _Traits>& __out, char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:508:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'char'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:514:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:514:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'signed char'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:519:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
     operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:519:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'unsigned char'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:539:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>]
     operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:539:5: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const char*'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:321:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:321:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const char*'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:556:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
     operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:556:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const char*'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:569:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
     operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:569:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const signed char*'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:574:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
     operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:574:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const unsigned char*'
        cout << "Yes" << end;
                         ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:682:5: note: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
     operator<<(_Ostream&& __os, const _Tp& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:682:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:42:25: note:   couldn't deduce template parameter '_Tp'
        cout << "Yes" << end;
                         ^~~
problem1_June2.cxx:45:21: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
        cout << "No" << end;
        ~~~~~~~~~~~~~^~~~~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:108:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
/Users/opt/osxws/include/c++/7.3.0/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
       operator<<(__ios_type& (*__pf)(__ios_type&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:117:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
/Users/opt/osxws/include/c++/7.3.0/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(ios_base& (*__pf) (ios_base&))
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:127:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
/Users/opt/osxws/include/c++/7.3.0/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:166:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
/Users/opt/osxws/include/c++/7.3.0/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:170:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(bool __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:174:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:91:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned short __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:181:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned in'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:105:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned int __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:192:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:201:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
/Users/opt/osxws/include/c++/7.3.0/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long long __n)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:205:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
/Users/opt/osxws/include/c++/7.3.0/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(double __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:220:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
/Users/opt/osxws/include/c++/7.3.0/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(float __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:224:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
/Users/opt/osxws/include/c++/7.3.0/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long double __f)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:232:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
/Users/opt/osxws/include/c++/7.3.0/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(const void* __p)
       ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:245:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:119:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
In file included from /Users/opt/osxws/include/c++/7.3.0/string:52:0,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
                 from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.h:6272:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/basic_string.h:6272:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   couldn't deduce template parameter '_Alloc'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:46:0,
                 from /Users/opt/osxws/include/c++/7.3.0/ios:42,
                 from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/system_error:217:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const std::error_code&'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:497:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT) [with _CharT = char; _Traits = std::char_traits<char>]
     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:497:5: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'char'
/Users/opt/osxws/include/c++/7.3.0/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:502:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'char'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:508:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
     operator<<(basic_ostream<char, _Traits>& __out, char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:508:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'char'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:514:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:514:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'signed char'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:519:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
     operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:519:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'unsigned char'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:539:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>]
     operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:539:5: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const char*'
In file included from /Users/opt/osxws/include/c++/7.3.0/ostream:693:0,
                 from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:321:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/bits/ostream.tcc:321:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const char*'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:556:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
     operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:556:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const char*'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:569:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
     operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:569:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const signed char*'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:574:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
     operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:574:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   cannot convert 'std::end' (type '<unresolved overloaded function type>') to type 'const unsigned char*'
        cout << "No" << end;
                        ^~~
In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:39:0,
                 from problem1_June2.cxx:1:
/Users/opt/osxws/include/c++/7.3.0/ostream:682:5: note: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
     operator<<(_Ostream&& __os, const _Tp& __x)
     ^~~~~~~~
/Users/opt/osxws/include/c++/7.3.0/ostream:682:5: note:   template argument deduction/substitution failed:
problem1_June2.cxx:45:24: note:   couldn't deduce template parameter '_Tp'
        cout << "No" << end;
                        ^~~
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:20:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type {aka char}' [-fpermissive]
     if(line[b+2]="."){
                  ^~~
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
8 1 2 7 8
..##.#..
Yes
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
No
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:35: error: lvalue required as left operand of assignment
     if(line[b+1]='.' && line[b+2]='#'){
                                   ^~~
problem1_June2.cxx:30:52: error: lvalue required as left operand of assignment
    if(line[a+1]='.' && line[a+2]='#' && line[a+1]!=b ){
                                                    ^
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:35: error: lvalue required as left operand of assignment
     if(line[b+1]='.' && line[b+2]='#'){
                                   ^~~
problem1_June2.cxx:30:52: error: lvalue required as left operand of assignment
    if(line[a+1]='.' && line[a+2]='#' && line[a+1]!=b ){
                                                    ^
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:35: error: lvalue required as left operand of assignment
     if(line[b+1]='.' && line[b+2]='#'){
                                   ^~~
problem1_June2.cxx:30:58: error: lvalue required as left operand of assignment
    if(line[a+1]='.' && line[a+2]='#' && line[a+1]!=line[b]){
                                                          ^
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:17:35: error: lvalue required as left operand of assignment
     if(line[b+1]='.' && line[b+2]='#'){
                                   ^~~
problem1_June2.cxx:31:52: error: lvalue required as left operand of assignment
    if(line[a+1]='.' && line[a+2]='#' && line[a+1]!='b'){
                                                    ^~~
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:34:41: error: expected primary-expression before '=' token
         if(line[a+2]=='.' && line[a+2]!=='b'){
                                         ^
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
problem1_June2.cxx: In function 'int main()':
problem1_June2.cxx:31:54: error: expected primary-expression before '=' token
    if(line[a+1]=='.' && line[a+2]=='#' && line[a+1]!=='b'){
                                                      ^
problem1_June2.cxx:34:41: error: expected primary-expression before '=' token
         if(line[a+2]=='.' && line[a+2]!=='b'){
                                         ^
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#
^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx
ilchiggs:AtCoder yumi$ g++ -o a.out problem1_June2.cxx
ilchiggs:AtCoder yumi$ ./a.out 
5 1 2 3 4
....#


^C
ilchiggs:AtCoder yumi$ vi problem1_June2.cxx

  //cout << line[0] << endl;

  while(b<d){
    if(line[b+1]=='.'){
     b=b+1;
    }
    if(line[b+2]=='.'){
     b=b+2;
    }
    else{
    }
   }

  while(a<c){
   //if(line[a+1]=='.' &&  line[a+1]!=d){
   if(line[a+1]=='.' ){
        a=a+1;
       }
        //if(line[a+2]=='.' && line[a+2]!=d){
        if(line[a+2]=='.'){
        a=a+2;
       }
       else{
                                                              14,8          45%


Compiler output:
a.cc:220:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  220 | problem1_June2.cxx: In function 'int main()':
      |                                 ^~~~~~~~~~~~
a.cc:241:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  241 | problem1_June2.cxx: In function 'int main()':
      |                                 ^~~~~~~~~~~~
a.cc:242:34: warning: multi-character character constant [-Wmultichar]
  242 | problem1_June2.cxx:15:16: error: 'line' was not declared in this scope
      |                                  ^~~~~~
a.cc:245:56: warning: multi-character character constant [-Wmultichar]
  245 | problem1_June2.cxx:15:16: note: suggested alternative: 'time'
      |                                                        ^~~~~~
a.cc:249:33: warning: multi-character character constant [-Wmultichar]
  249 | problem1_June2.cxx:16:3: error: 'road' was not declared in this scope
      |                                 ^~~~~~
a.cc:252:55: warning: multi-character character constant [-Wmultichar]
  252 | problem1_June2.cxx:16:3: note: suggested alternative: 'raod'
      |                                                       ^~~~~~
a.cc:258:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  258 | problem1_June2.cxx: In function 'int main()':
      |                                 ^~~~~~~~~~~~
a.cc:259:34: warning: multi-character character constant [-Wmultichar]
  259 | problem1_June2.cxx:15:16: error: 'line' was not declared in this scope
      |                                  ^~~~~~
a.cc:262:56: warning: multi-character character constant [-Wmultichar]
  262 | problem1_June2.cxx:15:16: note: suggested alternative: 'time'
      |                                                        ^~~~~~
a.cc:268:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  268 | problem1_June2.cxx: In function 'int main()':
      |                                 ^~~~~~~~~~~~
a.cc:269:53: warning: multi-character character constant [-Wmultichar]
  269 | problem1_June2.cxx:17:3: error: expected ';' before 'cout'
      |                                                     ^~~~~~
a.cc:274:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  274 | problem1_June2.cxx: In function 'int main()':
      |                                 ^~~~~~~~~~~~
a.cc:275:46: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
  275 | problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
      |                                              ^~~~~~~~~~~~
a.cc:275:78: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
  275 | problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
      |                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:275:128: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
  275 | problem1_June2.cxx:17:8: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [3]')
      |                                                                                                                                ^~~~~~~~~~~~~~~~
a.cc:278:52: error: too many decimal points in number
  278 | In file included from /Users/opt/osxws/include/c++/7.3.0/string:53:0,
      |                                                    ^~~~~
a.cc:279:52: error: too many decimal points in number
  279 |                  from /Users/opt/osxws/include/c++/7.3.0/bits/locale_classes.h:40,
      |                                                    ^~~~~
a.cc:280:52: error: too many decimal points in number
  280 |                  from /Users/opt/osxws/include/c++/7.3.0/bits/ios_base.h:41,
      |                                                    ^~~~~
a.cc:281:52: error: too many decimal points in number
  281 |                  from /Users/opt/osxws/include/c++/7.3.0/ios:42,
      |                                                    ^~~~~
a.cc:282:52: error: too many decimal points in number
  282 |                  from /Users/opt/osxws/include/c++/7.3.0/ostream:38,
      |                                                    ^~~~~
a.cc:283:52: error: too many decimal points in number
  283 |                  from /Users/opt/osxws/include/c++/7.3.0/iostream:39,
      |                                                    ^~~~~
a.cc:285:30: error: too many decimal points in number
  285 | /Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
      |                              ^~~~~
a.cc:288:30: error: too many decimal points in number
  288 | /Users/opt/osxws/include/c++/7.3.0/bits/basic_string.tcc:1465:5: note:   template argument deduction/substitution failed:
      |                              ^~~~~
a.cc:289:35: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
  289 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:289:101: warning: multi-character literal with 35 characters exceeds 'int' size of 4 bytes
  289 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:292:52: error: too many decimal points in number
  292 | In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
      |                                                    ^~~~~
a.cc:293:52: error: too many decimal points in number
  293 |                  from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
      |                                                    ^~~~~
a.cc:295:30: error: too many decimal points in number
  295 | /Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
      |                              ^~~~~
a.cc:298:30: error: too many decimal points in number
  298 | /Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
      |                              ^~~~~
a.cc:299:35: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
  299 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:299:101: warning: multi-character literal with 35 characters exceeds 'int' size of 4 bytes
  299 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:302:52: error: too many decimal points in number
  302 | In file included from /Users/opt/osxws/include/c++/7.3.0/istream:991:0,
      |                                                    ^~~~~
a.cc:303:52: error: too many decimal points in number
  303 |                  from /Users/opt/osxws/include/c++/7.3.0/iostream:40,
      |                                                    ^~~~~
a.cc:305:30: error: too many decimal points in number
  305 | /Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
      |                              ^~~~~
a.cc:308:30: error: too many decimal points in number
  308 | /Users/opt/osxws/include/c++/7.3.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
      |                              ^~~~~
a.cc:309:35: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
  309 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:309:101: warning: multi-character literal with 35 characters exceeds 'int' size of 4 bytes
  309 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:312:52: error: too many decimal points in number
  312 | In file included from /Users/opt/osxws/include/c++/7.3.0/iostream:40:0,
      |                                                    ^~~~~
a.cc:314:30: error: too many decimal points in number
  314 | /Users/opt/osxws/include/c++/7.3.0/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
      |                              ^~~~~
a.cc:317:30: error: too many decimal points in number
  317 | /Users/opt/osxws/include/c++/7.3.0/istream:756:5: note:   template argument deduction/substitution failed:
      |                              ^~~~~
a.cc:318:35: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
  318 | problem1_June2.cxx:17:10: note:   'std::ostream {aka std::basic