Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

where is the error?

$
0
0

atm beginner problem solution:

include<stdio.h>

int main() { int x; float y; scanf("%d%f",&x,&y); if(x%5==0&&y) printf("%.2f",y-(float)x-0.50); else printf("%.2f",y); }

i am getting compilation error:

gcc -c -pipe -O2 test.adb test.adb:1:01: illegal character test.adb:3:01: illegal character, replaced by "(" test.adb:7:28: missing string quote test.adb:11:01: illegal character, replaced by ")" gnatmake: "test.adb" compilation error


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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