Borderou de evaluare (job #1890659)
Utilizator | Data | 23 februarie 2017 13:25:47 | |
---|---|---|---|
Problema | Numere8 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:10:11: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
f>>v;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = int [100]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp: In function ‘void generare(int)’:
user.cpp:37:10: error: incompatible types in assignment of ‘int’ to ‘int [100]’
a=0;
^
user.cpp:39:10: error: incompatible types in assignment of ‘int’ to ‘int [100]’
a=1;
^
user.cpp:41:10: error: incompatible types in assignment of ‘int’ to ‘int [100]’
a=2;
^
user.cpp: In function ‘void afisare()’:
user.cpp:52:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(c==1)
^
user.cpp:56:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(c==2)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !