| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152373 | 杨峻熙 | 美丽数 | C++ | Compile Error | 0 MS | 0 KB | 240 | 2026-04-25 16:39:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int count=0; int num=0; } while(ture){ num++; if(i%3==0||i%5==0){ count++ if(count==n){ break; } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:7: warning: unused variable 'count' [-Wunused-variable]
int count=0;
^
Main.cc:7:7: warning: unused variable 'num' [-Wunused-variable]
int num=0;
^
Main.cc:9:8: error: 'ture' was not declared in this scope
while(ture){
^
Main.cc:10:3: error: 'num' was not declared in this scope
num++;
^
Main.cc:11:6: error: 'i' was not declared in this scope
if(i%3==0||i%5==0){
^
Main.cc:12:9: error: no post-increment operator for type
count++
^