Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114676 | 范恒恺 | 15听到多少次掌声 | C++ | Compile Error | 0 MS | 0 KB | 293 | 2025-03-23 09:56:15 |
#include<bits/stdc++.h> using namespace std; int main() { int a=0,b=0,c=0,n=0; for(int i=1; i<=36; i++) { int a=0,b=0,c=0; if(a<=9){ a=1; } if(i%2==0&&i<=18){ b=1; } if(i%4==0){ c=1; } if(a==1||b==1||c==1){ sum++; } cout<<sum; return 0; }
Main.cc: In function 'int main()': Main.cc:17:3: error: 'sum' was not declared in this scope sum++; ^ Main.cc:19:9: error: 'sum' was not declared in this scope cout<