Borderou de evaluare (job #1907341)
Utilizator | Data | 6 martie 2017 18:54:03 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:28: error: ‘long long int y1’ redeclared as different kind of symbol
long long a, n, aux, r, c, y1, y0, y;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp:5:32: error: ‘long long int y0’ redeclared as different kind of symbol
long long a, n, aux, r, c, y1, y0, y;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:14:17: error: assignment of function ‘double y1(double)’
aux = n, y1 = 1;
^
user.cpp:14:17: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:18:22: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator*’
y = y0 - c * y1;
^
user.cpp:19:12: error: assignment of function ‘double y0(double)’
y0 = y1, y1 = y;
^
user.cpp:19:12: error: cannot convert ‘double(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:19:21: error: assignment of function ‘double y1(double)’
y0 = y1, y1 = y;
^
user.cpp:19:21: error: cannot convert ‘long long int’ to ‘double(double)throw ()’ in assignment
user.cpp:23:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y0 += aux;
^
user.cpp:23:12: error: assignment of function ‘double y0(double)’
user.cpp:23:12: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:25:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
printf("%lld\n", y0);
^
user.cpp:9:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inversmodular.in", "r", stdin);
^
user.cpp:10:46: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !