Borderou de evaluare (job #1291569)
Utilizator | Data | 12 decembrie 2014 22:54:55 | |
---|---|---|---|
Problema | Cifra | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:13: error: variable ‘std::ifstream fin’ has initializer but incomplete type
ifstream fin("cifra.in");
^
user.cpp:6:14: error: variable ‘std::ofstream fout’ has initializer but incomplete type
ofstream fout("cifra.out");
^
user.cpp: In function ‘int main()’:
user.cpp:13:10: error: ‘k’ was not declared in this scope
k=pow(i*i);
^
user.cpp:13:19: error: no matching function for call to ‘pow(int)’
k=pow(i*i);
^
user.cpp:13:19: note: candidates are:
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:155:1: note: double pow(double, double)
__MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
/usr/include/i386-linux-gnu/bits/mathcalls.h:155:1: note: candidate expects 2 arguments, 1 provided
In file included from user.cpp:2:0:
/usr/include/c++/4.8/cmath:434:5: note: template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)
pow(_Tp __x, _Up __y)
^
/usr/include/c++/4.8/cmath:434:5: note: template argument deduction/substitution failed:
user.cpp:13:19: note: candidate expects 2 arguments, 1 provided
k=pow(i*i);
^
In file included from user.cpp:2:0:
/usr/include/c++/4.8/cmath:411:3: note: constexpr long double std::pow(long double, long double)
pow(long double __x, long double __y)
^
/usr/include/c++/4.8/cmath:411:3: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.8/cmath:407:3: note: constexpr float std::pow(float, float)
pow(float __x, float __y)
^
/usr/include/c++/4.8/cmath:407:3: note: candidate expects 2 arguments, 1 provided
user.cpp:14:14: error: ‘k’ was not declared in this scope
s=s+k;
^
user.cpp:15:9: error: ‘c’ was not declared in this scope
c=s%10;
^
user.cpp: At global scope:
user.cpp:26:5: error: expected unqualified-id before ‘return’
return 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !