Submission #380992

# Submission time Handle Problem Language Result Execution time Memory
380992 2021-03-24T07:02:09 Z Karliver Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
#include <fstream>
#define FIXED_FLOAT(x)  std::fixed <<std::setprecision(20) << (x)
#define all(v) (v).begin(), (v).end()
using namespace  std;
#define forn(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
int mod = (ll)1e9 + 7;
#define PI acos(-1)
typedef pair<int, int> pairs;
typedef complex<ll> G;
const int INF = 1e9 + 1;
const int N = 1e6;
const double eps = 1e-3;
 
template <typename XPAX>
void ckma(XPAX &x, XPAX y) {
    x = (x < y ? y : x);
}
template <typename XPAX>
void ckmi(XPAX &x, XPAX y) {
    x = (x > y ? y : x);
}
 
void Solve(){
	int a, = 1,  b = 1, c = 1;
   	int r = Theory(a, b, c);
    while(!r) {
    	if(r == 1)++a;
        else if(r == 2)++b;
        else ++c;
       	r = Theory(a, b,c);
       }
     	
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:28:9: error: expected unqualified-id before '=' token
   28 |  int a, = 1,  b = 1, c = 1;
      |         ^
cluedo.cpp:29:23: error: 'b' was not declared in this scope
   29 |     int r = Theory(a, b, c);
      |                       ^
cluedo.cpp:29:26: error: 'c' was not declared in this scope
   29 |     int r = Theory(a, b, c);
      |                          ^