Borderou de evaluare (job #1982950)
Utilizator | Data | 20 mai 2017 18:11:03 | |
---|---|---|---|
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:5:42: error: expected ‘]’ before ‘}’ token
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:16: warning: unused variable ‘i’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:18: warning: unused variable ‘j’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:20: warning: unused variable ‘ma’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:23: warning: unused variable ‘me1’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:27: warning: unused variable ‘me2’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:31: warning: unused variable ‘d’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:5:33: warning: unused variable ‘n’ [-Wunused-variable]
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp: At global scope:
user.cpp:5:43: error: mixing declarations and function-definitions is forbidden
{int long long i,j,ma,me1,me2,d,n,a[10000},b[10000],c[10000];
^
user.cpp:8:1: error: ‘f’ does not name a type
f>>n;
^
user.cpp:9:1: error: expected unqualified-id before ‘for’
for (i=1;i<=n;i++) f>>a[i];
^
user.cpp:9:10: error: ‘i’ does not name a type
for (i=1;i<=n;i++) f>>a[i];
^
user.cpp:9:15: error: ‘i’ does not name a type
for (i=1;i<=n;i++) f>>a[i];
^
user.cpp:10:1: error: expected unqualified-id before ‘for’
for (i=1;i<=n;i++) b[i]=1;
^
user.cpp:10:10: error: ‘i’ does not name a type
for (i=1;i<=n;i++) b[i]=1;
^
user.cpp:10:15: error: ‘i’ does not name a type
for (i=1;i<=n;i++) b[i]=1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !