| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136696 | 鄢晨曦 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 159 | 2025-11-15 14:47:49 |
#include<bits/stdc++.h> using namespace std; int main(){ double h=100; for(int a=1;a<=10;a++) { h=h/2; } printf(); return 0; }
Main.cc: In function 'int main()':
Main.cc:9:9: error: too few arguments to function 'int printf(const char*, ...)'
printf();
^
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/5/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: declared here
printf (const char *__restrict __fmt, ...)
^