Submission #1031706

#TimeUsernameProblemLanguageResultExecution timeMemory
1031706ezzzayCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" #include<bits/stdc++.h> void Solve(){ bool a=1,b=1,c=1; bool va[15],vb[15],vc[15]; int y=360; while(y--){ for(int i=1;i<=6;i++){ for(int j=1;j<=10;j++){ for(int k=1;k<=6;k++){ if(va[i] or vb[j] or vc[k])continue; int h=Theory(i,j,l); if(h==0)return; if(h==1){ va[i]=1; } if(h==2){ vb[j]=1; } if(h==3){ vc[k]=1; } } } } } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:13:34: error: 'l' was not declared in this scope
   13 |                 int h=Theory(i,j,l);
      |                                  ^
cluedo.cpp:5:10: warning: unused variable 'a' [-Wunused-variable]
    5 |     bool a=1,b=1,c=1;
      |          ^
cluedo.cpp:5:14: warning: unused variable 'b' [-Wunused-variable]
    5 |     bool a=1,b=1,c=1;
      |              ^
cluedo.cpp:5:18: warning: unused variable 'c' [-Wunused-variable]
    5 |     bool a=1,b=1,c=1;
      |                  ^