| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137898 | 岑思烁 | 12序列找规律 | C++ | Compile Error | 0 MS | 0 KB | 239 | 2025-11-23 11:11:35 |
#include<bits/stdc++.h> using namespace std; int main(){ inta,b,a-=1,b-=2; long long a=10000,b=10000; cin>>a>>b; for(int i=3;i<=b;i++){ if(i%==0){ a-=1; }else{ b-=2; } } cout<<a<<" "<<b; return 0; }
Main.cc: In function 'int main()':
Main.cc:4:2: error: 'inta' was not declared in this scope
inta,b,a-=1,b-=2;
^
Main.cc:4:7: error: 'b' was not declared in this scope
inta,b,a-=1,b-=2;
^
Main.cc:4:9: error: 'a' was not declared in this scope
inta,b,a-=1,b-=2;
^
Main.cc:8:9: error: expected primary-expression before '=' token
if(i%==0){
^