Borderou de evaluare (job #1774098)

Utilizator akaprosAna Kapros akapros Data 8 octombrie 2016 15:58:43
Problema Walls Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: ‘ll’ does not name a type ll sum[maxN]; ^ user.cpp: In function ‘int bs(int)’: user.cpp:15:27: error: ‘sum’ was not declared in this scope if (i + p <= n && sum[i + p] <= 1LL * x) ^ user.cpp: In function ‘void read()’: user.cpp:69:9: error: ‘sum’ was not declared in this scope sum[i] = sum[i - 1] + 1LL * w[i] + 1LL; ^ user.cpp: In function ‘void write()’: user.cpp:90:30: error: ‘sum’ was not declared in this scope printf("HIT %d %d ", sum[x] - sub, x); ^ user.cpp: In function ‘void read()’: user.cpp:64:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("walls.in", "r", stdin); ^ user.cpp:65:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:68:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &w[i], &h[i]); ^ user.cpp: In function ‘void write()’: user.cpp:76:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("walls.out", "w", stdout); ^ user.cpp:77:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ user.cpp:81:31: 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?