Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98049 杨政翰 07苹果和虫子 C++ Compile Error 0 MS 0 KB 321 2024-11-17 11:28:48

Tests(0/0):


Code:

#include<cmath> using namespace std; int main() { int n,x,y; int num = 0; cin > > n > > x > > y; num = n - y/x; if(y%x!= 0) num--; if(num < =0) cout << 0 <<endl; else cout << num <<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:9: error: 'cin' was not declared in this scope
         cin > > n > > x > > y;
         ^
Main.cc:7:15: error: expected primary-expression before '>' token
         cin > > n > > x > > y;
               ^
Main.cc:7:21: error: expected primary-expression before '>' token
         cin > > n > > x > > y;
                     ^
Main.cc:7:27: error: expected primary-expression before '>' token
         cin > > n > > x > > y;
                           ^
Main.cc:11:18: error: expected primary-expression before '=' token
         if(num < =0)
                  ^
Main.cc:12:16: error: 'cout' was not declared in this scope
                cout << 0 <