这是正在使用的代码:
import wget
firefox_29 = "https://ftp.mozilla.org/pub/firefox/releases/29.0.1/win32/en-
US/Firefox%20Setup%2029.0.1.exe"
firefox_dir = 'C:\\firefox\\firefox29'
wget.download(firefox_29, out=firefox_dir)
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误,我之前以同样的方式使用过 wget 并且它工作得很好,所以我很困惑为什么会发生这个错误。该链接也是一个工作链接。
我有一个可以解决数独难题的程序,并且可以按顺序工作,但是现在我正在尝试使用openMP对其进行并行化。该函数solvePuzzle()包括算法,我想在其中并行化for循环,但是当我#pragma omp parallel for在for循环之前添加语句时,出现此错误: fatal error C1001: An internal error has occurred in the compiler.
该函数的代码是solvePuzzle():
bool sudoku::solvePuzzle(int grid[CELL][CELL]) {
int row, col;
if (!findEmptyCell(grid, row, col))
return true;
#pragma omp parallel for
for (int num = 1; num <= 9; num++) {
if (checkAccuracy(grid, row, col, num)) {
grid[row][col] = num;
if (solvePuzzle(grid))
return true;
grid[row][col] = EMPTY_CELL;
}
}
return false;
}
Run Code Online (Sandbox Code Playgroud)
这是主要驱动程序,如果有帮助的话:
#include "SudokuGrid.h"
using namespace std;
int main() {
sudoku …Run Code Online (Sandbox Code Playgroud) for (i = 0; i < MAX; i++) {
// printf blah blah;
//i = 18;
}
// code
for (i = 0; i < LENGTH; i++) {
//printf blah;
//i = height;
}
Run Code Online (Sandbox Code Playgroud)
或者我是否必须使用j作为下一个循环,并为每个循环使用不同的变量