Borderou de evaluare (job #2544102)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 11 februarie 2020 19:30:47
Problema Diapazon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: expected ',' or ';' before 'const' const int MAX = 1e6; ^~~~~ main.cpp:38:10: error: 'MAX' was not declared in this scope int arb[(MAX + 3) * 4]; ^~~ main.cpp:39:11: error: 'MAX' was not declared in this scope int lazy[(MAX + 3) * 4]; ^~~ main.cpp:40:10: error: 'MAX' was not declared in this scope int len[(MAX + 3) * 4]; ^~~ main.cpp: In function 'void reset(long long int, long long int, long long int)': main.cpp:44:2: error: 'arb' was not declared in this scope arb[pos] = 0; ^~~ main.cpp:45:2: error: 'lazy' was not declared in this scope lazy[pos] = 1; ^~~~ main.cpp:46:2: error: 'len' was not declared in this scope len[pos] = 0; ^~~ main.cpp: In function 'void get(long long int, long long int, long long int)': main.cpp:59:2: error: 'arb' was not declared in this scope arb[pos] *= lazy[pos]; ^~~ main.cpp:59:14: error: 'lazy' was not declared in this scope arb[pos] *= lazy[pos]; ^~~~ main.cpp:62:2: error: 'len' was not declared in this scope len[pos] *= lazy[pos]; ^~~ main.cpp: In function 'void update(long long int, long long int, long long int, long long int, long long int, long long int)': main.cpp:79:5: error: 'lazy' was not declared in this scope if(lazy[pos] != 1) ^~~~ main.cpp:86:3: error: 'lazy' was not declared in this scope lazy[pos] *= val; ^~~~ main.cpp:101:5: error: 'lazy' was not declared in this scope if(lazy[pos * 2] != 1) ^~~~ main.cpp:104:5: error: 'lazy' was not declared in this scope if(lazy[pos * 2 + 1] != 1) ^~~~ main.cpp:107:2: error: 'arb' was not declared in this scope arb[pos] = arb[pos * 2] + arb[pos * 2 + 1]; ^~~ main.cpp:110:2: error: 'len' was not declared in this scope len[pos] = len[pos * 2] + len[pos * 2 + 1]; Non zero exit status: 1

Ceva nu functioneaza?