Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120144 白碣琨 12自由落体 C++ Compile Error 0 MS 0 KB 205 2025-05-24 11:12:36

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { double height = 100.0; for (int i = 1; i <= 9; i++) { height /= 2; } printf("%")height / 2 << endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:14: warning: spurious trailing '%' in format [-Wformat=]
    printf("%")height / 2 << endl;
              ^
Main.cc:10:15: error: expected ';' before 'height'
    printf("%")height / 2 << endl;
               ^