Borderou de evaluare (job #1364468)
Utilizator | Data | 27 februarie 2015 18:06:04 | |
---|---|---|---|
Problema | Factorial | 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:6:16: error: ‘Nmax’ was not declared in this scope
{int x,f,ls,ld=Nmax,g=0,p;
^
user.cpp:11:5: error: ‘n’ was not declared in this scope
n=(ls+ld)/2;
^
user.cpp:19:7: error: ‘p’ was not declared in this scope
if(x==p)
^
user.cpp:21:5: error: ‘cout’ was not declared in this scope
cout<<n;g=1;}
^
user.cpp:21:14: error: no match for ‘operator=’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
cout<<n;g=1;}
^
user.cpp:21:14: note: candidate is:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:599:11: note: std::basic_ofstream<char>& std::basic_ofstream<char>::operator=(const std::basic_ofstream<char>&) <deleted>
class basic_ofstream : public basic_ostream<_CharT,_Traits>
^
/usr/include/c++/4.8/fstream:599:11: note: no known conversion for argument 1 from ‘int’ to ‘const std::basic_ofstream<char>&’
user.cpp:25:4: error: ‘p’ was not declared in this scope
g<<p;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !