# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20034 | 2016-02-25 08:46:22 | hongjun7 | 로봇 (kriii4_F) | C++98 | Compilation error | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include<stdio.h>
#include<algorithm>
using namespace std;
#define M 1000000007
#define N 33
long long int gcd(long long int x, long long int y)
{
x = std::abs(x);
y = std::abs(y);
if(y==0)return x;
while(x%y)
{
long long int z = x%y;
x=y;
y=z;
}
return y;
}
class B{
public:
long long int p, q;
B(){p=0;q=1;}
B(long long int x){p=x%M;q=1;gg();}
B(long long int x, long long int y){p=x%M;q=y%M;gg();}
void gg()
{
if(q<0){q = M+q;}
if(p<0){p = M+p;}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation message (stderr)
F.cpp: In member function ‘A A::operator*(A&)’: F.cpp:81:16: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’) r.a[i][j] += (a[i][k] * p.a[k][j]); ^ F.cpp:81:16: note: candidate is: F.cpp:36:7: note: void B::operator+=(B&) void operator +=(B &a){ ^ F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’ F.cpp: In member function ‘A A::operator-(A&)’: F.cpp:90:13: warning: unused variable ‘k’ [-Wunused-variable] int i, j, k; ^ F.cpp: In member function ‘A A::operator+(A&)’: F.cpp:103:13: warning: unused variable ‘k’ [-Wunused-variable] int i, j, k; ^ F.cpp: In function ‘A exxp(A, int)’: F.cpp:141:6: warning: unused variable ‘i’ [-Wunused-variable] int i, j, k; ^ F.cpp:141:9: warning: unused variable ‘j’ [-Wunused-variable] int i, j, k; ^ F.cpp:141:12: warning: unused variable ‘k’ [-Wunused-variable] int i, j, k; ^ F.cpp: In function ‘int main()’: F.cpp:201:21: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’) me.a[id1][id2] += me.a[j][l] * me.a[i][k]; ^ F.cpp:201:21: note: candidate is: F.cpp:36:7: note: void B::operator+=(B&) void operator +=(B &a){ ^ F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’ F.cpp:229:19: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’) me.a[i+22][id] += (me.a[i][j] * (-1)); ^ F.cpp:229:19: note: candidate is: F.cpp:36:7: note: void B::operator+=(B&) void operator +=(B &a){ ^ F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’ F.cpp:255:19: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’) me.a[i+26][id] += (me.a[i][j] * (-1)); ^ F.cpp:255:19: note: candidate is: F.cpp:36:7: note: void B::operator+=(B&) void operator +=(B &a){ ^ F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’ F.cpp:280:32: error: no match for ‘operator+’ (operand types are ‘B’ and ‘B’) B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r) ^ F.cpp:280:32: note: candidates are: F.cpp:32:4: note: B B::operator+(B&) B operator +(B &a){ ^ F.cpp:32:4: note: no known conversion for argument 1 from ‘B’ to ‘B&’ F.cpp:41:4: note: B B::operator+(long long int) B operator +(long long int a){ ^ F.cpp:41:4: note: no known conversion for argument 1 from ‘B’ to ‘long long int’ In file included from /usr/include/c++/4.9/bits/stl_algobase.h:67:0, from /usr/include/c++/4.9/algorithm:61, from F.cpp:2: /usr/include/c++/4.9/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&) operator+(typename reverse_iterator<_Iterator>::difference_type __n, ^ /usr/include/c++/4.9/bits/stl_iterator.h:334:5: note: template argument deduction/substitution failed: F.cpp:280:52: note: ‘B’ is not derived from ‘const std::reverse_iterator<_Iterator>’ B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r) ^ F.cpp:159:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld %lld %lld",&n,&ll,&mm,&rr); ^