Borderou de evaluare (job #2032668)
Utilizator | Data | 5 octombrie 2017 15:40:50 | |
---|---|---|---|
Problema | Difprim | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:18: error: expected ‘]’ before numeric constant
#define Nmax 100 001
^
user.cpp:7:16: note: in expansion of macro ‘Nmax’
int nr,nrprime[Nmax],ciur[Nmax],a ,b;
^
user.cpp: In function ‘void Ciur()’:
user.cpp:12:17: error: ‘b’ was not declared in this scope
for (i=3;i<=b;i+=2)
^
user.cpp:13:9: error: ‘ciur’ was not declared in this scope
ciur[i]=1;
^
user.cpp:14:23: error: ‘b’ was not declared in this scope
for (i=2;i*i<=b;i++)
^
user.cpp:15:17: error: ‘ciur’ was not declared in this scope
if (ciur[i])
^
user.cpp:18:16: error: ‘a’ was not declared in this scope
for (i=a;i<=b;i++)
^
user.cpp:18:21: error: ‘b’ was not declared in this scope
for (i=a;i<=b;i++)
^
user.cpp:19:17: error: ‘ciur’ was not declared in this scope
if (ciur[i]==1)
^
user.cpp:22:13: error: ‘nrprime’ was not declared in this scope
nrprime[nr]=i;
^
user.cpp: In function ‘int main()’:
user.cpp:27:10: error: ‘a’ was not declared in this scope
fin>>a>>b;
^
user.cpp:27:13: error: ‘b’ was not declared in this scope
fin>>a>>b;
^
user.cpp:30:15: error: ‘nrprime’ was not declared in this scope
fout<<nrprime[nr-1]<<" "<<nrprime[nr];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !