Borderou de evaluare (job #2316110)
Utilizator | Data | 11 ianuarie 2019 09:41:40 | |
---|---|---|---|
Problema | Numar3 | 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:11:13: error: 'gets' was not declared in this scope
gets(s+1);
^
main.cpp:22:18: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
s[i+1]=NULL;
^~~~
main.cpp:5:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("numar3.in","r",stdin);
^
main.cpp:6:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("numar3.out","w",stdout);
^
main.cpp:10:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !