Borderou de evaluare (job #835761)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Agent 007 (clasa a 6-a) | Compilator | cpp |
| Rundă | lasm_13_10_2025_clasa12 | Status | evaluat |
| Dată | 13 oct. 2025 18:36:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while (i < current.size()) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:21:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | while (i + count < current.size() && current[i + count] == ch) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:33:2: error: expected '}' at end of input
33 | }
| ^
main.cpp:4:12: note: to match this '{'
4 | int main() {
| ^
main.cpp:5:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | freopen("agent.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:6:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | freopen("agent.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~