Borderou de evaluare (job #1803799)
Utilizator | Data | 11 noiembrie 2016 21:01:09 | |
---|---|---|---|
Problema | Centru | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int pos(int)’:
user.cpp:45:26: error: ‘abs’ was not declared in this scope
int V, ABS = abs(x - i);
^
user.cpp: In function ‘int main()’:
user.cpp:76:25: error: ‘memset’ was not declared in this scope
memset(d, -1, sizeof(d));
^
user.cpp:72:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("centru.in", "rt", stdin);
^
user.cpp:73:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("centru.out", "wt", stdout);
^
user.cpp:75:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &K);
^
user.cpp:80:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !