Borderou de evaluare (job #3031955)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 21 martie 2023 10:27:18
Problema Culori4 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:2: error: stray '#' in program 1 | .#include <bits/stdc++.h> | ^ main.cpp:1:1: error: expected unqualified-id before '.' token 1 | .#include <bits/stdc++.h> | ^ main.cpp:5:8: error: 'pair' was not declared in this scope 5 | vector<pair<int,int>> v; | ^~~~ main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:8: error: 'pair' was not declared in this scope main.cpp:5:1: error: 'vector' does not name a type 5 | vector<pair<int,int>> v; | ^~~~~~ main.cpp:38:17: error: 'pair' does not name a type 38 | bool comp(const pair<int,int>& a, const pair<int,int>& b) | ^~~~ main.cpp:38:21: error: expected ',' or '...' before '<' token 38 | bool comp(const pair<int,int>& a, const pair<int,int>& b) | ^ main.cpp: In function 'bool comp(int)': main.cpp:40:20: error: 'a' was not declared in this scope 40 | return get(a.first, a.second) > get(b.first, b.second); | ^ main.cpp:40:45: error: 'b' was not declared in this scope 40 | return get(a.first, a.second) > get(b.first, b.second); | ^ main.cpp: In function 'int rec(int)': main.cpp:45:21: error: 'v' was not declared in this scope 45 | if(depth == v.size()) | ^ main.cpp:48:17: error: 'v' was not declared in this scope 48 | int x = v[depth].first, y = v[depth].second; | ^ main.cpp:51:42: error: 'y' was not declared in this scope; did you mean 'ny'? 51 | int nx = x + dx[i], ny = y + dy[i]; | ^ | ny main.cpp:60:30: error: 'y' was not declared in this scope 60 | m[x][y] = i; | ^ main.cpp: In function 'int main()': main.cpp:68:36: error: 'stdin' was not declared in this scope 68 | freopen("culori4.in", "r", stdin); Non zero exit status: 1

Ceva nu functioneaza?