Borderou de evaluare (job #2014596)
Utilizator | Data | 24 august 2017 00:37:34 | |
---|---|---|---|
Problema | Caluti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:12: error: ‘i’ was not declared in this scope
ll n,k,p,T[i],t,ans;
^
user.cpp: In function ‘int main()’:
user.cpp:14:41: error: ‘T’ was not declared in this scope
for (int i=1; i<=n; i++) cin >> T[i];
^
user.cpp:15:69: error: ‘T’ was not declared in this scope
for (int i=((!n%k)?k:(n%k)); i<=n; i+=k) ans = max(ans + p, T[i] + p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !