Borderou de evaluare (job #2427637)

Utilizator rsimion41Simion Razvan rsimion41 Data 1 iunie 2019 13:00:08
Problema Transport Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:7: error: 'i' was not declared in this scope int v[i]; ^ main.cpp: In function 'bool incap(int)': main.cpp:15:21: error: 'n' was not declared in this scope for (int i=0; i<n; i++) ^ main.cpp:17:13: error: 'v' was not declared in this scope if (v[i]>c) ^ main.cpp:21:13: error: 'v' was not declared in this scope if (v[i]>cc) ^ main.cpp:26:13: error: 'v' was not declared in this scope cc-=v[i]; ^ main.cpp:28:18: error: 'k' was not declared in this scope return (nrt<=k); ^ main.cpp: In function 'int main()': main.cpp:33:11: error: 'n' was not declared in this scope in >> n >> k; ^ main.cpp:33:16: error: 'k' was not declared in this scope in >> n >> k; ^ main.cpp:36:15: error: 'v' was not declared in this scope in >> v[i]; ^ Non zero exit status: 1

Ceva nu functioneaza?