Submission #712779

#TimeUsernameProblemLanguageResultExecution timeMemory
712779beaconmcQuestion (Grader is different from the original contest) (CEOI14_question_grader)C++14
Compilation error
0 ms0 KiB
sus = [set() for i in range(12)] cur = 0 for a in range(12): for b in range(a+1, 12): for c in range(b+1, 12): for d in range(c+1, 12): for e in range(d+1, 12): for f in range(e+1, 12): sus[a].add(cur) sus[b].add(cur) sus[c].add(cur) sus[d].add(cur) sus[e].add(cur) sus[f].add(cur) cur += 1 t = int(input()) n,q = map(int, input().split()) for i in range(q): a,b = map(int, input().split()) if t==1: for k in range(12): if a in sus[k] and b not in sus[k]: print(k+1) break else: if a in sus[b-1]: print("yes") else: print("no")

Compilation message (stderr)

encoder.cpp:1:1: error: 'sus' does not name a type
    1 | sus = [set() for i in range(12)]
      | ^~~

/usr/bin/ld: /tmp/cc5C4IVH.o: in function `main':
grader_decode.c:(.text.startup+0x22f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status