Borderou de evaluare (job #786918)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Scara | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 sept. 2024 14:26:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int ways(std::vector<int>, int)':
main.cpp:9:10: error: expected unqualified-id before numeric constant
9 | int x=0, 1=k.size();
| ^
main.cpp:23:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
23 | int main() {
| ^~
main.cpp:23:9: note: remove parentheses to default-initialize a variable
23 | int main() {
| ^~
| --
main.cpp:23:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:23:12: error: a function-definition is not allowed here before '{' token
23 | int main() {
| ^
main.cpp:43:2: error: expected '}' at end of input
43 | }
| ^
main.cpp:7:32: note: to match this '{'
7 | int ways (vector<int> k, int n){
| ^