Borderou de evaluare (job #1753769)

Utilizator tanyafTanya Foransbergher tanyaf Data 7 septembrie 2016 10:04:35
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:20: error: expected ‘;’ before ‘.’ token using namespace std.; ^ user.cpp:3:20: error: expected unqualified-id before ‘.’ token user.cpp:6:11: error: expected ‘]’ before numeric constant int a[100 010],b[100 010],M,Max,i,p,j,v[100 010],n; ^ 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:11:12: error: ‘v’ was not declared in this scope f>>v[i]; ^ user.cpp:12:9: error: ‘a’ was not declared in this scope a[n]=1; ^ user.cpp:13:9: error: ‘M’ was not declared in this scope M=0; ^ user.cpp:14:9: error: ‘i’ was not declared in this scope for(i=n-1;i>=1;i--) ^ user.cpp:16:9: error: ‘Max’ was not declared in this scope Max=0; ^ user.cpp:17:13: error: ‘j’ was not declared in this scope for(j=i+1;j<=n;j++) ^ user.cpp:18:16: error: ‘v’ was not declared in this scope if(v[i]<v[j]&&a[j]>Max) ^ user.cpp:21:13: error: ‘b’ was not declared in this scope b[j]=j; ^ user.cpp:27:13: error: ‘p’ was not declared in this scope p=i; ^ user.cpp:31:14: error: ‘v’ was not declared in this scope g<<'\n'<<v[p]<<" "; ^ user.cpp:31:16: error: ‘p’ was not declared in this scope g<<'\n'<<v[p]<<" "; ^ user.cpp:33:9: error: ‘i’ was not declared in this scope for(i=p+1;i<=n;i++) ^

Ceva nu functioneaza?