| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152372 | 陈棋 | 美丽数 | C++ | Compile Error | 0 MS | 0 KB | 708 | 2026-04-25 16:38:55 |
#include<iostream> using namespace std; int main(){ // int m,n,t,x=0,y=0,z=0; // cin>>t; // int sum[t]; // for(int i=0;i<t;i++){ // cin>>n>>m; // for(x=0;x<n;x++){ // for(y=0;y<n;y++){ // for(z=0;z<n;z++){ // if(x==n){ // x=0; // } // if(y==n){ // y=0; // } // if(z==n){ // z=0; // } // if(x+2*y+5*z==m){ // sum[i]+=1; // } // } // } // } // } // for(int i=0;i<t;i++){ // cout<<sum[i]<<endl; // } int n,sum=0; while(cin>>n){ int count=0; int nim=0; while(true){ num++; if(num%3||num%5){ count++; if(count==n){ break; } } } cout<<num<<end; } return 0; }
Main.cc: In function 'int main()':
Main.cc:37:4: error: 'num' was not declared in this scope
num++;
^
Main.cc:45:9: error: 'num' was not declared in this scope
cout<