Borderou de evaluare (job #763798)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Album (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | lasm_22_02_2024_clasa12 | Status | evaluat |
| Dată | 22 feb. 2024 10:33:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'pi contains(int)':
main.cpp:25:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
25 | for(int i = 0; i < str.size(); i++){
| ~~^~~~~~~~~~~~
main.cpp:26:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
26 | for(int j = i+1; j < str.size(); j++){
| ~~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:74:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
74 | freopen("album.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:75:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | freopen("album.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~