Borderou de evaluare (job #1903119)
Utilizator | Data | 4 martie 2017 23:35:20 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:19: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
E[strlen(E)-1]=NULL;
^
user.cpp:30:19: warning: NULL used in arithmetic [-Wpointer-arith]
for(i=0;E[i]!=NULL;i++)
^
user.cpp:44:29: error: ‘itoa’ was not declared in this scope
itoa(nr,sirnr,10);
^
user.cpp:57:24: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
aux[2]=NULL;
^
user.cpp:77:30: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
aux[2]=NULL;
^
user.cpp:93:43: warning: NULL used in arithmetic [-Wpointer-arith]
if(*p=='+' || (*p=='-' && *(p+1)==NULL) ||*p=='*' || *p=='/')
^
user.cpp: In function ‘int prioritate(char)’:
user.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:19:22: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(E,100000,f);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !