Borderou de evaluare (job #3031936)

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

Ceva nu functioneaza?