Borderou de evaluare (job #1484200)
Utilizator | Data | 10 septembrie 2015 16:07:29 | |
---|---|---|---|
Problema | Text | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:8: error: ‘in’ was not declared in this scope
fgets(in, MAX, stdin);
^
user.cpp:7:12: error: ‘MAX’ was not declared in this scope
fgets(in, MAX, stdin);
^
user.cpp:9:15: warning: unused variable ‘i’ [-Wunused-variable]
unsigned int i = 0, wlen = 0, wcount = 0;
^
user.cpp:4:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("text.in", "r", stdin);
^
user.cpp:5:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("text.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !