F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19223454_6970.cpp: In function 'int main()':
0_0_19223454_6970.cpp:17:34: error: 'n' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                  ^
0_0_19223454_6970.cpp:17:57: error: 'm' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                         ^
0_0_19223454_6970.cpp:17:71: error: 'e' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                       ^
0_0_19223454_6970.cpp:17:115: error: 'input' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                   ^
0_0_19223454_6970.cpp:17:148: error: 'num' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                    ^
0_0_19223454_6970.cpp:17:199: error: 's' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                       ^
0_0_19223454_6970.cpp:17:364: error: 'u' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                                                                                                                                                                                            ^
0_0_19223454_6970.cpp:17:379: error: 'v' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                                                                                                                                                                                                           ^
0_0_19223454_6970.cpp:17:394: error: 'w' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                                                                                                                                                                                                                          ^
0_0_19223454_6970.cpp:17:420: error: 'u' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
0_0_19223454_6970.cpp:17:435: error: 'v' was not declared in this scope
 int i, j, k, l, flag; while(cin>>n){ if(!n) break; cin>>m; getchar(); e = 0; for(i = 0; i < m; i++){ getline(cin, input); istringstream in(input); num[0] = num[1] =num[2] = 0; for(j = 0, l = 0; in>>s; j++){ if(isdigit(s[0])){ for(k = 0; k < s.size(); k++) num[l] = num[l] * 10 + s[k] - '0'; l++; } if(j == 3){ if(s == "at") flag = 1; else flag = 0; } } if(flag){ u[e] = num[0]; v[e] = num[2]; w[e++] = -num[1]; }else { u[e] = num[0]; v[e] = num[2]; w[e++] = 0; u[e] = num[2]; v[e] = num[0]; w[e++] = num[1]; } } for(i = 1, ve = e; i <= n; i++, ve++){ u[ve] = 0; v[ve] = i; w[ve] = 0; } vMin = 1 << 30; if(ballman_ford()){ 
                                                                                                                                                                                                          


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 22:47:31, Gzip enabled