Borderou de evaluare (job #3031950)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 21 martie 2023 10:16:13
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: In function 'int rec(int)': main.cpp:28:21: error: 'v' was not declared in this scope 28 | if(depth == v.size()) | ^ main.cpp:31:17: error: 'v' was not declared in this scope 31 | int x = v[depth].first, y = v[depth].second; | ^ main.cpp:34:42: error: 'y' was not declared in this scope; did you mean 'ny'? 34 | int nx = x + dx[i], ny = y + dy[i]; | ^ | ny main.cpp:43:30: error: 'y' was not declared in this scope 43 | m[x][y] = i; | ^ main.cpp: In function 'int main()': main.cpp:51:36: error: 'stdin' was not declared in this scope 51 | freopen("culori4.in", "r", stdin); | ^~~~~ main.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? +++ |+#include <cstdio> 1 | .#include <bits/stdc++.h> main.cpp:51:9: error: 'freopen' was not declared in this scope 51 | freopen("culori4.in", "r", stdin); | ^~~~~~~ main.cpp:52:37: error: 'stdout' was not declared in this scope 52 | freopen("culori4.out", "w", stdout); | ^~~~~~ main.cpp:52:37: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:53:9: error: 'cin' was not declared in this scope 53 | cin >> N; Non zero exit status: 1

Ceva nu functioneaza?