Borderou de evaluare (job #2334305)
Utilizator | Data | 2 februarie 2019 14:53:15 | |
---|---|---|---|
Problema | Cmmdc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:7: error: expected initializer before 'k'
int n k, f[1000001], maxim, f2[1000001];
^
main.cpp: In function 'int main()':
main.cpp:8:12: error: 'n' was not declared in this scope
cin >> n >> k;
^
main.cpp:8:17: error: 'k' was not declared in this scope
cin >> n >> k;
^
main.cpp:13:9: error: 'f' was not declared in this scope
f[a]++;
^
main.cpp:14:17: error: 'maxim' was not declared in this scope
if (a > maxim)
^~~~~
main.cpp:17:26: error: 'maxim' was not declared in this scope
for (int i = 1; i <= maxim; ++i)
^~~~~
main.cpp:19:13: error: 'f2' was not declared in this scope
f2[i] += f[j];
^~
main.cpp:19:22: error: 'f' was not declared in this scope
f2[i] += f[j];
^
main.cpp:21:18: error: 'maxim' was not declared in this scope
for (int i = maxim; i >= 1; --i)
^~~~~
main.cpp:23:13: error: 'f2' was not declared in this scope
if (f2[i] >= k)
^~
main.cpp:30:18: error: 'maxim' was not declared in this scope
for (int i = maxim; i >= 1; --i)
^~~~~
main.cpp:33:20: error: 'f' was not declared in this scope
while (f[i] && k)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !