Submission #1284187

#TimeUsernameProblemLanguageResultExecution timeMemory
1284187ggillianjiangCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
#include <cstdio>
#include <utility>

using namespace std;

#define m first.first
#define l first.second
#define w second

void Solve();

int main(){
   Solve();

   return 0;
}

/*
int Theory(int mr, int lo, int wp){
   int m2, l2, w2;
   scanf("%d %d %d", &m2, &l2, &w2);
   if(mr!=m2) return 1;
   if(lo!=l2) return 2;
   if(wp!=w2) return 3;
   else return 0;
}
*/

void Solve(){
   pair< pair<int, int> , int> mlw;
   int r = Theory(mlw.m, mlw.l, mlw.w);
   while(r!=0){
      if(r==1) mlw.m++;
      else if(r==2) mlw.l++;
      else mlw.w++;
      r = Theory(mlw.m, mlw.l, mlw.w);
   }
   
   return;
}

Compilation message (stderr)

/usr/bin/ld: /tmp/cc5dlyQh.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccbyMtGh.o:cluedo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status