Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98033 陈泽瑞 07苹果和虫子 C++ Compile Error 0 MS 0 KB 429 2024-11-17 11:15:26

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,y; int>>n>>x>>y; x*n=y; num=n-y/x; if(y%x !=0) num--; if(num <=0) cout<<0<<endl; else cout<<num<<eldl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:8: error: expected unqualified-id before '>>' token
     int>>n>>x>>y;
        ^
Main.cc:10:8: error: lvalue required as left operand of assignment
     x*n=y;
        ^
Main.cc:11:5: error: 'num' was not declared in this scope
     num=n-y/x;
     ^
Main.cc:17:16: error: 'eldl' was not declared in this scope
     cout<