Borderou de evaluare (job #1293111)
Utilizator | Data | 15 decembrie 2014 12:58:55 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:20: error: expected ‘]’ before ‘;’ token
#define nmax 100009;
^
user.cpp:11:7: note: in expansion of macro ‘nmax’
int v[nmax],q[nmax],p[nmax],n,L,sol[nmax];
^
user.cpp:11:11: error: expected unqualified-id before ‘]’ token
int v[nmax],q[nmax],p[nmax],n,L,sol[nmax];
^
user.cpp:11:19: error: expected unqualified-id before ‘]’ token
int v[nmax],q[nmax],p[nmax],n,L,sol[nmax];
^
user.cpp:11:27: error: expected unqualified-id before ‘]’ token
int v[nmax],q[nmax],p[nmax],n,L,sol[nmax];
^
user.cpp:11:41: error: expected unqualified-id before ‘]’ token
int v[nmax],q[nmax],p[nmax],n,L,sol[nmax];
^
user.cpp: In function ‘void read()’:
user.cpp:16:11: error: ‘n’ was not declared in this scope
in >> n;
^
user.cpp:18:15: error: ‘v’ was not declared in this scope
in >> v[i];
^
user.cpp: In function ‘int bin_search(int, int, int)’:
user.cpp:30:18: error: ‘q’ was not declared in this scope
if(val > q[mij])
^
user.cpp:35:15: error: ‘L’ was not declared in this scope
if(left > L)
^
user.cpp:37:9: error: ‘q’ was not declared in this scope
q[++L] = val;
^
user.cpp:41:9: error: ‘q’ was not declared in this scope
q[left] = val;
^
user.cpp: In function ‘void buildPQ()’:
user.cpp:48:5: error: ‘q’ was not declared in this scope
q[1] = v[1];
^
user.cpp:48:12: error: ‘v’ was not declared in this scope
q[1] = v[1];
^
user.cpp:49:5: error: ‘p’ was not declared in this scope
p[1] = 1;
^
user.cpp:50:5: error: ‘L’ was not declared in this scope
L = 1;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !