Pentru această operație este nevoie să te autentifici.
Borderou de evaluare (job #758405)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartier2 (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 ian. 2024 18:16:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:64:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
64 | if(firstDiv[it] == 0) firstDiv[it] = i;] + 1);
| ^~
main.cpp:64:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
64 | if(firstDiv[it] == 0) firstDiv[it] = i;] + 1);
| ^
main.cpp:64:52: error: expected primary-expression before ']' token
main.cpp:66:53: error: 'it' was not declared in this scope; did you mean 'i'?
66 | maxLength = max(maxLength, i - firstDiv[it
| ^~
| i
main.cpp:66:55: error: expected ']' before 'if'
66 | maxLength = max(maxLength, i - firstDiv[it
| ^
| ]
67 | if(z > 1) {
| ~~
main.cpp: In function 'char readChar()':
main.cpp:11:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fread(BUF, sizeof(char), BUFSIZE, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:35:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen("cartier2.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:36:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | freopen("cartier2.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~