Borderou de evaluare (job #2831805)

Utilizator Vlad_AnicaAnica-Popa Vlad-Ioan Vlad_Anica Data 12 ianuarie 2022 10:39:14
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:1: error: expected initializer before 'int' 11 | int getBlock(int pos); | ^~~ main.cpp: In function 'int main()': main.cpp:20:5: error: 'fin' was not declared in this scope 20 | fin >> n; | ^~~ main.cpp:26:33: error: 'pos' was not declared in this scope; did you mean 'lpos'? 26 | blockind = getBlock(pos); | ^~~ | lpos main.cpp:26:24: error: 'getBlock' was not declared in this scope 26 | blockind = getBlock(pos); | ^~~~~~~~ main.cpp:29:25: error: expected primary-expression before ')' token 29 | while (x >= ) | ^ main.cpp:31:9: error: expected primary-expression before '}' token 31 | } | ^ main.cpp:32:9: error: 'fout' was not declared in this scope 32 | fout << j + 1 << " "; | ^~~~ main.cpp:19:15: warning: unused variable 'k' [-Wunused-variable] 19 | int i, j, k, n, r, x, blockind, fpos, lpos, lastblock; | ^ main.cpp:19:49: warning: unused variable 'lastblock' [-Wunused-variable] 19 | int i, j, k, n, r, x, blockind, fpos, lpos, lastblock; | ^~~~~~~~~ main.cpp: In function 'int rmv(int)': main.cpp:51:5: error: 'blocks' was not declared in this scope; did you mean 'block'? 51 | blocks[block]--; | ^~~~~~ | block main.cpp:53:1: warning: no return statement in function returning non-void [-Wreturn-type] 53 | } | ^ main.cpp: In function 'void initBlocks(int)': main.cpp:58:9: error: 'blocks' was not declared in this scope; did you mean 'clock'? 58 | blocks[i] = BLOCKSIZE + 1; | ^~~~~~ | clock main.cpp:59:5: error: 'blocks' was not declared in this scope; did you mean 'clock'? 59 | blocks[mxBlock] = n - (i << BLOCKBITS); | ^~~~~~ | clock Non zero exit status: 1

Ceva nu functioneaza?