Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8123 | 余立涵 | 11下一次奥运会 | C++ | Compile Error | 0 MS | 0 KB | 212 | 2025-06-14 19:30:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a; if(a/4!=0){ y=4-a%4; cout<<a+b<<endl; return 0; } cout<<a+4<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:7:9: error: 'y' was not declared in this scope y=4-a%4; ^