Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152374 陈棋 美丽数 C++ Compile Error 0 MS 0 KB 267 2026-04-25 16:40:03

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n; while(cin>>n){ int count=0; int nim=0; while(true){ num++; if(num%3==0||num%5==0){ count++; if(count==n){ break; } } } cout<<num<<end; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:4: error: 'num' was not declared in this scope
    num++;
    ^
Main.cc:17:9: error: 'num' was not declared in this scope
   cout<