Borderou de evaluare (job #1196387)
Utilizator | Data | 8 iunie 2014 13:25:42 | |
---|---|---|---|
Problema | Sliding Window | Status | done |
Runda | Algoritmiada 2014 - Runda 3, Clasele 9-10 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:5: error: expected ‘,’ or ‘;’ before ‘unsigned’
unsigned long n,d,i,j;
^~~~~~~~
user.cpp:9:8: error: ‘n’ was not declared in this scope
f>>n>>d;
^
user.cpp:9:11: error: ‘d’ was not declared in this scope
f>>n>>d;
^
user.cpp:11:10: error: ‘i’ was not declared in this scope
for (i=1;i<=n;i++)
^
user.cpp:12:9: error: ‘cin’ was not declared in this scope
cin>>a[i];
^~~
user.cpp:12:14: error: ‘a’ was not declared in this scope
cin>>a[i];
^
user.cpp:13:10: error: ‘i’ was not declared in this scope
for (i=1;i<=n;i++)
^
user.cpp:15:13: error: ‘j’ was not declared in this scope
for(j=i+1;j<=i+d;j++)
^
user.cpp:16:17: error: ‘a’ was not declared in this scope
if (abs(a[i]-a[j])<k) k=abs(a[i]-a[j]);
^
user.cpp:10:29: warning: unused variable ‘x’ [-Wunused-variable]
int a[n+1],k=1000000000,x;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !