Borderou de evaluare (job #656897)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Volei (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 aug. 2022 19:21:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:40: error: too many decimal points in number
15 | return true;var f,b,plas:array[1..2001]of integer;
| ^~~~~~~
main.cpp:32:15: warning: character constant too long for its type
32 | assign(fis,'volei.in');reset(fis);
| ^~~~~~~~~~
main.cpp:77:15: warning: character constant too long for its type
77 | assign(fis,'volei.out');rewrite(fis);
| ^~~~~~~~~~~
main.cpp:81:47: warning: multi-character character constant [-Wmultichar]
81 | if plas[i]>0 then write(fis,'(',plas[i],') ')
| ^~~~
main.cpp: In function 'bool cmp(std::pair<int, int>, std::pair<int, int>)':
main.cpp:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if(a.first < b.first)
| ^~
main.cpp:15:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
15 | return true;var f,b,plas:array[1..2001]of integer;
| ^~~
main.cpp:15:21: error: 'var' was not declared in this scope
main.cpp:16:5: error: 'n' was not declared in this scope
16 | n,m,im,i,k:integer;
| ^
main.cpp:16:7: error: 'm' was not declared in this scope
16 | n,m,im,i,k:integer;
| ^
main.cpp:16:9: error: 'im' was not declared in this scope; did you mean 'tm'?
16 | n,m,im,i,k:integer;
| ^~
| tm
main.cpp:16:12: error: 'i' was not declared in this scope
16 | n,m,im,i,k:integer;
| ^
main.cpp:16:15: error: found ':' in nested-name-specifier, expected '::'
16 | n,m,im,i,k:integer;
| ^
| ::
main.cpp:16:14: error: 'k' has not been declared
16 | n,m,im,i,k:integer;
| ^
main.cpp:17:9: error: 'text' was not declared in this scope
17 | fis:text;
| ^~~~
main.cpp:19:1: error: 'function' was not declared in this scope
19 | function max(a,b:integer):integer;
| ^~~~~~~~
main.cpp:3:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
2 | #include <fstream>
+++ |+#include <functional>
3 |