0_0_32612861_28161.cpp: In function 'void init()':
0_0_32612861_28161.cpp:13:8: error: 'seed' was not declared in this scope
x=seed;
^
0_0_32612861_28161.cpp:15:17: error: invalid types 'int[int]' for array subscript
x[i]=getrand(1,n),y[i]=getrand(1,m);
^
0_0_32612861_28161.cpp:15:29: error: 'n' was not declared in this scope
x[i]=getrand(1,n),y[i]=getrand(1,m);
^
0_0_32612861_28161.cpp:15:32: error: 'y' was not declared in this scope
x[i]=getrand(1,n),y[i]=getrand(1,m);
^
0_0_32612861_28161.cpp:15:47: error: 'm' was not declared in this scope
x[i]=getrand(1,n),y[i]=getrand(1,m);
^
0_0_32612861_28161.cpp: At global scope:
0_0_32612861_28161.cpp:17:9: error: conflicting declaration 'int k'
int n,m,k,seed;
^
0_0_32612861_28161.cpp:3:11: note: previous declaration as 'const int k'
const int k=50268147,b=6082187,mod=1e8+7;
^
0_0_32612861_28161.cpp:18:12: error: size of array 'x' has non-integral type 'double'
int x[1e6+5],y=[1e6+5];
^
0_0_32612861_28161.cpp:18:12: error: conflicting declaration 'int x [1]'
0_0_32612861_28161.cpp:4:5: note: previous declaration as 'int x'
int x;
^
0_0_32612861_28161.cpp:18:17: error: expected identifier before numeric constant
int x[1e6+5],y=[1e6+5];
^
0_0_32612861_28161.cpp: In lambda function:
0_0_32612861_28161.cpp:18:23: error: expected '{' before ';' token
int x[1e6+5],y=[1e6+5];
^
0_0_32612861_28161.cpp: At global scope:
0_0_32612861_28161.cpp:18:23: error: invalid user-defined conversion from '<lambda()>' to 'int' [-fpermissive]
0_0_32612861_28161.cpp:18:22: note: candidate is: <lambda()>::operator void (*)()() const <near match>
int x[1e6+5],y=[1e6+5];
^
0_0_32612861_28161.cpp:18:22: note: no known conversion from 'void (*)()' to 'int'
0_0_32612861_28161.cpp:19:14: error: size of array 'row' has non-integral type 'double'
int row[1e6+5],col[1e6+5];
^
0_0_32612861_28161.cpp:19:25: error: size of array 'col' has non-integral type 'double'
int row[1e6+5],col[1e6+5];
^
0_0_32612861_28161.cpp: In function 'int main()':
0_0_32612861_28161.cpp:28:12: error: cannot bind 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' lvalue to 'std::basic_istream<char>&&'
cin>>n>>m>>k>>seed;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_32612861_28161.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:872:5: note: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = const int]'
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
0_0_32612861_28161.cpp:35:21: error: invalid types 'int[int]' for array subscript
row[x[i]]=1;
^
0_0_32612861_28161.cpp:36:21: error: invalid types 'int[int]' for array subscript
col[y[i]]=1;
^
0_0_32612861_28161.cpp:42:14: error: 'cnt_' was not declared in this scope
cout<<cnt_<<" "<<cnt_c<<endl;
^
0_0_32612861_28161.cpp:45:1: error: expected '}' at end of input
}
^
|