Borderou de evaluare (job #2358814)
Utilizator | Data | 28 februarie 2019 13:01:54 | |
---|---|---|---|
Problema | Cifre 5 | 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:16:9: error: expected ';' before 'while'
while (c!='\n') {
^~~~~
main.cpp:9:9: warning: unused variable 'i' [-Wunused-variable]
int i,n,nr=0,p;
^
main.cpp:9:11: warning: unused variable 'n' [-Wunused-variable]
int i,n,nr=0,p;
^
main.cpp:11:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre5.in","r",stdin);
^
main.cpp:12:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre5.out","w",stdout);
^
main.cpp:13:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &p);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !