Judge Information
Run ID: 31154
src.cpp:1:21: warning: extra tokens at end of #include directive
#include <iostream> #include <fstream> using namespace std; int main() { long long int a,b; long long int tong,tich; ifstream fin; ofstream fout; fin.open("TONGTICH.INP"); fin >>a; fin >>b; fin.close(); tong = a+b; tich = a*b; fout.open("TONGTICH.OUT"); fout <<tich <<endl; fout <<tong; return 0; }
^
C:/Debug/compiler/gcc/bin/../lib/gcc/mingw32/4.9.2/../../..\libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
#include <iostream> #include <fstream> using namespace std; int main() { long long int a,b; long long int tong,tich; ifstream fin; ofstream fout; fin.open("TONGTICH.INP"); fin >>a; fin >>b; fin.close(); tong = a+b; tich = a*b; fout.open("TONGTICH.OUT"); fout <<tich <<endl; fout <<tong; return 0; }
^
C:/Debug/compiler/gcc/bin/../lib/gcc/mingw32/4.9.2/../../..\libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status