Borderou de evaluare (job #2842969)
Utilizator | Data | 1 februarie 2022 19:51:48 | |
---|---|---|---|
Problema | Ecuatii 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream fin("ecuatii2.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream fout("ecuatii2.out");
| ^~~~~~~~
main.cpp: In function 'void rezolvare()':
main.cpp:11:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(i=1;i<=strlen(a);i++)
| ~^~~~~~~~~~~
main.cpp:22:33: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
22 | if(strcmp(a,b)==0||strcmp(a,strrev(b))==0)
| ^~~~~~
| strsep
main.cpp:23:9: error: 'fout' was not declared in this scope
23 | fout<<"infinit";
| ^~~~
main.cpp:26:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(i=1;i<=strlen(b);i++)
| ~^~~~~~~~~~~
main.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(i=1;i<=strlen(a);i++)
| ~^~~~~~~~~~~
main.cpp: In function 'void init()':
main.cpp:49:5: error: 'fin' was not declared in this scope; did you mean 'sin'?
49 | fin>>n;
| ^~~
| sin
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !