Šaulys 1
- [1] 2023-12-28 21:45 (0)
- [2] 2023-12-28 21:45 (100)
Taškai: 0
Compile: FAIL
saul1.cpp:6:10: warning: missing terminating ' character 6 | int n=131'072; | ^ saul1.cpp:6:10: error: missing terminating ' character 6 | int n=131'072; | ^~~~~ saul1.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘int’ 7 | int t[NMAX]={0}; | ^~~ saul1.cpp: In function ‘void print()’: saul1.cpp:11:30: error: ‘t’ was not declared in this scope 11 | cout << i << ": " << t[i] << "\n"; | ^ saul1.cpp: In function ‘void build()’: saul1.cpp:18:9: error: ‘t’ was not declared in this scope 18 | t[i]=max(t[2*i], t[2*i+1]); | ^ saul1.cpp: In function ‘int get(int, int, int, int, int)’: saul1.cpp:24:33: error: ‘t’ was not declared in this scope 24 | if(x <= l && y >= r) return t[id]; | ^ saul1.cpp: In function ‘void upd(int)’: saul1.cpp:32:5: error: ‘t’ was not declared in this scope 32 | t[n+u] += 1; | ^ saul1.cpp: In function ‘int main()’: saul1.cpp:40:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | freopen("saul1.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ saul1.cpp:41:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 41 | freopen("saul1.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
nr. | result | time | message |
---|