| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70536 | 刘泽熙 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 226 | 2024-04-14 15:24:26 |
y#include <bits/stdc++.h> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; int c; if (y % x != 0) { } else { c = y / x+1; } if (n <= c) { cout << 0; } else { cout << n - c; } }
Main.cc:1:2: error: stray '#' in program y#include ^ Main.cc:1:1: error: 'y' does not name a type y#include ^ Main.cc: In function 'int main()': Main.cc:6:2: error: 'cin' was not declared in this scope cin >> n >> x >> y; ^ Main.cc:13:3: error: 'cout' was not declared in this scope cout << 0; ^ Main.cc:15:3: error: 'cout' was not declared in this scope cout << n - c; ^