Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93029 | 宋文轩 | 2020 | C++ | Compile Error | 0 MS | 0 KB | 215 | 2024-10-07 15:50:19 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int q = n / 100 int p = n % 100 if (q == p) { cout << "yes"; } else { cout << "no"; } }
Main.cc: In function 'int main()': Main.cc:7:10: error: expected ',' or ';' before 'int' int p = n % 100 ^ Main.cc:11:4: error: 'else' without a previous 'if' } else { ^ Main.cc:6:6: warning: unused variable 'q' [-Wunused-variable] int q = n / 100 ^