<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: star1-aysi</title>
    <description>The latest articles on DEV Community by star1-aysi (@star1aysi).</description>
    <link>https://dev.to/star1aysi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3122059%2F87633828-2331-45a8-8bfd-798c02031199.png</url>
      <title>DEV Community: star1-aysi</title>
      <link>https://dev.to/star1aysi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/star1aysi"/>
    <language>en</language>
    <item>
      <title>c++ code error checking</title>
      <dc:creator>star1-aysi</dc:creator>
      <pubDate>Sun, 04 May 2025 12:09:47 +0000</pubDate>
      <link>https://dev.to/star1aysi/c-code-error-checking-2ipn</link>
      <guid>https://dev.to/star1aysi/c-code-error-checking-2ipn</guid>
      <description>&lt;p&gt;There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers in it that are divisible by 3.&lt;/p&gt;

&lt;h1&gt;
  
  
  include 
&lt;/h1&gt;

&lt;p&gt;using namespace std;&lt;br&gt;
int main() {&lt;br&gt;
    long long int N,sum=1,count=0;&lt;br&gt;
    cin&amp;gt;&amp;gt;N;&lt;br&gt;
    long long int a[N];/&lt;em&gt;maybe this data type can cause problem but i changed nothing changed.&lt;/em&gt;/&lt;br&gt;
    for (int i=0;i&amp;lt;N;i++){&lt;br&gt;
        a[i]=sum;&lt;br&gt;
        sum=sum*10+(i+2);&lt;br&gt;
        if (a[i]%3==0)&lt;br&gt;
        count++;&lt;br&gt;
    }&lt;br&gt;
    cout&amp;lt;&amp;lt;count;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return 0;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
what is my mistake in this code. It fits till 7th test&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>codeforces</category>
    </item>
  </channel>
</rss>
