Borderou de evaluare (job #2036806)
Utilizator | Data | 11 octombrie 2017 09:31:29 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:5: error: expected ‘;’ before ‘int’
int n, f, x, a;
^
user.cpp:22:18: error: ‘n’ was not declared in this scope
scanf("%d", &n);
^
user.cpp:26:24: error: ‘f’ was not declared in this scope
scanf("%d%d", &f, &x);
^
user.cpp:26:28: error: ‘x’ was not declared in this scope
scanf("%d%d", &f, &x);
^
user.cpp:27:9: error: ‘a’ was not declared in this scope
a = h(x);
^
user.cpp:19:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.in", "r", stdin);
^
user.cpp:21:19: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int n, f, x, a;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !