Borderou de evaluare (job #278075)

Utilizator PetriucAlexandruPetriuc Alexandru PetriucAlexandru Data 12 martie 2009 09:03:25
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.2/backward/fstream.h:31, from user.cpp:17: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. user.cpp:32:2: warning: no newline at end of file user.cpp:1: error: expected constructor, destructor, or type conversion before '<' token user.cpp: In function 'int main()': user.cpp:9: error: 'ifstream' was not declared in this scope user.cpp:9: error: expected `;' before 'f' user.cpp:10: error: 'ofstream' was not declared in this scope user.cpp:10: error: expected `;' before 'g' user.cpp:11: error: 'f' was not declared in this scope user.cpp:14: error: 'g' was not declared in this scope user.cpp: At global scope: user.cpp:19: error: redefinition of 'int n' user.cpp:3: error: 'int n' previously declared here user.cpp:19: error: redefinition of 'int a' user.cpp:3: error: 'int a' previously declared here user.cpp:19: error: redefinition of 'int b' user.cpp:3: error: 'int b' previously declared here user.cpp:19: error: redefinition of 'int i' user.cpp:3: error: 'int i' previously declared here user.cpp: In function 'int gcd(int, int)': user.cpp:20: error: redefinition of 'int gcd(int, int)' user.cpp:4: error: 'int gcd(int, int)' previously defined here user.cpp: In function 'int main()': user.cpp:24: error: redefinition of 'int main()' user.cpp:8: error: 'int main()' previously defined here

Ceva nu functioneaza?