Borderou de evaluare (job #948216)

Utilizator lica.iosifLica Iosif lica.iosif Data 9 mai 2013 18:21:04
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:8:27: error: expected ‘]’ before numeric constant long long m=0,n,a[100 001],l[100 001],ma,i,j; ^ user.cpp:10:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:11:13: error: ‘a’ was not declared in this scope {f>>a[i];l[i]=1;} ^ user.cpp:11:18: error: ‘l’ was not declared in this scope {f>>a[i];l[i]=1;} ^ user.cpp:16:9: error: ‘i’ was not declared in this scope for(i=n-1;i>=1;i--) ^ user.cpp:18:13: error: ‘ma’ was not declared in this scope ma=0; ^ user.cpp:19:17: error: ‘j’ was not declared in this scope for(j=i+1;j<=n;j++) ^ user.cpp:20:22: error: ‘l’ was not declared in this scope if(ma<l[j]&&a[i]<a[j]) ^ user.cpp:20:28: error: ‘a’ was not declared in this scope if(ma<l[j]&&a[i]<a[j]) ^ user.cpp:22:13: error: ‘l’ was not declared in this scope l[i]=ma+1; ^ user.cpp:25:5: error: ‘ma’ was not declared in this scope ma=0; ^ user.cpp:26:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:27:15: error: ‘l’ was not declared in this scope if(ma<l[i]) ma=l[i]; ^ user.cpp:29:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:31:20: error: ‘l’ was not declared in this scope if(ma==l[i]) {g<<a[i]<<" ";ma--;} ^ user.cpp:31:30: error: ‘a’ was not declared in this scope if(ma==l[i]) {g<<a[i]<<" ";ma--;} ^ user.cpp:8:15: warning: unused variable ‘m’ [-Wunused-variable]

Ceva nu functioneaza?