Borderou de evaluare (job #1453168)
Utilizator | Data | 22 iunie 2015 19:55:04 | |
---|---|---|---|
Problema | Perechi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:45: error: conflicting declaration ‘int g’
int v[100],rez[100],x[100],d[100],q,k=0,p,n,g=2,t=0;
^
user.cpp:5:10: error: ‘g’ has a previous declaration as ‘std::ofstream g’
ofstream g("perechi.out");
^
user.cpp: In function ‘void creare()’:
user.cpp:12:7: error: no match for ‘operator%’ (operand types are ‘int’ and ‘std::ofstream {aka std::basic_ofstream<char>}’)
if(n%g==0){t=0;
^
user.cpp:13:11: error: no match for ‘operator%’ (operand types are ‘int’ and ‘std::ofstream {aka std::basic_ofstream<char>}’)
while(n%g==0)
^
user.cpp:15:8: error: no match for ‘operator/’ (operand types are ‘int’ and ‘std::ofstream {aka std::basic_ofstream<char>}’)
n=n/g;
^
user.cpp:20:9: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
else g++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !