Borderou de evaluare (job #2093686)
Utilizator | Data | 24 decembrie 2017 12:56:24 | |
---|---|---|---|
Problema | Autobuze | 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:47:9: error: ‘f’ was not declared in this scope
f[a[i]] = 1;
^
user.cpp:56:20: error: ‘f’ was not declared in this scope
if(f[d1]){
^
user.cpp:63:24: error: ‘f’ was not declared in this scope
if(f[d1]){
^
user.cpp:52:14: warning: unused variable ‘ok’ [-Wunused-variable]
bool ok = 0;
^
user.cpp:39:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("autobuze.in", "r", stdin);
^
user.cpp:40:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("autobuze.out", "w", stdout);
^
user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !