Borderou de evaluare (job #981260)
Utilizator | Data | 6 august 2013 16:53:35 | |
---|---|---|---|
Problema | Car | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:1: error: ‘ifstream’ does not name a type
ifstream in("car.in");
^
user.cpp: In function ‘void cit(int&)’:
user.cpp:9:39: error: ‘in’ was not declared in this scope
#define verf ( (++CharB==MaxChar) ? ( in.read(Buffer,MaxChar),CharB=0 ) : (1) )
^
user.cpp:40:95: note: in expansion of macro ‘verf’
for( ; !( (Buffer[ CharB ]>='0' && Buffer[ CharB ]<='9') || ( Buffer[ CharB ] == '-' ) ); verf )
^
user.cpp:9:39: error: ‘in’ was not declared in this scope
#define verf ( (++CharB==MaxChar) ? ( in.read(Buffer,MaxChar),CharB=0 ) : (1) )
^
user.cpp:47:96: note: in expansion of macro ‘verf’
for( a=0; (Buffer[ CharB ]>='0' && Buffer[ CharB ]<='9'); a*=10,a+=( Buffer[ CharB ]-'0'), verf )
^
user.cpp: In function ‘int main()’:
user.cpp:60:23: error: invalid initialization of reference of type ‘int&’ from expression of type ‘bool’
cit(a[i][j]);
^
user.cpp:37:6: error: in passing argument 1 of ‘void cit(int&)’
void cit(int &a)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !