Borderou de evaluare (job #1291570)
| Utilizator | Data | 12 decembrie 2014 22:56:45 | |
|---|---|---|---|
| Problema | Cifra | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:6: error: ‘cin’ was not declared in this scope
cin>>t;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream: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:16:12: error: ‘cout’ was not declared in this scope
cout<<c;
^
user.cpp: At global scope:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
