Borderou de evaluare (job #1053609)
Utilizator | Data | 12 decembrie 2013 20:55:34 | |
---|---|---|---|
Problema | Ec | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:8: error: redefinition of ‘int I’
int II,I;
^
user.cpp:7:5: error: ‘int I’ previously declared here
int I,ecuatiisolutie1;
^
user.cpp: In function ‘void ecuatie1(float&)’:
user.cpp:29:17: warning: NULL used in arithmetic [-Wpointer-arith]
while(S[i]!=NULL)
^
user.cpp: In function ‘void ecuatie2(float&, float&)’:
user.cpp:59:18: warning: NULL used in arithmetic [-Wpointer-arith]
while(S[i]!=NULL)
^
user.cpp: In function ‘int main()’:
user.cpp:107:22: error: invalid initialization of reference of type ‘float&’ from expression of type ‘int’
ecuatie1(r);
^
user.cpp:11:6: error: in passing argument 1 of ‘void ecuatie1(float&)’
void ecuatie1(float &r)
^
user.cpp:114:27: error: invalid initialization of reference of type ‘float&’ from expression of type ‘int’
ecuatie2(r1,r2);
^
user.cpp:39:6: error: in passing argument 1 of ‘void ecuatie2(float&, float&)’
void ecuatie2(float &r1,float &r2)
^
user.cpp:121:23: error: ‘solI’ was not declared in this scope
printf("%d %d\n",I,solI);
^
user.cpp:122:22: error: ‘solII’ was not declared in this scope
printf("%d %d",II,solII);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !