Submission #232345

#TimeUsernameProblemLanguageResultExecution timeMemory
232345crossing0verCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r; set<int> s[4]; for (int i = 1; i <= 6; i++) s[1].insert(i), s[3].insert(i); for (int i = 1; i <= 10; i++) s[2].insert(i); while(Theory ( *s[1].begin() , *s[2].begin(), *s[3].begin())) { } } int main() { solve(); }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:4: error: 'set' was not declared in this scope
    set<int> s[4];
    ^~~
cluedo.cpp:6:8: error: expected primary-expression before 'int'
    set<int> s[4];
        ^~~
cluedo.cpp:8:5: error: 's' was not declared in this scope
     s[1].insert(i),
     ^
cluedo.cpp:7:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for (int i = 1; i <= 6; i++)
    ^~~
cluedo.cpp:10:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for (int i = 1; i <= 10; i++)
  ^~~
cluedo.cpp:11:3: error: 's' was not declared in this scope
   s[2].insert(i);
   ^
cluedo.cpp:12:18: error: 's' was not declared in this scope
  while(Theory ( *s[1].begin() , *s[2].begin(), *s[3].begin())) {
                  ^
cluedo.cpp:5:8: warning: unused variable 'r' [-Wunused-variable]
    int r;
        ^
cluedo.cpp: In function 'int main()':
cluedo.cpp:17:2: error: 'solve' was not declared in this scope
  solve();
  ^~~~~
cluedo.cpp:17:2: note: suggested alternative: 'Solve'
  solve();
  ^~~~~
  Solve