#3423
ctcmax
Se dă un graf orientat cu n
vârfuri și m
arce prin lista arcelor. Afișați componentele tare conexe formate din număr maxim de vârfuri.
Problema | ctcmax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47943497 | Utilizator | |
Fișier | ctcmax.cpp | Dimensiune | 2.27 KB |
Data încărcării | 10 Ianuarie 2024, 20:00 | Scor / rezultat | Eroare de compilare |
ctcmax.cpp:56:6: error: stray '#' in program }#include <iostream> ^ ctcmax.cpp: In function 'int main()': ctcmax.cpp:56:7: error: 'include' was not declared in this scope }#include <iostream> ^ ctcmax.cpp:56:24: error: expected primary-expression before '>' token }#include <iostream> ^ ctcmax.cpp:58:1: error: expected primary-expression before 'using' using namespace std; ^ ctcmax.cpp:58:1: error: expected ';' before 'using' ctcmax.cpp:60:16: error: a function-definition is not allowed here before '{' token void dus(int p){ ^ ctcmax.cpp:59:5: warning: unused variable 'n' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:7: warning: unused variable 'm' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:9: warning: unused variable 'i' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:11: warning: unused variable 'j' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:13: warning: unused variable 'a' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:25: warning: unused variable 'maxi' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:30: warning: unused variable 'v1' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:38: warning: unused variable 'v2' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:46: warning: unused variable 'v' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:53: warning: unused variable 'nc' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:56: warning: unused variable 'k' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:59:58: warning: unused variable 'f' [-Wunused-variable] int n,m,i,j,a[102][102],maxi,v1[102],v2[102],v[102],nc,k,f[102]; ^ ctcmax.cpp:111:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ctcmax 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ă.