Submission #1142684

#TimeUsernameProblemLanguageResultExecution timeMemory
1142684a_las콤보 (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; //cout<< //cin>> int press(string p){ int n; cin>>n; return n; } string guess_sequence(int N){ string s; cin>>s; return s; } void solve(){ int n=press("AB"); if(n==1){ n=press("A"); if(n==0){ n=press("BXY"); } else{ n=press("ABX"); } } else{ n=press("XY"); if(n==1){ n=press("X"); if(n==0){ n=press("YAB"); } else{ n=press("XYA"); } } } cout<<guess_sequence(n); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int t=1; //cin>>t; while(t--){ solve(); } }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccBeU55V.o: in function `press(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
grader.cpp:(.text+0x0): multiple definition of `press(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'; /tmp/ccgRPRMI.o:combo.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccBeU55V.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccgRPRMI.o:combo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status