Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116179 | 唐诗阳 | 神秘数字 | C++ | Compile Error | 0 MS | 0 KB | 333 | 2025-04-06 15:23:01 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a,b,; cin>>a; for(int i=a;i>=a;i++){ if(i%3==2&&i%5==3&&i%7==2&&i>a){ cout<<i; break; } } return 0; }
Main.cc: In function 'int main()': Main.cc:7:15: error: expected unqualified-id before ';' token long long a,b,; ^ Main.cc:7:13: warning: unused variable 'b' [-Wunused-variable] long long a,b,; ^