Borderou de evaluare (job #2327290)
Utilizator | Stefan Zamfir StefanZamfir | Data | 24 ianuarie 2019 16:26:36 |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp:2:45: error: expected initializer before 'g'
std::ifstream f("euclid2.in"),std::ofstream g("euclid2.out");main(){int a,b;for(f>>a;f>>a>>b;g<<std::__gcd(a,b)<<'\n');}
^
main.cpp:2:67: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
std::ifstream f("euclid2.in"),std::ofstream g("euclid2.out");main(){int a,b;for(f>>a;f>>a>>b;g<<std::__gcd(a,b)<<'\n');}
^
main.cpp: In function 'int main()':
main.cpp:2:94: error: 'g' was not declared in this scope
std::ifstream f("euclid2.in"),std::ofstream g("euclid2.out");main(){int a,b;for(f>>a;f>>a>>b;g<<std::__gcd(a,b)<<'\n');}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !