Borderou de evaluare (job #1894035)

Utilizator alittlezzCazaciuc Valentin alittlezz Data 26 februarie 2017 13:48:37
Problema NumereX Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘ll’ does not name a type ll aint[400005]; ^ user.cpp:10:1: error: ‘ll’ does not name a type ll combine(ll a, ll b){ ^ user.cpp:14:1: error: ‘ll’ does not name a type ll sum(int x){ ^ user.cpp:18:1: error: ‘ll’ does not name a type ll query(int pos, int lf, int rg){ ^ user.cpp: In function ‘void update(int, int, int)’: user.cpp:51:9: error: ‘aint’ was not declared in this scope aint[pos] += 1LL * lz.first * (d * lf + 1LL * d * (d + 1)/2); ^ user.cpp:70:9: error: ‘aint’ was not declared in this scope aint[pos] = combine(aint[2 * pos], aint[2 * pos + 1]); ^ user.cpp:70:61: error: ‘combine’ was not declared in this scope aint[pos] = combine(aint[2 * pos], aint[2 * pos + 1]); ^ user.cpp: In function ‘int main()’: user.cpp:89:43: error: ‘query’ was not declared in this scope printf("%lld\n", query(1, 1, n)); ^ 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("numerex.in", "r", stdin); ^ user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("numerex.out", "w", stdout); ^ user.cpp:79:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &q); ^ user.cpp:82:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &op); ^ user.cpp:84:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &qlf, &qrg, &val); ^ user.cpp:88:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &qlf, &qrg); ^

Ceva nu functioneaza?