Borderou de evaluare (job #2389937)
Utilizator | Data | 27 martie 2019 17:13:52 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void rez(int)':
main.cpp:11:9: error: 'i' was not declared in this scope
for(i=1;i<=nr;i++)
^
main.cpp:12:9: error: 'd' was not declared in this scope
d[i]=inf,c[i]=0;
^
main.cpp:12:14: error: 'inf' was not declared in this scope
d[i]=inf,c[i]=0;
^~~
main.cpp:12:18: error: 'c' was not declared in this scope
d[i]=inf,c[i]=0;
^
main.cpp:13:5: error: 'd' was not declared in this scope
d[nr]=0;
^
main.cpp:14:5: error: 'q' was not declared in this scope
q.push(make_pair(0,nr));
^
main.cpp:17:27: error: 'f' was not declared in this scope
while(!q.empty()&&f[q.top().second]==1) q.pop();
^
main.cpp:19:9: error: 'nod' was not declared in this scope
nod=q.top().second;val=q.top().first;f[nod]=1;
^~~
main.cpp:19:28: error: 'val' was not declared in this scope
nod=q.top().second;val=q.top().first;f[nod]=1;
^~~
main.cpp:19:46: error: 'f' was not declared in this scope
nod=q.top().second;val=q.top().first;f[nod]=1;
^
main.cpp:20:12: error: 't' was not declared in this scope
if(t[nod]==nr) c[nod]=++z;
^
main.cpp:20:24: error: 'c' was not declared in this scope
if(t[nod]==nr) c[nod]=++z;
^
main.cpp:21:21: error: 'v' was not declared in this scope
for(auto it:v[nod])
^
main.cpp:26:17: error: 't' was not declared in this scope
t[it.second]=nod;c[it.second]=c[nod];
^
main.cpp:26:34: error: 'c' was not declared in this scope
t[it.second]=nod;c[it.second]=c[nod];
^
main.cpp: In function 'int main()':
main.cpp:36:10: error: 'n' was not declared in this scope
fin>>n>>m;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !