Submission #232667

#TimeUsernameProblemLanguageResultExecution timeMemory
232667anubhavdharCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "cluedo.h" #define ll long long int #define pb push_back #define mp make_pair #define FOR(i,n) for(i=0;i<(n);++i) #define FORe(i,n) for(i=1;i<=(n);++i) #define FORr(i,a,b) for(i=(a);i<(b);++i) #define FORrev(i,n) for(i=(n);i>=0;--i) #define ii pair<ll,ll> #define vi vector<ll> #define vii vector<ii> #define ff first #define ss second #define cd complex<double> #define vcd vector<cd> #define ldd long double #define dbgLine cout<<"Line : "<<__LINE__<<'\n' #define all(x) (x).begin(),(x).end() using namespace std; /* const short int __PRECISION = 10; const ll MOD = 1e9+7; const ll INF = 1e17 + 1101; const ll LOGN = 17; const ll MAXN = 2e5+5; const ll ROOTN = 320; const ldd PI = acos(-1); const ldd EPS = 1e-7; int aa,bb,cc; int THEORY(int a, int b, int c) { if(a != aa) return 1; if(b != bb) return 2; if(c != cc) return 3; cout<<"done\n"; return 0; }*/ void Solve() { int x = 1, y = 1, z = 1,i, tmp; FORe(i,6) { tmp = THEORY(i, y, z); if(tmp == 0) return; if(tmp > 1) {x = i; break;} } FORe(i,10) { tmp = THEORY(x, i, z); if(tmp == 0) return; if(tmp > 2) {y = i; break;} } FORe(i,6) if(THEORY(x, y, i) == 0) return; } /* inline void test_case() { } int main() { /* ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); */ ll t; cin>>t; while(t--) { cin>>aa>>bb>>cc; Solve(); } return 0; }*/

Compilation message (stderr)

cluedo.cpp:76:2: warning: "/*" within comment [-Wcomment]
  /*
   
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:52:9: error: 'THEORY' was not declared in this scope
   tmp = THEORY(i, y, z);
         ^~~~~~
cluedo.cpp:58:9: error: 'THEORY' was not declared in this scope
   tmp = THEORY(x, i, z);
         ^~~~~~
cluedo.cpp:64:6: error: 'THEORY' was not declared in this scope
   if(THEORY(x, y, i) == 0)
      ^~~~~~
cluedo.cpp: At global scope:
cluedo.cpp:82:2: error: 'cin' does not name a type; did you mean 'sin'?
  cin>>t;
  ^~~
  sin
cluedo.cpp:83:2: error: expected unqualified-id before 'while'
  while(t--)
  ^~~~~
cluedo.cpp:88:2: error: expected unqualified-id before 'return'
  return 0;
  ^~~~~~
cluedo.cpp:89:1: error: expected declaration before '}' token
 }*/
 ^