Borderou de evaluare (job #688261)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Copii (clasa a 5-a) | Compilator | cpp-32 |
Rundă | lasm_18_01_2023_cl10 | Status | evaluat |
Dată | 18 ian. 2023 17:22:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::string factorial(int, int)':
main.cpp:13:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
13 | for (int i = da.length()-k; i < da.length(); i++){
| ~~^~~~~~~~~~~~~
main.cpp: In function 'std::string divizor(int)':
main.cpp:21:29: error: 'cati' was not declared in this scope
21 | if (cati(j) % 2 == 1) return to_string(j)+" "+cati(j);
| ^~~~
main.cpp: In function 'int main()':
main.cpp:48:46: error: expected primary-expression before ';' token
48 | cout << divizor(y) << " " << ;
| ^
main.cpp:36:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | freopen("copii.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:37:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | freopen("copii.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~