Borderou de evaluare (job #2801942)

Utilizator NutaAlexandruASN49K NutaAlexandru Data 17 noiembrie 2021 11:06:19
Problema Vila 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:14: error: expected ';' before 'int' 11 | cin.tie() | ^ | ; 12 | int n, k; | ~~~ main.cpp:14:19: error: 'n' was not declared in this scope 14 | scanf("%d%d",&n,&k) | ^ main.cpp:14:22: error: 'k' was not declared in this scope 14 | scanf("%d%d",&n,&k) | ^ main.cpp:19:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] 19 | scanf("%d",v[i]); | ~^ ~~~~ | | | | int* int Non zero exit status: 1

Ceva nu functioneaza?