Borderou de evaluare (job #2021077)
Utilizator | Data | 12 septembrie 2017 17:26:32 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:125: error: ‘cin’ was not declared in this scope
std::ifstream f("euclid2.in");std::ofstream g("euclid2.out");int j(int a,int b){return(!a)?b:j(b%a,a);}int main(){int n,a,b;cin >> n;while(n--){cin>>a>>b;cout<<euclid(a, b)<<'\n';}}
^
user.cpp:2:155: error: ‘cout’ was not declared in this scope
std::ifstream f("euclid2.in");std::ofstream g("euclid2.out");int j(int a,int b){return(!a)?b:j(b%a,a);}int main(){int n,a,b;cin >> n;while(n--){cin>>a>>b;cout<<euclid(a, b)<<'\n';}}
^
user.cpp:2:172: error: ‘euclid’ was not declared in this scope
std::ifstream f("euclid2.in");std::ofstream g("euclid2.out");int j(int a,int b){return(!a)?b:j(b%a,a);}int main(){int n,a,b;cin >> n;while(n--){cin>>a>>b;cout<<euclid(a, b)<<'\n';}}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !