Borderou de evaluare (job #1822608)
Utilizator | Data | 5 decembrie 2016 10:55:07 | |
---|---|---|---|
Problema | Expresie2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int getdr()’:
user.cpp:75:9: warning: unused variable ‘n’ [-Wunused-variable]
int n=0;
^
user.cpp: In function ‘int val()’:
user.cpp:97:16: error: ‘semn’ was not declared in this scope
return semn*(s[i]+s[i-1]*10-'0'*11);
^
user.cpp:99:16: error: ‘semn’ was not declared in this scope
return semn*(s[i-1]-'0');
^
user.cpp: In function ‘int main()’:
user.cpp:107:10: warning: unused variable ‘c’ [-Wunused-variable]
char c;
^
user.cpp: In function ‘int val()’:
user.cpp:100:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:104:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie2.in","r",stdin);
^
user.cpp:105:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie2.out","w",stdout);
^
user.cpp:108:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !