Nepavyzdingi vaikai
- [1] 2017-11-17 21:41 (0)
- [2] 2017-11-17 21:42 (80)
Taškai: 0
Compile: FAIL
vaikai.cpp: In function ‘int MBK(int, int)’: vaikai.cpp:9:22: error: named return values are no longer supported int MBK(int a, int b)return a*b/DBD(a, b); ^ vaikai.cpp:16:11: error: ‘n’ was not declared in this scope fd >> n; ^ vaikai.cpp:18:33: error: ‘l’ was not declared in this scope for(int i=0; i<n; i++)fd >> l >> a[i]; ^ vaikai.cpp:18:41: error: invalid types ‘int[int]’ for array subscript for(int i=0; i<n; i++)fd >> l >> a[i]; ^ vaikai.cpp:19:5: error: ‘v’ was not declared in this scope v=MBK(a[0], a[1]); ^ vaikai.cpp:19:14: error: invalid types ‘int[int]’ for array subscript v=MBK(a[0], a[1]); ^ vaikai.cpp:19:20: error: invalid types ‘int[int]’ for array subscript v=MBK(a[0], a[1]); ^ vaikai.cpp:20:39: error: invalid types ‘int[int]’ for array subscript for(int i=2; i<n; i++)v=MBK(v, a[i]); ^
nr. | result | time | message |
---|