Submission #444812

# Submission time Handle Problem Language Result Execution time Memory
444812 2021-07-15T13:05:14 Z duckit70 Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"
void solve()
{  
int m,int l,int w;
  m=l=w=1;
  int t=Theory(m,l,w);
  if(t==0)
    return;
  else{
    if(t==1)  t=Theory(m+1,l,w);
    else
      if(t==2) t=Theory(m,l+1,w);
    else t=Theory(m,l,w+1);    
  }

}

Compilation message

cluedo.cpp: In function 'void solve()':
cluedo.cpp:5:7: error: expected unqualified-id before 'int'
    5 | int m,int l,int w;
      |       ^~~
cluedo.cpp:6:5: error: 'l' was not declared in this scope
    6 |   m=l=w=1;
      |     ^
cluedo.cpp:6:7: error: 'w' was not declared in this scope
    6 |   m=l=w=1;
      |       ^