Submission #722251

#TimeUsernameProblemLanguageResultExecution timeMemory
722251ktkeremCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
/*#pragma GCC target ("avx2") #pragma GCC optimize ("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize ("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")/**/ #include<bits/stdc++.h> #include "cluedo.h" typedef int ll; typedef long double ld; typedef __int128 vll; typedef long long ftyp; typedef std::complex<ftyp> vec; #define llll std::pair<ll , ll> #define pb push_back #define fi first #define sec second #define cx real #define cy imag #define all(a) a.begin() , a.end() #define debug std::cout << "!!ALERT ALERT!!" << std::endl; const ll limit = 1e9+7; const ll sus = 5e4+5; std::mt19937 rng(std::chrono::steady_clock::now().time_since_epoch().count()); /*ll fun(ll x , ll y , ll z){ std::cout << x << y << z; ll kk;std::cin >> kk; return kk; }*/ void Solve(){ ll dlm[7] , dll[11] , dlg[7]; memset(dlm , 0 , sizeof(dlm)); memset(dll , 0 , sizeof(dll)); memset(dlg , 0 , sizeof(dlg)); ll cs[4] = {0 , 1 , 1 , 1}; ll o = 1; while(o){ o = Theory(cs[1] , cs[2] , cs[3]); if(o == 1){ dlm[cs[1]] = 1; } else if(o == 2){ dll[cs[2]] = 1; } else if(o == 3){ dlg[cs[3]] = 1; } while(dlm[cs[1]] + dll[cs[2]] + dlg[cs[3]]){ cs[1] += dlm[cs[1]]; cs[2] += dll[cs[2]]; cs[3] += dlg[cs[3]]; cs[1] = (cs[1] % 7) + (cs[1] >= 7?1:0); cs[2] = (cs[2] % 11) + (cs[2] >= 11?1:0); cs[3] = (cs[3] % 7) + (cs[3] >= 7?1:0); } } return; } /*void solve(){ Solve(); return; } int main(){ /*std::ios_base::sync_with_stdio(false);std::cin.tie(NULL); #ifndef ONLINE_JUDGE freopen("in.txt" , "r" , stdin); freopen("out.txt" , "w" , stdout); #endif ll t = 1; //std::cin >> t; while(t--){ solve(); } }*/

Compilation message (stderr)

cluedo.cpp:5:78: warning: "/*" within comment [-Wcomment]
    5 | #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")/**/
      |                                                                               
cluedo.cpp:63:3: warning: "/*" within comment [-Wcomment]
   63 |   /*std::ios_base::sync_with_stdio(false);std::cin.tie(NULL);
      |    
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:37:9: error: 'Theory' was not declared in this scope
   37 |     o = Theory(cs[1] , cs[2] , cs[3]);
      |         ^~~~~~