Borderou de evaluare (job #1029401)
Utilizator | Data | 15 noiembrie 2013 14:42:48 | |
---|---|---|---|
Problema | Melodii | Status | done |
Runda | FMI No Stress 4 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cit(int&)’:
user.cpp:10:54: error: ‘DIM’ was not declared in this scope
while(buff[poz]<'0' || buff[poz]>'9'){if(++poz==DIM) in.read(buff,DIM),poz=0;}
^
user.cpp:11:87: error: ‘DIM’ was not declared in this scope
while(buff[poz]>='0' && buff[poz]<='9'){ numar=numar*10+buff[poz]-'0'; if(++poz==DIM)in.read(buff,DIM),poz=0;}
^
user.cpp: In function ‘int main()’:
user.cpp:35:14: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’
cit(b);
^
user.cpp:8:6: error: in passing argument 1 of ‘void cit(int&)’
void cit(int &numar){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !