Cod sursa(job #1059855)

Utilizator NCodeMihai X NCode Data 17 decembrie 2013 03:56:49
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.32 kb
#include <stdio.h>
#include <fstream>


using namespace std;

int main()
{

  int a, b;
  ifstream in("adunare.in");
  ofstream out("adunare.out");
  
	
	
  in >> a >> b;

  int total;


__asm__ __volatile__ ( "addl %%ebx, %%eax;" : "=a" (total) : "a" (a) , "b" (b) );

  out << total;

  return 0;
}