Borderou de evaluare (job #2894358)

Utilizator iioaaana777Ghergu Ioana iioaaana777 Data 27 aprilie 2022 18:48:44
Problema Permheap Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:19: warning: extra tokens at end of #include directive 2 | #include <fstream>> | ^ main.cpp:9:8: error: array bound is not an integer constant before ']' token 9 | int x[n], y[n][n], log2[n]; | ^ main.cpp:9:14: error: array bound is not an integer constant before ']' token 9 | int x[n], y[n][n], log2[n]; | ^ main.cpp:9:17: error: array bound is not an integer constant before ']' token 9 | int x[n], y[n][n], log2[n]; | ^ main.cpp:9:26: error: array bound is not an integer constant before ']' token 9 | int x[n], y[n][n], log2[n]; | ^ main.cpp: In function 'int choose(int, int)': main.cpp:20:8: error: 'y' was not declared in this scope 20 | if(y[n][k] != 0) | ^ main.cpp:24:5: error: 'y' was not declared in this scope 24 | y[n][k] = res; | ^ main.cpp: In function 'int left(int)': main.cpp:36:9: error: 'log2' was not declared in this scope 36 | h = log2[n]; | ^~~~ main.cpp: In function 'int nrHeap(int)': main.cpp:50:8: error: 'x' was not declared in this scope 50 | if(x[n] != 0) | ^ main.cpp:55:5: error: 'x' was not declared in this scope 55 | x[n] = res; | ^ main.cpp: In function 'int solutie(int)': main.cpp:70:13: error: 'log2' was not declared in this scope 70 | log2[i] = clog; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?