Submission #444811

# Submission time Handle Problem Language Result Execution time Memory
444811 2021-07-15T13:03:58 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(m+1,l,w);
    else
      if(t(m,l,w)==2) t(m,l+1,w);
    else t(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;
      |       ^
cluedo.cpp:11:24: error: 't' cannot be used as a function
   11 |     if(t==1)  t(m+1,l,w);
      |                        ^
cluedo.cpp:13:17: error: 't' cannot be used as a function
   13 |       if(t(m,l,w)==2) t(m,l+1,w);
      |                 ^
cluedo.cpp:13:32: error: 't' cannot be used as a function
   13 |       if(t(m,l,w)==2) t(m,l+1,w);
      |                                ^
cluedo.cpp:14:19: error: 't' cannot be used as a function
   14 |     else t(m,l,w+1);
      |                   ^