Borderou de evaluare (job #2468764)
Utilizator | Data | 5 octombrie 2019 22:04:13 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:33:9: error: 'st' was not declared in this scope
while(st<=dr)
^~
main.cpp:33:13: error: 'dr' was not declared in this scope
while(st<=dr)
^~
main.cpp:35:14: error: 'lj' was not declared in this scope
mj=(li+lj)/2;
^~
main.cpp:36:20: error: 'a' was not declared in this scope
if(x<=nrfact(a[mj]))
^
main.cpp:41:9: error: 'n' was not declared in this scope
if(li>n || nrfact(a[li])!=x)
^
main.cpp:41:21: error: 'a' was not declared in this scope
if(li>n || nrfact(a[li])!=x)
^
main.cpp:27:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fact.in","r",stdin);
^
main.cpp:28:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fact.out","w",stdout);
^
main.cpp:30:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !