Borderou de evaluare (job #1941292)
Utilizator | Data | 27 martie 2017 09:52:26 | |
---|---|---|---|
Problema | Comisia | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:8: error: ‘n’ was not declared in this scope
f>>n;
^
user.cpp:10:9: error: ‘i’ was not declared in this scope
for(i=1; i<=n; i++)
^
user.cpp:12:12: error: ‘v’ was not declared in this scope
f>>v[i];
^
user.cpp:13:9: error: ‘rmq’ was not declared in this scope
rmq[0][i]=v[i];
^
user.cpp:15:9: error: ‘i’ was not declared in this scope
for(i=1; i<=n; i++)
^
user.cpp:17:12: error: ‘s’ was not declared in this scope
f>>s[i];
^
user.cpp:20:9: error: ‘p’ was not declared in this scope
for(p=2; p<=n; p*=2)
^
user.cpp:22:9: error: ‘a’ was not declared in this scope
a[p]++;
^
user.cpp:24:9: error: ‘i’ was not declared in this scope
for(i=1; i<=n; i++) a[i]+=a[i-1];
^
user.cpp:24:25: error: ‘a’ was not declared in this scope
for(i=1; i<=n; i++) a[i]+=a[i-1];
^
user.cpp:25:5: error: ‘p’ was not declared in this scope
p=a[n];
^
user.cpp:25:7: error: ‘a’ was not declared in this scope
p=a[n];
^
user.cpp:26:5: error: ‘put’ was not declared in this scope
put=2;
^
user.cpp:27:9: error: ‘i’ was not declared in this scope
for(i=1; i<=p; i++)
^
user.cpp:29:13: error: ‘j’ was not declared in this scope
for(j=1; j<=n-put+1; j++)
^
user.cpp:31:13: error: ‘rmq’ was not declared in this scope
rmq[i][j]=max(rmq[i-1][j],rmq[i-1][j+put/2]);
^
user.cpp:35:9: error: ‘i’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !