0_0_20989822_30920.cpp:14:42: error: stray '#' in program
return LL ((double)rand()/RAND_MAX*n+0.5);
^
0_0_20989822_30920.cpp:25:22: error: stray '#' in program
ans=(ans+a)%mod;
^
0_0_20989822_30920.cpp:30:18: error: stray '#' in program
a=(a+a)%mod;
^
0_0_20989822_30920.cpp:73:28: error: stray '#' in program
for(int i=1;i<=Times;i++)
^
0_0_20989822_30920.cpp:73:33: error: stray '#' in program
for(int i=1;i<=Times;i++)
^
0_0_20989822_30920.cpp:75:26: error: stray '#' in program
LL a=random(n-2)+1;
^
0_0_20989822_30920.cpp:90:19: error: stray '#' in program
x=random(n-2)+1;
^
0_0_20989822_30920.cpp:94:11: error: stray '#' in program
i++;
^
0_0_20989822_30920.cpp:94:16: error: stray '#' in program
i++;
^
0_0_20989822_30920.cpp:95:25: error: stray '#' in program
x=(multi(x,x,n)+c)%n;
^
0_0_20989822_30920.cpp:114:15: error: stray '#' in program
mp[n]++;
^
0_0_20989822_30920.cpp:114:20: error: stray '#' in program
mp[n]++;
^
0_0_20989822_30920.cpp:134:26: error: stray '#' in program
for(;it!=mp.end();it++)
^
0_0_20989822_30920.cpp:134:31: error: stray '#' in program
for(;it!=mp.end();it++)
^
0_0_20989822_30920.cpp: In function 'LL random(LL)':
0_0_20989822_30920.cpp:14:43: error: invalid operands of types 'double' and 'int' to binary 'operator&'
return LL ((double)rand()/RAND_MAX*n+0.5);
^
0_0_20989822_30920.cpp:14:49: error: expected ';' before ')' token
return LL ((double)rand()/RAND_MAX*n+0.5);
^
0_0_20989822_30920.cpp: In function 'LL multi(LL, LL, LL)':
0_0_20989822_30920.cpp:25:25: error: expected ')' before ';' token
ans=(ans+a)%mod;
^
0_0_20989822_30920.cpp:25:27: error: expected ';' before ')' token
ans=(ans+a)%mod;
^
0_0_20989822_30920.cpp:30:21: error: expected ')' before ';' token
a=(a+a)%mod;
^
0_0_20989822_30920.cpp:30:23: error: expected ';' before ')' token
a=(a+a)%mod;
^
0_0_20989822_30920.cpp: In function 'bool miller_rabin(LL)':
0_0_20989822_30920.cpp:73:31: error: expected ')' before ';' token
for(int i=1;i<=Times;i++)
^
0_0_20989822_30920.cpp:73:34: error: lvalue required as unary '&' operand
for(int i=1;i<=Times;i++)
^
0_0_20989822_30920.cpp:73:37: error: expected primary-expression before ')' token
for(int i=1;i<=Times;i++)
^
0_0_20989822_30920.cpp: In function 'LL pollard_rho(LL, int)':
0_0_20989822_30920.cpp:94:17: error: lvalue required as unary '&' operand
i++;
^
0_0_20989822_30920.cpp:95:28: error: expected ')' before ';' token
x=(multi(x,x,n)+c)%n;
^
0_0_20989822_30920.cpp:95:30: error: expected ';' before ')' token
x=(multi(x,x,n)+c)%n;
^
0_0_20989822_30920.cpp: In function 'void find(LL, LL)':
0_0_20989822_30920.cpp:114:21: error: lvalue required as unary '&' operand
mp[n]++;
^
0_0_20989822_30920.cpp: In function 'int main()':
0_0_20989822_30920.cpp:134:25: error: no match for 'operator&' (operand types are 'std::map<long long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, int> >}' and 'int')
for(;it!=mp.end();it++)
^
0_0_20989822_30920.cpp:134:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_20989822_30920.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:75:3: note: constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)
operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:75:3: note: no known conversion for argument 1 from 'std::map<long long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, int> >}' to 'std::_Ios_Fmtflags'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:115:3: note: constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode, std::_Ios_Openmode)
operator&(_Ios_Openmode __a, _Ios_Openmode __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:115:3: note: no known conversion for argument 1 from 'std::map<long long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, int> >}' to 'std::_Ios_Openmode'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:153:3: note: constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate, std::_Ios_Iostate)
operator&(_Ios_Iostate __a, _Ios_Iostate __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:153:3: note: no known conversion for argument 1 from 'std::map<long long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, int> >}' to 'std::_Ios_Iostate'
0_0_20989822_30920.cpp:134:29: error: expected ')' before ';' token
for(;it!=mp.end();it++)
^
0_0_20989822_30920.cpp:134:32: error: lvalue required as unary '&' operand
for(;it!=mp.end();it++)
^
0_0_20989822_30920.cpp:134:35: error: expected primary-expression before ')' token
for(;it!=mp.end();it++)
^
|