English
Open in Telegram

Thread /cpp_gcc@rextester_bot

4 messages · –
C
C++ vs Python
/cpp_gcc@rextester_bot
    1. C
      C++ vs Python
      #include <iostream> #include <cmath> using namespace std; double funk(double x); { return 1.0/(1+x*x); } int main(){ int a, b; double x, S; cout<<" chegaralarni kiriting : "; cin>>a>>b; S=0; x=a; double h=(b-a)/n; for(int i=1; i<=n; i++) { y=funk(x); x+=h; S+=y; } S*=h; cout<<S; return 0; }
      1. D
        Errors: 1035285509/source.cpp:5:1: error: expected unqualified-id before ‘{’ token { ^ 1035285509/source.cpp: In function ‘int main()’: 1035285509/source.cpp:15:16: error: ‘n’ was not declared in this scope double h=(b-a)/n; ^ 1035285509/source.cpp:18:1: error: ‘y’ was not declared in this scope y=funk(x); ^ Tip: Mistake? Edit your message, I'll adjust my response.
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count