1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h> int main() { int a, s; printf("Enter value of a"); scanf ("%d",&a); s=++a + ++a; printf("%d",a); printf("%d",s); } |
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKaW50IGEsIHM7CnByaW50ZigiRW50ZXIgdmFsdWUgb2YgYSIpOwpzY2FuZiAoIiVkIiwmYSk7CnM9KythICsgKythOwpwcmludGYoIiVkIixhKTsKcHJpbnRmKCIlZCIscyk7Cn0=
prog.cpp: In function ‘int main()’: prog.cpp:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
-
upload with new input
-
result: Success time: 0.01s memory: 2896 kB returned value: 0
5
Enter value of a714
-
result: Success time: 0.01s memory: 2896 kB returned value: 0
Enter value of a-12077547821879457732


