#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #40377433 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 668 B |
Data încărcării | 07 Decembrie 2022, 11:20 | Scor / rezultat | Eroare de compilare |
gasti.cpp:6:1: error: expected ',' or ';' before 'int' int cc,n,m,x,viz[101],i,plecare,y,a[101][101],cardcomp[100]; ^ gasti.cpp: In function 'void trav_ad(int)': gasti.cpp:9:5: error: 'viz' was not declared in this scope viz[nod]=1; ^ gasti.cpp:10:5: error: 'cardcomp' was not declared in this scope cardcomp[cc]++; ^ gasti.cpp:10:14: error: 'cc' was not declared in this scope cardcomp[cc]++; ^ gasti.cpp:13:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gasti.cpp:14:20: error: 'a' was not declared in this scope if(viz[i]==0&&a[nod][i]==1) ^ gasti.cpp: In function 'int main()': gasti.cpp:18:6: error: 'n' was not declared in this scope { f>>n>>m; ^ gasti.cpp:18:9: error: 'm' was not declared in this scope { f>>n>>m; ^ gasti.cpp:19:6: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ gasti.cpp:20:6: error: 'x' was not declared in this scope {f>>x>>y; ^ gasti.cpp:20:9: error: 'y' was not declared in this scope {f>>x>>y; ^ gasti.cpp:21:3: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1;} ^ gasti.cpp:22:7: error: 'plecare' was not declared in this scope for(plecare=1;plecare<=n;plecare++) ^ gasti.cpp:23:5: error: 'viz' was not declared in this scope if(viz[plecare]==0) ^ gasti.cpp:24:4: error: 'cc' was not declared in this scope { cc++; ^ gasti.cpp:30:4: error: 'cc' was not declared in this scope g<<cc<<" " <<cc; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.