Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105316 田诗语 02买铅笔 C++ Compile Error 0 MS 0 KB 120 2025-01-13 10:50:29

Tests(0/0):


Code:

#include<iostream> int main(){ int a,b,c,d; cin>>a>>b>>c>>d; cout<<(c*10+d)/(a*0+b); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:5: error: 'cin' was not declared in this scope
     cin>>a>>b>>c>>d;
     ^
Main.cc:4: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:5:5: error: 'cout' was not declared in this scope
     cout<<(c*10+d)/(a*0+b);
     ^
Main.cc:5:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^