Submission #768274

# Submission time Handle Problem Language Result Execution time Memory
768274 2023-06-27T21:03:08 Z simene Cluedo (IOI10_cluedo) C++14
0 / 100
1 ms 336 KB
#include "grader.h"
#include <stack>
void Solve(){std::stack<int> m[4];for(int i=1;i<7;i++)m[1].push(i);m[3]=m[1];m[2]=m[1];for(int i=7;i<11;i++)m[3].push(i);int a;while(a=Theory(m[0].top(),m[1].top(),m[2].top()))m[a].pop();}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:3:135: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    3 | void Solve(){std::stack<int> m[4];for(int i=1;i<7;i++)m[1].push(i);m[3]=m[1];m[2]=m[1];for(int i=7;i<11;i++)m[3].push(i);int a;while(a=Theory(m[0].top(),m[1].top(),m[2].top()))m[a].pop();}
      |                                                                                                                                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -