Borderou de evaluare (job #1311326)
Utilizator | Data | 7 ianuarie 2015 23:15:03 | |
---|---|---|---|
Problema | Bunicu | 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:14:13: error: ‘seen’ was not declared in this scope
seen[i] = 0;
^
user.cpp:16:18: error: ‘x’ was not declared in this scope
gets(x + 1);
^
user.cpp:23:13: error: ‘seen’ was not declared in this scope
seen[ret] = 1;
^
user.cpp:26:18: error: ‘seen’ was not declared in this scope
if (!seen[i]) {
^
user.cpp:4:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bunicu.in", "r", stdin);
^
user.cpp:5:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bunicu.out", "w", stdout);
^
user.cpp:8:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !