/in/foo.cc:5:13: error: 'std::vector<int> clock' redeclared as different kind of symbol
vector<int> clock;
^~~~~
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:1:
/usr/include/time.h:189:16: note: previous declaration 'clock_t clock()'
extern clock_t clock (void) __THROW;
^~~~~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:27:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (clock[i] != 0) {
^
/in/foo.cc:31:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (tmp.size() < min_cnt) {
~~~~~~~~~~~^~~~~~~~~
/in/foo.cc:40:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < op[no].size(); j++) {
~~^~~~~~~~~~~~~~~
/in/foo.cc:41:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] + 1) % 4;
^
/in/foo.cc:41:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] + 1) % 4;
^
/in/foo.cc:41:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] + 1) % 4;
^
/in/foo.cc:41:46: error: invalid operands of types 'clock_t (*)() throw () {aka long int (*)() throw ()}' and 'int' to binary 'operator%'
clock[op[no][j]] = (clock[op[no][j]] + 1) % 4;
~~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc:46:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < op[no].size(); j++) {
~~^~~~~~~~~~~~~~~
/in/foo.cc:47:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] - 1) % 4;
^
/in/foo.cc:47:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] - 1) % 4;
^
/in/foo.cc:47:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
clock[op[no][j]] = (clock[op[no][j]] - 1) % 4;
^
/in/foo.cc:47:46: error: invalid operands of types 'clock_t (*)() throw () {aka long int (*)() throw ()}' and 'int' to binary 'operator%'
clock[op[no][j]] = (clock[op[no][j]] - 1) % 4;
~~~~~~~~~~~~~~~~~~~~~~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:56:23: error: assignment of function 'clock_t clock()'
clock = vector<int>(9);
^
/in/foo.cc:56:23: error: cannot convert 'std::vector<int>' to 'clock_t() throw () {aka long int() throw ()}' in assignment
/in/foo.cc:58:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cin >> clock[i];
^
/in/foo.cc:58:7: error: no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'clock_t() throw () {aka long int() throw ()}')
cin >> clock[i];
~~~~^~~~~~~~~~~
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:120:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(__istream_type& (*__pf)(__istream_type&))
^~~~~~~~
/usr/include/c++/6/istream:120:7: note: conversion of argument 1 would be ill-formed:
/in/foo.cc:58:17: error: invalid conversion from 'clock_t (*)() throw () {aka long int (*)() throw ()}' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}' [-fpermissive]
cin >> clock[i];
~~~~~~~^
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:124:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>] <near match>
operator>>(__ios_type& (*__pf)(__ios_type&))
^~~~~~~~
/usr/include/c++/6/istream:124:7: note: conversion of argument 1 would be ill-formed:
/in/foo.cc:58:17: error: invalid conversion from 'clock_t (*)() throw () {aka long int (*)() throw ()}' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}' [-fpermissive]
cin >> clock[i];
~~~~~~~^
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:131:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(ios_base& (*__pf)(ios_base&))
^~~~~~~~
/usr/include/c++/6/istream:131:7: note: conversion of argument 1 would be ill-formed:
/in/foo.cc:58:17: error: invalid conversion from 'clock_t (*)() throw () {aka long int (*)() throw ()}' to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive]
cin >> clock[i];
~~~~~~~^
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:168:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(bool& __n)
^~~~~~~~
/usr/include/c++/6/istream:168:7: note: conversion of argument 1 would be ill-formed:
/in/foo.cc:58:17: error: invalid initialization of non-const reference of type 'bool&' from an rvalue of type 'bool'
cin >> clock[i];
~~~~~~~^
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:172:7: note: candidate: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>] <near match>
operator>>(short& __n);
^~~~~~~~
/usr/include/c++/6/istream:172:7: note: conversion of argument 1 would be ill-formed:
/in/foo.cc:58:17: error: invalid conversion from 'clock_t (*)() throw () {aka long int (*)() throw ()}' to 'short int' [-fpermissive]
cin >> clock[i];
~~~~~~~^
/in/foo.cc:58:17: error: cannot bind rvalue '(short int)(clock + ((sizetype)i))' to 'short int&'
In file included from /usr/include/c++/6/iostream:40:0,
from /in/foo.cc:1:
/usr/include/c++/6/istream:175:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::b