Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22310

Iteraion 3u invokes unidenified error

$
0
0
#include <iostream>    int main(){    for (int i = 0; i < 4; ++i)        std::cout << i*5000000000 << std::endl;}

getting a warning from gcc whenever i try to run this.

:-

warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]   std::cout << i*5000000000 << std::endl;

Whats the cause of this error?


Viewing all articles
Browse latest Browse all 22310

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>