Borderou de evaluare (job #2836371)

Utilizator mihnea.cazan15mihnea cazan mihnea.cazan15 Data 20 ianuarie 2022 11:22:25
Problema Bob Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:37:21: error: 'k' was not declared in this scope 37 | for(int i=1; i<=k; i++) | ^ main.cpp:39:21: error: 'n' was not declared in this scope 39 | for(int i=1; i<=n; i++) | ^ main.cpp:41:25: error: 'k' was not declared in this scope 41 | for(int j=1; j<=k; j++) | ^ main.cpp:47:25: error: 'k' was not declared in this scope 47 | for(int j=1; j<=k; j++) | ^ main.cpp:49:17: error: 'k' was not declared in this scope 49 | if(cnt==k) | ^ main.cpp: In function 'void solve2()': main.cpp:59:13: error: 'n' was not declared in this scope 59 | int poz=n; | ^ main.cpp:63:24: error: 'k' was not declared in this scope 63 | for(int j=1;j<=k;j++) | ^ main.cpp:68:16: error: 'k' was not declared in this scope 68 | if(cnt<k) | ^ main.cpp:69:12: error: 'e' was not declared in this scope 69 | e[i]=poz+1; | ^ main.cpp:72:13: error: 'e' was not declared in this scope 72 | e[i]=poz--; | ^ main.cpp:78:14: error: 'e' was not declared in this scope 78 | cin>>e[i]; | ^ main.cpp: In function 'int main()': main.cpp:94:13: error: 'solve1' was not declared in this scope; did you mean 'solve2'? 94 | solve1(); | ^~~~~~ | solve2 Non zero exit status: 1

Ceva nu functioneaza?