Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97418 zzx990011 07苹果和虫子 C++ Compile Error 0 MS 0 KB 120 2024-11-15 19:21:09

Tests(0/0):


Code:

#include<iostream> int main() { int n,x,y; cin>>n>>x>>y; n=n-y/x-1; cout<<n; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
     cin>>n>>x>>y;
     ^
Main.cc:6:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
Main.cc:8:5: error: 'cout' was not declared in this scope
     cout<