fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define INF 2000000000
  4. typedef long long int ll;
  5. typedef pair<ll,ll> ii;
  6. typedef pair<ii,ll> iii;
  7. typedef vector<ll> vi;
  8. typedef vector<ii> vii;
  9. #define getbit(n,i) (((n)&(1<<(i)))!=0)
  10. #define setbit0(n,i) ((n)&(~(1<<(i))))
  11. #define setbit1(n,i) ((n)|(1<<(i)))
  12. #define togglebit(n,i) ((n)^(1<<(i)))
  13. #define lastone(n) ((n)&(-(n)))
  14. #define read freopen("debug\\in.txt","r",stdin)
  15. #define write freopen("debug\\out.txt","w",stdout)
  16. #define fi first
  17. #define se second
  18. #define getI(a) scanf("%d",&a)
  19. #define getII(a,b) scanf("%d%d",&a,&b)
  20. #define PI (acos(-1))
  21. #define fastread ios_base::sync_with_stdio(false);cin.tie(NULL)
  22. #define mod (1000000007)
  23. #define asz 500005
  24. #define pb push_back
  25. #define ppf pop_front
  26. #define ppb pop_back
  27. #define pf push_front
  28. int chokka[7][7];
  29. int guti[8];
  30. queue<int>q;
  31. vector<pair<int,int> >v;
  32. int main()
  33. {
  34. fastread;
  35. int n,i,j,k,l,m,a,b,c,d,e,f,g,h;
  36. cin>>n>>m;
  37. for(i=1;i<=m;i++)
  38. {
  39. cin>>k>>l;
  40. v.pb(make_pair(k,l));
  41. }
  42. int maxi=0;
  43.  
  44.  
  45. for(a=1;a<=6;a++)
  46. {
  47. guti[1]=a;
  48. for(b=1;b<=6;b++)
  49. {
  50. guti[2]=b;
  51. for(c=1;c<=6;c++)
  52. {
  53. guti[3]=c;
  54. for(d=1;d<=6;d++)
  55. {
  56. guti[4]=d;
  57. for(e=1;e<=6;e++)
  58. {
  59. guti[5]=e;
  60. for(f=1;f<=6;f++)
  61. {
  62. guti[6a]=f;
  63. for(g=1;g<=6;g++)
  64. {
  65. guti[7]=g;
  66. int res=0;
  67. for(j=0;j<m;j++)
  68. {
  69. if(chokka[guti[v[j].fi]][guti[v[j].se]]==0)
  70. {
  71. res++;
  72. chokka[guti[v[j].fi]][guti[v[j].se]]=1;
  73. chokka[guti[v[j].se]][guti[v[j].fi]]=1;
  74. }
  75. }
  76. maxi=max(res,maxi);
  77. memset(chokka,0,sizeof(chokka));
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85.  
  86. cout<<maxi;
  87. return 0;
  88. }
Compilation error #stdin compilation error #stdout 0.01s 4536KB
stdin
4 4
1 2
2 3
3 4
4 1
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:62:18: error: unable to find numeric literal operator ‘operator""a’
             guti[6a]=f;
                  ^~
stdout
Standard output is empty