Borderou de evaluare (job #1347994)
Utilizator | Data | 19 februarie 2015 13:46:45 | |
---|---|---|---|
Problema | Perle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘const’
const int NMAX=10005;
^
user.cpp:9:11: error: ‘NMAX’ was not declared in this scope
int t,n,a[NMAX],b[NMAX];
^
user.cpp:9:19: error: ‘NMAX’ was not declared in this scope
int t,n,a[NMAX],b[NMAX];
^
user.cpp: In function ‘bool Solve()’:
user.cpp:16:13: error: ‘b’ was not declared in this scope
if (b[i]<=3)
^
user.cpp:18:27: error: ‘a’ was not declared in this scope
if (b[i]!=a[i]) return 0;
^
user.cpp:13:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,aux,len=1;
^
user.cpp: In function ‘int main()’:
user.cpp:47:37: error: ‘a’ was not declared in this scope
for (i=1;i<=n;i++) fin>>a[i];
^
user.cpp:51:13: error: ‘b’ was not declared in this scope
b[0]=1;b[1]=5;
^
user.cpp: In function ‘bool Solve()’:
user.cpp:37:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !