Borderou de evaluare (job #1297914)
Utilizator | Data | 22 decembrie 2014 13:54:19 | |
---|---|---|---|
Problema | Sarac Sau Rege | Status | done |
Runda | Happy Birthday Infoarena 2014 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void update_Aint(int, int, int, int, int)’:
user.cpp:19:38: error: ‘max’ was not declared in this scope
Aint[node] = max(Aint[ls], Aint[rs]);
^
user.cpp: In function ‘int query_Aint(int, int, int, int, int)’:
user.cpp:32:53: error: ‘max’ was not declared in this scope
ret = max(ret, query_Aint(rs, m + 1, right, x, y));
^
user.cpp: In function ‘int main()’:
user.cpp:58:2: error: ‘f’ was not declared in this scope
f.close();
^
user.cpp:59:2: error: ‘g’ was not declared in this scope
g.close();
^
user.cpp:39:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.in", "r", stdin);
^
user.cpp:40:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.out", "w", stdout);
^
user.cpp:42:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:46:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:54:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !