| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65540 | 欧阳槊远 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 187 | 2024-01-26 11:32:19 |
#include <bits/stdc++.h>. using namespace std; int main (){ int n,x,y; cin>>n>>x>>y; int c=y/x; if(y%x!=0){ c+=1; } if(c>n){ cout<<c=n; } return 0; }
Main.cc:1:25: warning: extra tokens at end of #include directive
#include .
^
Main.cc: In function 'int main()':
Main.cc:13:10: error: no match for 'operator=' (operand types are 'std::basic_ostream' and 'int')
cout<& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]
operator=(basic_ostream&& __rhs)
^
/usr/include/c++/5/ostream:402:7: note: no known conversion for argument 1 from 'int' to 'std::basic_ostream&&'