DSL
"Write a C program that draws an american flag to stdout." >> LLMRun() >> CRun() >> \
LLMRun("What flag is shown in this image?") >> \
(SubstringEvaluator("United States") | SubstringEvaluator("USA") | SubstringEvaluator("America"))
其中有一个 python convert to c(这个我第一次没反应过来哈哈) 问题很有意思,所有的 llm 都错了.
Question
def foo(x):
sum = 0
for i in range(x):
x += i
sum += x
return sum
LLM OUTPUT
#include
int foo(int x) {
int sum = 0;
for (int i = 0; i
Reference
python_to_c_loop_update