Borderou de evaluare (job #2590371)
Utilizator | Data | 27 martie 2020 19:49:11 | |
---|---|---|---|
Problema | Numere 7 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int nr_perm(int)':
main.cpp:15:25: error: 'fact' was not declared in this scope
long long f1 = fact(ne);
^
main.cpp: In function 'void fact(int)':
main.cpp:25:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
return rez;
^~~
main.cpp: In function 'int main()':
main.cpp:34:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
scanf("%s", &s);
^
main.cpp:29:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("numere7.in", "r", stdin);
^
main.cpp:30:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("numere7.out", "w", stdout);
^
main.cpp:33:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld ", &n);
^
main.cpp:34:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &s);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !