Borderou de evaluare (job #1861339)
Utilizator | Data | 28 ianuarie 2017 19:50:36 | |
---|---|---|---|
Problema | Evaluare 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘longlong inv(longlong)’:
user.cpp:11:10: error: expected unqualified-id before ‘=’ token
long =long ret=0;
^
user.cpp:14:9: error: ‘ret’ was not declared in this scope
ret=1ULL*(ret*10+nr%10);
^
user.cpp:17:12: error: ‘ret’ was not declared in this scope
return ret;
^
user.cpp: In function ‘longlong lgput(longlong, longlong)’:
user.cpp:23:10: error: expected unqualified-id before ‘=’ token
long =long pp=1,tt=baza,rez=1;
^
user.cpp:24:11: error: ‘pp’ was not declared in this scope
while(pp<=putere)
^
user.cpp:26:33: error: ‘rez’ was not declared in this scope
if(1ULL*(pp&putere)!=0) rez=1ULL*(rez*tt);
^
user.cpp:26:47: error: ‘tt’ was not declared in this scope
if(1ULL*(pp&putere)!=0) rez=1ULL*(rez*tt);
^
user.cpp:27:9: error: ‘tt’ was not declared in this scope
tt=1ULL*(tt*tt);
^
user.cpp:30:12: error: ‘rez’ was not declared in this scope
return rez;
^
user.cpp: In function ‘longlong inv(longlong)’:
user.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘longlong lgput(longlong, longlong)’:
user.cpp:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}//VERFIFICA!!
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !